Documentation ¶
Index ¶
- func NewKubernetesNamespace(ctx context.Context, cli kubernetes.Interface) (nsName string, deleteNS func(ctx context.Context) error, err error)
- func RunSloth(ctx context.Context, env []string, cmdApp, cmdArgs string, nolog bool) (stdout, stderr []byte, err error)
- func RunSlothController(ctx context.Context, config Config, ns string, cmdArgs string) (stdout, stderr []byte, err error)
- func SlothVersion(ctx context.Context, config Config) (string, error)
- type Config
- type KubeClients
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKubernetesNamespace ¶
func RunSloth ¶
func RunSloth(ctx context.Context, env []string, cmdApp, cmdArgs string, nolog bool) (stdout, stderr []byte, err error)
RunSloth executes sloth command.
func RunSlothController ¶
Types ¶
type KubeClients ¶
type KubeClients struct { Std kubernetes.Interface Sloth slothclientset.Interface Monitoring monitoringclientset.Interface }
func NewKubernetesClients ¶
func NewKubernetesClients(ctx context.Context, config Config) (*KubeClients, error)
NewKubernetesClients returns Kubernetes clients.
Click to show internal directories.
Click to hide internal directories.