Documentation
¶
Index ¶
- type SimpleTextDockerfileParser
- func (s SimpleTextDockerfileParser) FindInstruction(dockerfileContent []byte, stage string) bool
- func (s SimpleTextDockerfileParser) GetInstruction(dockerfileContent []byte, stage string) string
- func (s SimpleTextDockerfileParser) GetInstructionTokens(dockerfileContent []byte) []keywords.Tokens
- func (s SimpleTextDockerfileParser) ReplaceInstructions(dockerfileContent []byte, sourceValue, stage string) ([]byte, types.ChangedLines, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleTextDockerfileParser ¶
type SimpleTextDockerfileParser struct { Keyword string `yaml:"keyword,omitempty"` Matcher string `yaml:"matcher,omitempty"` Stage string `yaml:"stage,omitempty"` KeywordLogic keywords.Logic }
func NewSimpleTextDockerfileParser ¶
func NewSimpleTextDockerfileParser(input map[string]string) (SimpleTextDockerfileParser, error)
func (SimpleTextDockerfileParser) FindInstruction ¶
func (s SimpleTextDockerfileParser) FindInstruction(dockerfileContent []byte, stage string) bool
func (SimpleTextDockerfileParser) GetInstruction ¶ added in v0.84.0
func (s SimpleTextDockerfileParser) GetInstruction(dockerfileContent []byte, stage string) string
func (SimpleTextDockerfileParser) GetInstructionTokens ¶ added in v0.85.0
func (s SimpleTextDockerfileParser) GetInstructionTokens(dockerfileContent []byte) []keywords.Tokens
func (SimpleTextDockerfileParser) ReplaceInstructions ¶
func (s SimpleTextDockerfileParser) ReplaceInstructions(dockerfileContent []byte, sourceValue, stage string) ([]byte, types.ChangedLines, error)
Click to show internal directories.
Click to hide internal directories.