Documentation ¶
Index ¶
- type Add
- type AddOption
- type Arg
- type Builder
- type Cmd
- type Copy
- type CopyOption
- type DestType
- type Doc
- type Entrypoint
- type Env
- type Exe
- type Expose
- type From
- type HealthCheck
- type Image
- type KeyEqVal
- type Label
- type MountType
- type NetworkType
- type OnBuild
- type Run
- type RunOption
- type SecurityType
- type Shell
- type ShellExecForm
- type SrcType
- type StopSignal
- type User
- type Volume
- type Workdir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
Build(w io.StringWriter)
}
type Cmd ¶
type Cmd struct{ Exe }
Cmd CMD ["executable","param1","param2"] (exec form) CMD ["param1","param2"] (exec form, as default parameters to ENTRYPOINT) CMD command param1 param2 (shell form)
type Copy ¶
type Copy struct { Options []CopyOption Src SrcType Srcs []SrcType Dest DestType }
Copy COPY [OPTIONS] <src> ... <dest> COPY [OPTIONS] ["<src>", ... "<dest>"]
type CopyOption ¶
type CopyOption string
const ( CopyOptFrom CopyOption = "--from" CopyOptChown CopyOption = "--chown" CopyOptChmod CopyOption = "--chmod" // 1.2 CopyOptLink CopyOption = "--link" // 1.4 CopyOptParents CopyOption = "--parents" //1.7-labs CopyOptExclude CopyOption = "--exclude" // 1.7-labs )
type Entrypoint ¶
type Entrypoint struct{ Exe }
Entrypoint ENTRYPOINT ["/bin/bash", "-c", "echo hello"]
type From ¶
From FROM [--platform=<platform>] <image> [AS <name>] FROM [--platform=<platform>] <image>[:<tag>] [AS <name>] FROM [--platform=<platform>] <image>[@<digest>] [AS <name>]
type HealthCheck ¶
type HealthCheck struct { }
type MountType ¶
type MountType string
MountType RUN --mount=[type=<TYPE>][,option=<value>[,option=<value>]...]
type NetworkType ¶
type NetworkType string
NetworkType RUN --network=<TYPE>
const ( Default NetworkType = "default" None NetworkType = "none" Host NetworkType = "host" )
type Run ¶
Run +format(Shell form): RUN [OPTIONS] <command> ... +format(Exec form): RUN [OPTIONS] [ "<command>", ... ] +example: RUN source $HOME/.bashrc && echo $HOME
type SecurityType ¶
type SecurityType string
SecurityType RUN --security=<sandbox|insecure>
const ( Sandbox SecurityType = "sandbox" Insecure SecurityType = "insecure" )
type ShellExecForm ¶
type ShellExecForm interface { Builder Exec(w io.StringWriter) Shell(w io.StringWriter) }