Documentation
¶
Index ¶
- type Factory
- type UtilityFactory
- func (f *UtilityFactory) GetCommandExecutor(pod *corev1.Pod, container string, command []string, stdout io.Writer, ...) (remotecommand.Executor, error)
- func (f *UtilityFactory) GetHelmClient(namespace string) (helm.Client, error)
- func (f *UtilityFactory) GetK8sClientset() (kubernetes.Interface, error)
- func (f *UtilityFactory) GetK8sDynamicClient() (dynamic.Interface, error)
- func (f *UtilityFactory) GetRestConfig() (*rest.Config, error)
- func (f *UtilityFactory) GetRuntimeClient(scheme *runtime.Scheme) (runtimeclient.Client, error)
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
Click to show internal directories.
Click to hide internal directories.