Helm

package
v0.0.0-...-2d867ee Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoContainerImage = errors.New("no container image")
View Source
var ErrRuleNotContainer = errors.New("rule is not a container")

Functions

func ConfigureHelm

func ConfigureHelm(confPath string) error

func FindConfiguration

func FindConfiguration() (string, error)

func GetTopLevelKeys

func GetTopLevelKeys() []string

func StartHelm

func StartHelm(confPath string)

Types

type ExecRule

type ExecRule struct {
	Name    string
	Command string
	Args    []string
	WorkDir string
	Build   string

	Container        bool
	ContainerName    string
	ContainerImage   string
	Dockerfile       string
	ContainerTag     string
	ContainerVolumes []string
	ContainerPorts   []string
	ContainerId      string

	LogChannel chan string

	Exec *exec.Cmd
}

func ExecRuleCreator

func ExecRuleCreator(TopLevelKey string) *ExecRule

func NewExecContainerRule

func NewExecContainerRule(Name string, Args []string, ContainerName string, Image string, Dockerfile string,
	Volumes []string, Ports []string) *ExecRule

func NewExecRule

func NewExecRule(Name string, Command string, Build string, Args []string, WD string) *ExecRule

NewExecRule will set up a new rule

func ParseConfig

func ParseConfig() []*ExecRule

func (*ExecRule) BuildContainerRule

func (rule *ExecRule) BuildContainerRule() error

func (*ExecRule) BuildRule

func (rule *ExecRule) BuildRule() error

func (*ExecRule) ContainerLogger

func (rule *ExecRule) ContainerLogger()

func (*ExecRule) PullContainer

func (rule *ExecRule) PullContainer() error

func (*ExecRule) RunCommand

func (rule *ExecRule) RunCommand(command string, args []string, workDir string) error

func (*ExecRule) ScanReader

func (rule *ExecRule) ScanReader(reader io.Reader)

func (*ExecRule) Start

func (rule *ExecRule) Start() error

Start will begin execution of the rule

func (*ExecRule) StartContainer

func (rule *ExecRule) StartContainer() error

func (*ExecRule) Stop

func (rule *ExecRule) Stop(force bool) error

Stop will stop the rule

func (*ExecRule) StopContainer

func (rule *ExecRule) StopContainer() error

func (*ExecRule) String

func (rule *ExecRule) String() string

type Executor

type Executor struct {
	Rules []*ExecRule

	LogChan  chan string
	StopChan []chan string
}

Executor will monitor all individual rules and stream all their logs into one channel

func NewExecutor

func NewExecutor(rules []*ExecRule) *Executor

func (*Executor) LogMon

func (exec *Executor) LogMon()

func (*Executor) Start

func (exec *Executor) Start() error

func (*Executor) Stop

func (exec *Executor) Stop() error

Jump to

Keyboard shortcuts

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