config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

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

func NewConfFromResources

func NewConfFromResources(resources []ctlres.Resource) ([]ctlres.Resource, Conf, error)

func (Conf) ImageDestinations

func (c Conf) ImageDestinations() []ImageDestination

func (Conf) ImageOverrides

func (c Conf) ImageOverrides() []ImageOverride

func (Conf) Sources

func (c Conf) Sources() []Source

func (Conf) WithAdditionalConfig added in v0.11.0

func (c Conf) WithAdditionalConfig(config Config) Conf

type Config

type Config struct {
	APIVersion string `json:"apiVersion"`
	Kind       string

	Sources      []Source
	Overrides    []ImageOverride
	Destinations []ImageDestination
}

func NewConfigFromResource

func NewConfigFromResource(res ctlres.Resource) (Config, error)

func (Config) Validate

func (d Config) Validate() error

type ImageDestination

type ImageDestination struct {
	Image    string
	NewImage string `json:"newImage"`
}

func (ImageDestination) Validate

func (d ImageDestination) Validate() error

type ImageOverride

type ImageOverride struct {
	Image       string
	NewImage    string `json:"newImage"`
	Preresolved bool
}

func (ImageOverride) Validate

func (d ImageOverride) Validate() error

type Source

type Source struct {
	Image  string
	Path   string
	Docker SourceDockerOpts
}

func (Source) Validate

func (d Source) Validate() error

type SourceDockerBuildOpts added in v0.10.0

type SourceDockerBuildOpts struct {
	Target     *string
	Pull       *bool
	NoCache    *bool `json:"noCache"`
	File       *string
	RawOptions *[]string `json:"rawOptions"`
}

type SourceDockerOpts added in v0.10.0

type SourceDockerOpts struct {
	Build SourceDockerBuildOpts
}

Jump to

Keyboard shortcuts

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