types

package
v0.0.0-...-041315d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTarget = "default"

Variables

View Source
var (
	Schema value.Schema
)

Functions

This section is empty.

Types

type Build

type Build struct {
	From         string       `json:"from,omitempty"`
	Shell        Shlex        `json:"shell,omitempty"`
	StopSignal   string       `json:"stopSignal,omitempty"`
	CacheVolumes []string     `json:"cacheVolumes,omitempty"`
	Entrypoint   Shlex        `json:"entrypoint,omitempty"`
	Workdir      string       `json:"workdir,omitempty"`
	Acornfile    string       `json:"acornfile,omitempty"`
	User         *int         `json:"user,omitempty"`
	Env          []string     `json:"env,omitempty"`
	Run          Instructions `json:"run,omitempty"`
}

type CacheMount

type CacheMount struct {
	Target string `json:"target,omitempty"`
}

func (*CacheMount) UnmarshalJSON

func (c *CacheMount) UnmarshalJSON(data []byte) error

type Copy

type Copy struct {
	Source string `json:"source,omitempty"`
	Dest   string `json:"dest,omitempty"`
	From   string `json:"from,omitempty"`
	Link   bool   `json:"link,omitempty"`
}

type DetectFile

type DetectFile struct {
	Priority *int     `json:"priority,omitempty"`
	Files    []string `json:"files,omitempty"`
}

type Instruction

type Instruction struct {
	Run     `json:",inline"`
	Volume  `json:",inline"`
	Workdir `json:",inline"`
	Copy    *Copy `json:"copy,omitempty"`
}

func (*Instruction) UnmarshalJSON

func (i *Instruction) UnmarshalJSON(data []byte) error

type Instructions

type Instructions []Instruction

func (*Instructions) UnmarshalJSON

func (i *Instructions) UnmarshalJSON(data []byte) error

type Mount

type Mount struct {
	Cache *CacheMount `json:"cache,omitempty"`
}

type Mounts

type Mounts []Mount

func (*Mounts) UnmarshalJSON

func (m *Mounts) UnmarshalJSON(data []byte) error

type Run

type Run struct {
	Command string `json:"command,omitempty"`
	Mount   Mounts `json:"mount,omitempty"`
}

type Shlex

type Shlex []string

func (*Shlex) UnmarshalJSON

func (s *Shlex) UnmarshalJSON(data []byte) error

type Template

type Template struct {
	Name       string            `json:"name,omitempty"`
	Targets    map[string]Build  `json:"targets,omitempty"`
	LocalFiles map[string]string `json:"localFiles,omitempty"`
	Detect     []DetectFile      `json:"detect,omitempty"`
}

func (*Template) Process

func (b *Template) Process(cwd string) ([]byte, error)

func (*Template) ToDockerfile

func (b *Template) ToDockerfile() ([]byte, error)

func (*Template) WriteLocalFiles

func (b *Template) WriteLocalFiles(cwd string) error

type Volume

type Volume struct {
	Volume string `json:"volume,omitempty"`
}

type Workdir

type Workdir struct {
	Workdir string `json:"workdir,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL