Documentation
¶
Index ¶
- Variables
- func ConfigureHelm(confPath string) error
- func FindConfiguration() (string, error)
- func GetTopLevelKeys() []string
- func StartHelm(confPath string)
- type ExecRule
- func (rule *ExecRule) BuildContainerRule() error
- func (rule *ExecRule) BuildRule() error
- func (rule *ExecRule) ContainerLogger()
- func (rule *ExecRule) PullContainer() error
- func (rule *ExecRule) RunCommand(command string, args []string, workDir string) error
- func (rule *ExecRule) ScanReader(reader io.Reader)
- func (rule *ExecRule) Start() error
- func (rule *ExecRule) StartContainer() error
- func (rule *ExecRule) Stop(force bool) error
- func (rule *ExecRule) StopContainer() error
- func (rule *ExecRule) String() string
- type Executor
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 FindConfiguration ¶
func GetTopLevelKeys ¶
func GetTopLevelKeys() []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 NewExecContainerRule ¶
func NewExecRule ¶
NewExecRule will set up a new rule
func ParseConfig ¶
func ParseConfig() []*ExecRule
func (*ExecRule) BuildContainerRule ¶
func (*ExecRule) ContainerLogger ¶
func (rule *ExecRule) ContainerLogger()
func (*ExecRule) PullContainer ¶
func (*ExecRule) RunCommand ¶
func (*ExecRule) ScanReader ¶
func (*ExecRule) StartContainer ¶
func (*ExecRule) StopContainer ¶
type Executor ¶
Executor will monitor all individual rules and stream all their logs into one channel
func NewExecutor ¶
Click to show internal directories.
Click to hide internal directories.