dockerfile

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 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 {
	File        string            `yaml:"file"`
	Instruction types.Instruction `yaml:"instruction"`
	Value       string            `yaml:"value"`

	DryRun bool
	// contains filtered or unexported fields
}

Dockerfile is struct that holds parameters for a "Dockerfile" kind from updatecli's parsing (YAML, command and flags)

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.Scm) (bool, error)

ConditionFromSCM run based on a file from SCM

func (*Dockerfile) SetParser

func (d *Dockerfile) SetParser() 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.Scm, dryRun bool) (changed bool, files []string, message string, err error)

TargetFromSCM updates a targeted Dockerfile from source controle management system

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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