config

package
v1.0.0-rc10 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2018 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBuildConfig

func ToBuildConfig(in *BuildConfig) *v0.BuildConfig

func ToDistConfig

func ToDistConfig(in *DistConfig) *v0.DistConfig

func ToDisterConfig

func ToDisterConfig(in DisterConfig) v0.DisterConfig

func ToDistersConfig

func ToDistersConfig(in *DistersConfig) *v0.DistersConfig

func ToDockerBuilderConfig

func ToDockerBuilderConfig(in DockerBuilderConfig) v0.DockerBuilderConfig

func ToDockerBuildersConfig

func ToDockerBuildersConfig(in *DockerBuildersConfig) *v0.DockerBuildersConfig

func ToDockerConfig

func ToDockerConfig(in *DockerConfig) *v0.DockerConfig

func ToProductConfig

func ToProductConfig(in *ProductConfig) *v0.ProductConfig

func ToPublishConfig

func ToPublishConfig(in *PublishConfig) *v0.PublishConfig

func ToPublisherConfig

func ToPublisherConfig(in *PublisherConfig) *v0.PublisherConfig

func ToRunConfig

func ToRunConfig(in *RunConfig) *v0.RunConfig

func UpgradeConfig

func UpgradeConfig(
	cfgBytes []byte,
	disterFactory distgo.DisterFactory,
	dockerBuilderFactory distgo.DockerBuilderFactory,
	publisherFactory distgo.PublisherFactory) ([]byte, error)

Types

type BuildConfig

type BuildConfig v0.BuildConfig

func (*BuildConfig) ToParam

func (cfg *BuildConfig) ToParam(scriptIncludes string, defaultCfg BuildConfig) (distgo.BuildParam, error)

ToParam returns the BuildParam represented by the receiver *BuildConfig and the provided default BuildConfig. If a config value is specified (non-nil) in the receiver config, it is used. If a config value is not specified in the receiver config but is specified in the default config, the default config value is used. If a value is not specified in either configuration, the program-specified default value (if any) is used.

type DistConfig

type DistConfig v0.DistConfig

func (*DistConfig) ToParam

func (cfg *DistConfig) ToParam(scriptIncludes string, defaultCfg DistConfig, disterFactory distgo.DisterFactory) (distgo.DistParam, error)

ToParam returns the DistParam represented by the receiver *DisterConfig and the provided default DisterConfig. If a config value is specified (non-nil) in the receiver config, it is used. If a config value is not specified in the receiver config but is specified in the default config, the default config value is used. If a value is not specified in either configuration, the program-specified default value (if any) is used.

type DisterConfig

type DisterConfig v0.DisterConfig

func (*DisterConfig) ToParam

func (cfg *DisterConfig) ToParam(defaultCfg DisterConfig, scriptIncludes string, disterFactory distgo.DisterFactory) (distgo.DisterParam, error)

type DistersConfig

type DistersConfig v0.DistersConfig

func (*DistersConfig) ToParam

func (cfgs *DistersConfig) ToParam(defaultCfg *DistersConfig, scriptIncludes string, disterFactory distgo.DisterFactory) (map[distgo.DistID]distgo.DisterParam, error)

type DockerBuilderConfig

type DockerBuilderConfig v0.DockerBuilderConfig

func (*DockerBuilderConfig) ToParam

func (cfg *DockerBuilderConfig) ToParam(defaultCfg DockerBuilderConfig, dockerBuilderFactory distgo.DockerBuilderFactory) (distgo.DockerBuilderParam, error)

type DockerBuildersConfig

type DockerBuildersConfig v0.DockerBuildersConfig

func (*DockerBuildersConfig) ToParam

func (cfgs *DockerBuildersConfig) ToParam(defaultCfg *DockerBuildersConfig, dockerBuilderFactory distgo.DockerBuilderFactory) (map[distgo.DockerID]distgo.DockerBuilderParam, error)

type DockerConfig

type DockerConfig v0.DockerConfig

func (*DockerConfig) ToParam

func (cfg *DockerConfig) ToParam(defaultCfg DockerConfig, dockerBuilderFactory distgo.DockerBuilderFactory) (distgo.DockerParam, error)

type ProductConfig

type ProductConfig v0.ProductConfig

func (*ProductConfig) ToParam

func (cfg *ProductConfig) ToParam(productID distgo.ProductID, scriptIncludes string, defaultCfg ProductConfig, disterFactory distgo.DisterFactory, dockerBuilderFactory distgo.DockerBuilderFactory) (distgo.ProductParam, error)

type ProjectConfig

type ProjectConfig v0.ProjectConfig

func (*ProjectConfig) ToParam

func (cfg *ProjectConfig) ToParam(projectDir string, disterFactory distgo.DisterFactory, defaultDisterCfg DisterConfig, dockerBuilderFactory distgo.DockerBuilderFactory, publisherFactory distgo.PublisherFactory) (distgo.ProjectParam, error)

type PublishConfig

type PublishConfig v0.PublishConfig

func (*PublishConfig) ToParam

func (cfg *PublishConfig) ToParam(defaultCfg PublishConfig) (distgo.PublishParam, error)

type PublisherConfig

type PublisherConfig v0.PublisherConfig

func (*PublisherConfig) ToParam

func (cfg *PublisherConfig) ToParam() (distgo.PublisherParam, error)

type RunConfig

type RunConfig v0.RunConfig

func (*RunConfig) ToParam

func (cfg *RunConfig) ToParam(defaultCfg RunConfig) distgo.RunParam

ToParam returns the RunParam represented by the receiver *RunConfig and the provided default RunConfig. If a config value is specified (non-nil) in the receiver config, it is used. If a config value is not specified in the receiver config but is specified in the default config, the default config value is used. If a value is not specified in either configuration, the program-specified default value (if any) is used.

Directories

Path Synopsis
internal
v0

Jump to

Keyboard shortcuts

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