config

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 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) ImageKeys added in v0.13.0

func (c Conf) ImageKeys() []string

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
	Keys         []string
}

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
	Pack   *SourcePackOpts
}

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
}

type SourcePackBuildOpts added in v0.12.0

type SourcePackBuildOpts struct {
	Builder    *string
	Buildpacks *[]string
	ClearCache *bool     `json:"clearCache"`
	RawOptions *[]string `json:"rawOptions"`
}

type SourcePackOpts added in v0.12.0

type SourcePackOpts struct {
	Build SourcePackBuildOpts
}

Jump to

Keyboard shortcuts

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