builders

package
v0.0.0-...-7ebe467 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CHARTS_YAML = "Chart.yaml"
View Source
const REQUIREMENTS_YAML = "requirements.yaml"
View Source
const VALUES_YAML = "values.yaml"

Variables

This section is empty.

Functions

func GetDockerIgnore

func GetDockerIgnore(contextDir string) ([]string, error)

func PushImage

func PushImage(tag string, authConfig types.AuthConfig, dockerCli *client.Client, w io.Writer) error

Types

type BuildAndPushResult

type BuildAndPushResult struct {
	Inspect    *types.ImageInspect
	Tag        string
	Version    string
	Repository string
	RepoInfo   *RepoInfo
}

func BuildAndPush

func BuildAndPush(options BuildOptions, w io.Writer) (*BuildAndPushResult, error)

type BuildOptions

type BuildOptions struct {
	Environment config.Environment
	Handler     config.Handler
	Client      *client.Client
	Config      config.ApplicationYaml
	Handlername string
	Auth        types.AuthConfig
}

type BuildResponse

type BuildResponse struct {
	ImageBuildResponse *types.ImageBuildResponse
	BuildOptions       types.ImageBuildOptions
	Version            string
	Repository         string
	RepoInfo           *RepoInfo
}

func Build

func Build(options BuildOptions) (*BuildResponse, error)

type Chart

type Chart struct {
	Name         string
	Chart        string
	Values       map[string]interface{}
	Charts       []*Chart
	Dependencies []*Dependency
	Options      ChartOptions
}

func (*Chart) AddChart

func (c *Chart) AddChart(chart *Chart)

func (*Chart) AddDependency

func (c *Chart) AddDependency(dependency *Dependency)

func (*Chart) Dump

func (c *Chart) Dump(outputDir string, options DumpOptions) error

func (*Chart) DumpAll

func (c *Chart) DumpAll(outputDir string, options DumpOptions) error

type ChartOptions

type ChartOptions struct {
	ApiVersion  string
	AppVersion  string
	Description string
	Name        string
	Version     string
}

type CommitInfo

type CommitInfo struct {
	Hash string
	Date time.Time
}

type Dependency

type Dependency struct {
	Name       string
	Version    string
	Repository string
	Condition  string
	Values     map[string]interface{}
}

type DumpOptions

type DumpOptions struct {
}

type HelmDeleteOptions

type HelmDeleteOptions struct {
	Client      *helm.Client
	Config      config.ApplicationYaml
	DockerCli   *client.Client
	Environment config.Environment
	K8sClient   *kubernetes.Clientset
}

type HelmDeleteResponse

type HelmDeleteResponse struct {
	Release *release.Release
}

type HelmOptions

type HelmOptions struct {
	Pw          progressbar.IProgressBar
	Client      *helm.Client
	Config      config.ApplicationYaml
	DockerCli   *client.Client
	Environment config.Environment
	K8sClient   *kubernetes.Clientset
	Auth        types.AuthConfig
}

type HelmResponse

type HelmResponse struct {
	Release *release.Release
}

func DeployK8s

func DeployK8s(options HelmOptions) (*HelmResponse, error)

type OutStream

type OutStream struct {
	io.Writer
}

func (*OutStream) FD

func (o *OutStream) FD() uintptr

func (*OutStream) IsTerminal

func (o *OutStream) IsTerminal() bool

type RepoInfo

type RepoInfo struct {
	Directory  string
	CommitInfo CommitInfo
}

Jump to

Keyboard shortcuts

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