config

package
v1.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProjectName

func GetProjectName(projectDir string) (string, error)

func InterfaceToStringArray

func InterfaceToStringArray(stringOrStringArray interface{}, configSection interface{}, doc *doc) ([]string, error)

Types

type Ansible

type Ansible struct {
	BeforeInstall             []*AnsibleTask
	Install                   []*AnsibleTask
	BeforeSetup               []*AnsibleTask
	Setup                     []*AnsibleTask
	CacheVersion              string
	BeforeInstallCacheVersion string
	InstallCacheVersion       string
	BeforeSetupCacheVersion   string
	SetupCacheVersion         string
	// contains filtered or unexported fields
}

func (*Ansible) GetDumpConfigSection

func (c *Ansible) GetDumpConfigSection() string

type AnsibleTask

type AnsibleTask struct {
	Config interface{}
	// contains filtered or unexported fields
}

func (*AnsibleTask) GetDumpConfigSection

func (c *AnsibleTask) GetDumpConfigSection() string

type ArtifactExport

type ArtifactExport struct {
	*ExportBase
	// contains filtered or unexported fields
}

type ArtifactImport

type ArtifactImport struct {
	*ArtifactExport
	ArtifactName string
	Before       string
	After        string

	ImageArtifact *ImageArtifact
	// contains filtered or unexported fields
}

func (*ArtifactImport) GetRaw

func (c *ArtifactImport) GetRaw() interface{}

type DeployTemplates

type DeployTemplates struct {
	HelmRelease             string
	HelmReleaseSlug         bool
	KubernetesNamespace     string
	KubernetesNamespaceSlug bool
}

type Docker

type Docker struct {
	Volume      []string
	Expose      []string
	Env         map[string]string
	Label       map[string]string
	Cmd         []string
	Onbuild     []string
	Workdir     string
	User        string
	Entrypoint  []string
	StopSignal  string
	HealthCheck string
	// contains filtered or unexported fields
}

type ExportBase

type ExportBase struct {
	Add          string
	To           string
	IncludePaths []string
	ExcludePaths []string
	Owner        string
	Group        string
	// contains filtered or unexported fields
}

func (*ExportBase) AddExcludePath

func (c *ExportBase) AddExcludePath(arg string)

func (*ExportBase) AutoExcludeExportAndCheck

func (c *ExportBase) AutoExcludeExportAndCheck(exp autoExcludeExport) bool

func (*ExportBase) GetExcludePathsForAutoExclude

func (c *ExportBase) GetExcludePathsForAutoExclude() []string

func (*ExportBase) GetIncludePathsForAutoExclude

func (c *ExportBase) GetIncludePathsForAutoExclude() []string

func (*ExportBase) GetRaw

func (c *ExportBase) GetRaw() interface{}

func (*ExportBase) GetTo

func (c *ExportBase) GetTo() string

type GitExport

type GitExport struct {
	*ExportBase
	// contains filtered or unexported fields
}

type GitExportBase

type GitExportBase struct {
	*GitExport
	StageDependencies *StageDependencies
	// contains filtered or unexported fields
}

type GitLocal

type GitLocal struct {
	*GitLocalExport
	As string
	// contains filtered or unexported fields
}

func (*GitLocal) GetRaw

func (c *GitLocal) GetRaw() interface{}

type GitLocalExport

type GitLocalExport struct {
	*GitExportBase
	// contains filtered or unexported fields
}

type GitManager

type GitManager struct {
	Local  []*GitLocal
	Remote []*GitRemote
}

type GitRemote

type GitRemote struct {
	*GitRemoteExport
	As   string
	Name string
	Url  string
	// contains filtered or unexported fields
}

func (*GitRemote) GetRaw

func (c *GitRemote) GetRaw() interface{}

type GitRemoteExport

type GitRemoteExport struct {
	*GitLocalExport
	Branch string
	Tag    string
	Commit string
	// contains filtered or unexported fields
}

type Image

type Image struct {
	*ImageBase
	Docker *Docker
}

func (*Image) ImageTree

func (c *Image) ImageTree() (tree []ImageInterface)

type ImageArtifact

type ImageArtifact struct {
	*ImageBase
}

func (*ImageArtifact) ImageTree

func (c *ImageArtifact) ImageTree() (tree []ImageInterface)

func (*ImageArtifact) IsArtifact

func (c *ImageArtifact) IsArtifact() bool

type ImageBase

type ImageBase struct {
	Name              string
	From              string
	FromImage         *Image
	FromImageArtifact *ImageArtifact
	FromCacheVersion  string
	Git               *GitManager
	Shell             *Shell
	Ansible           *Ansible
	Mount             []*Mount
	Import            []*ArtifactImport
	// contains filtered or unexported fields
}

func (*ImageBase) ImageBaseConfig

func (c *ImageBase) ImageBaseConfig() *ImageBase

func (*ImageBase) IsArtifact

func (c *ImageBase) IsArtifact() bool

type ImageInterface

type ImageInterface interface {
	ImageBaseConfig() *ImageBase
	IsArtifact() bool
}

type Meta

type Meta struct {
	Project         string
	DeployTemplates DeployTemplates
}

type Mount

type Mount struct {
	To   string
	From string
	Type string
	// contains filtered or unexported fields
}

type Shell

type Shell struct {
	BeforeInstall             []string
	Install                   []string
	BeforeSetup               []string
	Setup                     []string
	CacheVersion              string
	BeforeInstallCacheVersion string
	InstallCacheVersion       string
	BeforeSetupCacheVersion   string
	SetupCacheVersion         string
	// contains filtered or unexported fields
}

func (*Shell) GetDumpConfigSection

func (c *Shell) GetDumpConfigSection() string

type StageDependencies

type StageDependencies struct {
	Install     []string
	Setup       []string
	BeforeSetup []string
	// contains filtered or unexported fields
}

type WerfConfig

type WerfConfig struct {
	Meta   *Meta
	Images []*Image
}

func ParseWerfConfig

func ParseWerfConfig(werfConfigPath string) (*WerfConfig, error)

Jump to

Keyboard shortcuts

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