const ExitCode string = "exitCode"
const Stdout string = "stdout"
Collector is a set of tools for collecting parameters/context from user defined task
type Collector interface { CollectContext(ctx context.Context) (env map[string]interface{}, err error) }
func DefaultCollector(kubeClient client.Client, restConfig *rest.Config, namespace, podName, containerName string) Collector
type ComposeCollector struct {
// contains filtered or unexported fields
}
func (it *ComposeCollector) CollectContext(ctx context.Context) (env map[string]interface{}, err error)
type ExitCodeCollector struct {
// contains filtered or unexported fields
}
func NewExitCodeCollector(kubeClient client.Client, namespace string, podName string, containerName string) *ExitCodeCollector
func (it *ExitCodeCollector) CollectContext(ctx context.Context) (env map[string]interface{}, err error)
type StdoutCollector struct {
// contains filtered or unexported fields
}
func NewStdoutCollector(restConfig *rest.Config, namespace string, podName string, containerName string) *StdoutCollector
func (it *StdoutCollector) CollectContext(ctx context.Context) (env map[string]interface{}, err error)
type ValuedCollector struct {
// contains filtered or unexported fields
}
func NewValuedCollector(status v1alpha1.ConditionalBranchesStatus) *ValuedCollector
func (it *ValuedCollector) CollectContext() (env map[string]interface{}, err error)