Documentation
¶
Index ¶
- Constants
- func CopyFileFromPod(srcPath, destPath, namespace, podName string, rest rest.Interface) error
- func CopyFileToPod(podName, destPath, srcPath, ns string, rest rest.Interface) (string, error)
- func GetHostCaCertFromConfig(config *rest.Config) []byte
- func TestAnnotatedDeploymentObject(name, ns string, annotations map[string]string) *appsv1.Deployment
- func TestDeploymentObject(name, ns string) *appsv1.Deployment
- func TestJobObject(name, ns string, completed bool) *batchv1.Job
- func TestPodObject(name, ns, access, role string) *corev1.Pod
- func TestPodObjectWithExit(name, ns string) *corev1.Pod
- func TestPodSpecVolume(name, secretName string) []corev1.Volume
- type KubeClient
- func (c *KubeClient) AdmissionRegistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
- func (c *KubeClient) ApiextensionsV1() apiextensionsv1.ApiextensionsV1Interface
- func (c *KubeClient) AppsV1() appsv1.AppsV1Interface
- func (c *KubeClient) AuthorizationV1() authorizationv1.AuthorizationV1Interface
- func (c *KubeClient) BatchV1() batchv1.BatchV1Interface
- func (c *KubeClient) Cert() corev1.CoreV1Interface
- func (c *KubeClient) CertificatesV1() certificatesv1.CertificatesV1Interface
- func (c *KubeClient) CoreV1() corev1.CoreV1Interface
- func (c *KubeClient) Discovery() discovery.DiscoveryInterface
- func (c *KubeClient) Dynamic() dynamic.Interface
- func (c *KubeClient) Host() string
- func (c *KubeClient) KubeCliConfig(namespace string) (*genericclioptions.ConfigFlags, error)
- func (c *KubeClient) MetricsClient() versioned.Interface
- func (c *KubeClient) RbacV1() rbacv1.RbacV1Interface
- func (c *KubeClient) RestConfig() *rest.Config
- func (c *KubeClient) StorageV1() storagev1.StorageV1Interface
Constants ¶
View Source
const ( EnvNamespace = "NAMESPACE" EnvKubePath = "KUBE_PATH" )
Variables ¶
This section is empty.
Functions ¶
func CopyFileFromPod ¶ added in v0.1.5
func CopyFileToPod ¶ added in v0.1.5
func GetHostCaCertFromConfig ¶ added in v0.1.5
func TestAnnotatedDeploymentObject ¶ added in v0.1.5
func TestAnnotatedDeploymentObject(name, ns string, annotations map[string]string) *appsv1.Deployment
func TestDeploymentObject ¶ added in v0.1.5
func TestDeploymentObject(name, ns string) *appsv1.Deployment
func TestJobObject ¶ added in v0.1.5
func TestPodObject ¶ added in v0.1.5
func TestPodObjectWithExit ¶ added in v0.1.5
func TestPodSpecVolume ¶ added in v0.1.5
Types ¶
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
func CreateKubeClient ¶
func CreateKubeClient(OutOfClusterKube bool) (*KubeClient, error)
func NewFakeKubeClient ¶ added in v0.1.5
func NewFakeKubeClient() *KubeClient
func NewFromConfig ¶ added in v0.1.5
func NewFromConfig(config []byte) (*KubeClient, error)
func NewInClusterKube ¶
func NewInClusterKube() (*KubeClient, error)
func NewKubeClient ¶
func NewKubeClient(c *rest.Config) (*KubeClient, error)
func (*KubeClient) AdmissionRegistrationV1 ¶ added in v0.1.7
func (c *KubeClient) AdmissionRegistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
func (*KubeClient) ApiextensionsV1 ¶ added in v0.1.5
func (c *KubeClient) ApiextensionsV1() apiextensionsv1.ApiextensionsV1Interface
func (*KubeClient) AppsV1 ¶ added in v0.1.5
func (c *KubeClient) AppsV1() appsv1.AppsV1Interface
func (*KubeClient) AuthorizationV1 ¶ added in v0.1.5
func (c *KubeClient) AuthorizationV1() authorizationv1.AuthorizationV1Interface
func (*KubeClient) BatchV1 ¶ added in v0.1.5
func (c *KubeClient) BatchV1() batchv1.BatchV1Interface
func (*KubeClient) Cert ¶ added in v0.1.6
func (c *KubeClient) Cert() corev1.CoreV1Interface
func (*KubeClient) CertificatesV1 ¶ added in v0.1.6
func (c *KubeClient) CertificatesV1() certificatesv1.CertificatesV1Interface
func (*KubeClient) CoreV1 ¶ added in v0.1.5
func (c *KubeClient) CoreV1() corev1.CoreV1Interface
func (*KubeClient) Discovery ¶ added in v0.1.5
func (c *KubeClient) Discovery() discovery.DiscoveryInterface
func (*KubeClient) Dynamic ¶ added in v0.1.5
func (c *KubeClient) Dynamic() dynamic.Interface
func (*KubeClient) Host ¶ added in v0.1.5
func (c *KubeClient) Host() string
func (*KubeClient) KubeCliConfig ¶ added in v0.1.5
func (c *KubeClient) KubeCliConfig(namespace string) (*genericclioptions.ConfigFlags, error)
func (*KubeClient) MetricsClient ¶ added in v0.1.8
func (c *KubeClient) MetricsClient() versioned.Interface
func (*KubeClient) RbacV1 ¶ added in v0.1.5
func (c *KubeClient) RbacV1() rbacv1.RbacV1Interface
func (*KubeClient) RestConfig ¶ added in v0.1.5
func (c *KubeClient) RestConfig() *rest.Config
func (*KubeClient) StorageV1 ¶ added in v0.1.5
func (c *KubeClient) StorageV1() storagev1.StorageV1Interface
Click to show internal directories.
Click to hide internal directories.