config

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 17 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 ToInputDirConfig added in v1.6.0

func ToInputDirConfig(in *InputDirConfig) *v0.InputDirConfig

func ToProductConfig

func ToProductConfig(in *ProductConfig) *v0.ProductConfig

func ToProjectVersionConfig

func ToProjectVersionConfig(in *ProjectConfig) *v0.ProjectConfig

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 ToTagTemplatesMap added in v1.7.0

func ToTagTemplatesMap(in *TagTemplatesMap) *v0.TagTemplatesMap

func UpgradeConfig

func UpgradeConfig(
	cfgBytes []byte,
	projectVersionerFactory distgo.ProjectVersionerFactory,
	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(scriptIncludes string, defaultCfg DockerBuilderConfig, dockerBuilderFactory distgo.DockerBuilderFactory) (distgo.DockerBuilderParam, error)

type DockerBuildersConfig

type DockerBuildersConfig v0.DockerBuildersConfig

func (*DockerBuildersConfig) ToParam

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

type DockerConfig

type DockerConfig v0.DockerConfig

func (*DockerConfig) ToParam

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

type InputDirConfig added in v1.6.0

type InputDirConfig v0.InputDirConfig

func (*InputDirConfig) ToParam added in v1.6.0

func (cfg *InputDirConfig) ToParam() distgo.InputDirParam

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,
	projectVersionerFactory distgo.ProjectVersionerFactory,
	disterFactory distgo.DisterFactory,
	defaultDisterCfg DisterConfig,
	dockerBuilderFactory distgo.DockerBuilderFactory,
	publisherFactory distgo.PublisherFactory) (distgo.ProjectParam, error)

type ProjectVersionConfig

type ProjectVersionConfig v0.ProjectVersionConfig

func (*ProjectVersionConfig) ToParam

func (cfg *ProjectVersionConfig) ToParam(projectVersionerFactory distgo.ProjectVersionerFactory) (distgo.ProjectVersionerParam, error)

ToParam returns the ProjectVersionerParam represented by the receiver *ProjectVersionConfig. If the receiver is nil, the git project versioner is returned.

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.

type TagTemplatesMap added in v1.7.0

type TagTemplatesMap v0.TagTemplatesMap

func (*TagTemplatesMap) ToParam added in v1.11.0

func (cfg *TagTemplatesMap) ToParam() distgo.TagTemplatesMap

Directories

Path Synopsis
internal
v0

Jump to

Keyboard shortcuts

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