Documentation ¶
Index ¶
Constants ¶
View Source
const ( HEALTHCHECK = "healthcheck" USER = "user" Root = "root" ADD = "add" Run = "run" FROM = "from" ENV = "env" LABEL = "label" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerInstruction ¶
DockerInstruction example: - Instruction: run - Flags: --from=builder - Content: apt-get update
func InitDockerInstruction ¶
func InitDockerInstruction() *DockerInstruction
func (*DockerInstruction) String ¶
func (di *DockerInstruction) String() string
type Dockerfile ¶
type Dockerfile struct { File string Instructions []*DockerInstruction }
func NewDockerfile ¶
func NewDockerfile(file string) *Dockerfile
func (*Dockerfile) AddNode ¶
func (df *Dockerfile) AddNode(node *parser.Node)
func (*Dockerfile) GetBaseImages ¶
func (df *Dockerfile) GetBaseImages() []string
func (*Dockerfile) LookupInstruction ¶
func (df *Dockerfile) LookupInstruction(inst string) bool
func (*Dockerfile) LookupInstructionAndContent ¶
func (df *Dockerfile) LookupInstructionAndContent(inst, cont string) []int
func (*Dockerfile) String ¶
func (df *Dockerfile) String() string
Click to show internal directories.
Click to hide internal directories.