config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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

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"`
}

func (ImageOverride) Validate

func (d ImageOverride) Validate() error

type Source

type Source struct {
	Image string
	Path  string
}

func (Source) Validate

func (d Source) Validate() error

Jump to

Keyboard shortcuts

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