collector

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ExitCode string = "exitCode"
View Source
const Stdout string = "stdout"

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	CollectContext(ctx context.Context) (env map[string]interface{}, err error)
}

Collector is a set of tools for collecting parameters/context from user defined task

func DefaultCollector

func DefaultCollector(kubeClient client.Client, restConfig *rest.Config, namespace, podName, containerName string) Collector

type ComposeCollector

type ComposeCollector struct {
	// contains filtered or unexported fields
}

func (*ComposeCollector) CollectContext

func (it *ComposeCollector) CollectContext(ctx context.Context) (env map[string]interface{}, err error)

type ExitCodeCollector

type ExitCodeCollector struct {
	// contains filtered or unexported fields
}

func NewExitCodeCollector

func NewExitCodeCollector(kubeClient client.Client, namespace string, podName string, containerName string) *ExitCodeCollector

func (*ExitCodeCollector) CollectContext

func (it *ExitCodeCollector) CollectContext(ctx context.Context) (env map[string]interface{}, err error)

type StdoutCollector

type StdoutCollector struct {
	// contains filtered or unexported fields
}

func NewStdoutCollector

func NewStdoutCollector(restConfig *rest.Config, namespace string, podName string, containerName string) *StdoutCollector

func (*StdoutCollector) CollectContext

func (it *StdoutCollector) CollectContext(ctx context.Context) (env map[string]interface{}, err error)

type ValuedCollector

type ValuedCollector struct {
	// contains filtered or unexported fields
}

func (*ValuedCollector) CollectContext

func (it *ValuedCollector) CollectContext() (env map[string]interface{}, err error)

Jump to

Keyboard shortcuts

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