util

package
v0.0.0-...-83b2bd0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	GetHelmClient(namespace string) (helm.Client, error)
	GetK8sClientset() (kubernetes.Interface, error)
	GetRuntimeClient(*runtime.Scheme) (runtimeclient.Client, error)
	GetK8sDynamicClient() (dynamic.Interface, error)
	GetRestConfig() (*rest.Config, error)
	GetCommandExecutor(pod *corev1.Pod, container string, command []string, stdout io.Writer, stderr io.Writer) (remotecommand.Executor, error)
}

Factory interface

type UtilityFactory

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

UtilityFactory - util factory

func NewFactory

func NewFactory(flags *pflag.FlagSet) *UtilityFactory

NewFactory - new factory method

func (*UtilityFactory) GetCommandExecutor

func (f *UtilityFactory) GetCommandExecutor(pod *corev1.Pod, container string, command []string, stdout io.Writer, stderr io.Writer) (remotecommand.Executor, error)

GetCommandExecutor - get executor to run command in a Pod

func (*UtilityFactory) GetHelmClient

func (f *UtilityFactory) GetHelmClient(namespace string) (helm.Client, error)

GetHelmClient - get helm client

func (*UtilityFactory) GetK8sClientset

func (f *UtilityFactory) GetK8sClientset() (kubernetes.Interface, error)

GetK8sClientset - get k8s clientset

func (*UtilityFactory) GetK8sDynamicClient

func (f *UtilityFactory) GetK8sDynamicClient() (dynamic.Interface, error)

GetK8sDynamicClient - get k8s dynamic client

func (*UtilityFactory) GetRestConfig

func (f *UtilityFactory) GetRestConfig() (*rest.Config, error)

GetRestConfig - get rest config

func (*UtilityFactory) GetRuntimeClient

func (f *UtilityFactory) GetRuntimeClient(scheme *runtime.Scheme) (runtimeclient.Client, error)

GetRuntimeClient - get runtime client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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