dockerfile

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerfile

type Dockerfile struct {
	// contains filtered or unexported fields
}

Dockerfile defines a resource of kind "dockerfile"

func New

func New(spec interface{}) (*Dockerfile, error)

New returns a reference to a newly initialized Dockerfile object from a Spec or an error if the provided Spec triggers a validation error.

func (*Dockerfile) Changelog

func (df *Dockerfile) Changelog() string

Changelog returns the changelog for this resource, or an empty string if not supported

func (*Dockerfile) Condition

func (d *Dockerfile) Condition(source string) (bool, error)

Condition test if the Dockerfile contains the correct key/value

func (*Dockerfile) ConditionFromSCM

func (d *Dockerfile) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)

ConditionFromSCM run based on a file from SCM

func (*Dockerfile) Source

func (df *Dockerfile) Source(workingDir string) (string, error)

func (*Dockerfile) Target

func (d *Dockerfile) Target(source string, dryRun bool) (bool, error)

Target updates a targeted Dockerfile

func (*Dockerfile) TargetFromSCM

func (d *Dockerfile) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (changed bool, files []string, message string, err error)

TargetFromSCM updates a targeted Dockerfile from source controle management system

type Spec

type Spec struct {
	// File specifies the dockerimage file such as Dockerfile
	File string `yaml:"file"`
	// Instruction specifies a DockerImage instruction such as ENV
	Instruction types.Instruction `yaml:"instruction"`
	// Value specifies the value for a specified Dockerfile instruction.
	Value string `yaml:"value"`
}

Spec defines a specification for a "dockerfile" resource parsed from an updatecli manifest file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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