builder

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

Types

type Builder

type Builder interface {
	Build() error
	Deploy() error
	GetIdentity() *identity.ClusterIdentity
	SetIdentity(identity *identity.ClusterIdentity)
	// contains filtered or unexported methods
}

type CommandRequirement

type CommandRequirement struct {
	Command string
}

func (*CommandRequirement) Check

func (r *CommandRequirement) Check() bool

func (*CommandRequirement) Failed

func (r *CommandRequirement) Failed() error

func (*CommandRequirement) Value

func (r *CommandRequirement) Value() string

type FileRequirement

type FileRequirement struct {
	Path string
}

func (*FileRequirement) Check

func (r *FileRequirement) Check() bool

func (*FileRequirement) Failed

func (r *FileRequirement) Failed() error

func (*FileRequirement) Value

func (r *FileRequirement) Value() string

type HelmBuilder

type HelmBuilder struct {
	CommandOpts *symcommand.CommandOpts
	// contains filtered or unexported fields
}

func NewHelmBuilder

func NewHelmBuilder(deployments []HelmDeployment, dir string, opts *symcommand.CommandOpts) *HelmBuilder

func (*HelmBuilder) Build

func (b *HelmBuilder) Build() error

func (*HelmBuilder) Deploy

func (b *HelmBuilder) Deploy() error

func (*HelmBuilder) GetIdentity

func (b *HelmBuilder) GetIdentity() *identity.ClusterIdentity

func (*HelmBuilder) Install

func (b *HelmBuilder) Install(d HelmDeployment) error

func (*HelmBuilder) SetIdentity

func (b *HelmBuilder) SetIdentity(identity *identity.ClusterIdentity)

type HelmDeployment

type HelmDeployment struct {
	Name       string            `yaml:"name"`
	Chart      string            `yaml:"chart"`
	ValuesFile string            `yaml:"valuesFile"`
	Values     map[string]string `yaml:"values"`
	Repository *HelmRepository   `yaml:"repository"`
}

type HelmRepository

type HelmRepository struct {
	Name string `yaml:"name"`
	Url  string `yaml:"url"`
}

type Requirement

type Requirement interface {
	Value() string
	Check() bool
	Failed() error
}

Jump to

Keyboard shortcuts

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