parser

package
v0.0.0-...-b7fcf81 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDockerfile

func GenerateDockerfile(step v1alpha1.BuildStep, templates []v1alpha1.BuildTemplate, destination string) (string, error)

GenerateDockerfile takes in a build steps and generates a Dockerfile returns path to generated dockerfile

func ParseAnsibleCommands

func ParseAnsibleCommands(ansibleStep *v1alpha1.AnsibleStep) ([]byte, error)

ParseAnsibleCommands is used to parse ansible commands from the ansible step and append the parsed template to Dockerfile

func ParseBuildSpec

func ParseBuildSpec(spec *v1alpha1.BuildSpec) ([]v1alpha1.ImageBuildArgs, error)

ParseBuildSpec parses the build specification which is read in through spec.yml or build.yaml and generates an array of build arguments

func ParseDockerCommands

func ParseDockerCommands(dockerCmdFilepath string) ([]byte, error)

ParseDockerCommands parses the inputted docker commands and adds to dockerfile

Types

This section is empty.

Jump to

Keyboard shortcuts

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