Documentation ¶
Index ¶
- Constants
- func DiscoverBuildArgs(dockerfp string) (map[string]string, error)
- func DiscoverBuildStages(dockerfp, fileKey string) ([]common.BuildStage, error)
- func DiscoverDockerfile(repoDir, filePattern string) []common.Dockerfile
- func GetDockerfile(f string) (common.Dockerfile, error)
- func GetDockerfileReader(filepath string) (*parser.Result, error)
- func ParseArgEnv(cmd string) map[string]string
Constants ¶
View Source
const ( FROM = "from" RUN = "run" COPY = "copy" ADD = "add" WORKDIR = "workdir" ARG = "arg" ENV = "env" )
Variables ¶
This section is empty.
Functions ¶
func DiscoverBuildArgs ¶
DiscoverBuildArgs returns a map of docker build arguments defined before stages (FROM)
func DiscoverBuildStages ¶
func DiscoverBuildStages(dockerfp, fileKey string) ([]common.BuildStage, error)
DiscoverBuildStages :
func DiscoverDockerfile ¶
func DiscoverDockerfile(repoDir, filePattern string) []common.Dockerfile
DiscoverDockerfile scans a directory and returns array of dockerfiles
func GetDockerfile ¶
func GetDockerfile(f string) (common.Dockerfile, error)
GetDockerfile: gets dcokerfile
func GetDockerfileReader ¶
GetDockerfileReader reads a file into Dockerfile parser
func ParseArgEnv ¶
ParseArgEnv parses an ARG/ENV instruction and returns variable name and value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.