mocks

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause Imports: 76 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagParse

func FlagParse()

func FlagString

func FlagString(name string, value string, usage string) *string

Types

type AppV1

type AppV1 struct{}

func NewAppV1

func NewAppV1() *AppV1

func (*AppV1) ControllerRevisions

func (*AppV1) ControllerRevisions(namespace string) v1.ControllerRevisionInterface

ControllerRevisions implements v1.AppsV1Interface

func (*AppV1) DaemonSets

func (*AppV1) DaemonSets(namespace string) v1.DaemonSetInterface

DaemonSets implements v1.AppsV1Interface

func (*AppV1) Deployments

func (*AppV1) Deployments(namespace string) v1.DeploymentInterface

Deployments implements v1.AppsV1Interface

func (*AppV1) RESTClient

func (*AppV1) RESTClient() rest.Interface

RESTClient implements v1.AppsV1Interface

func (*AppV1) ReplicaSets

func (*AppV1) ReplicaSets(namespace string) v1.ReplicaSetInterface

ReplicaSets implements v1.AppsV1Interface

func (*AppV1) StatefulSets

func (*AppV1) StatefulSets(namespace string) v1.StatefulSetInterface

StatefulSets implements v1.AppsV1Interface

type Client

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

func NewClient

func NewClient(expectError bool) *Client

func (*Client) BuildConfigFromFlags

func (c *Client) BuildConfigFromFlags(masterUrl string, kubeconfigPath string) (*rest.Config, error)

func (*Client) InClusterConfig

func (c *Client) InClusterConfig() (*rest.Config, error)

func (*Client) NewForConfig

func (c *Client) NewForConfig(*rest.Config) (*kubernetes.Clientset, error)

NewForConfig returns a new Kubernetes clientset

func (*Client) NewIngressRouteClientForConfig added in v0.12.3

func (c *Client) NewIngressRouteClientForConfig(*rest.Config) (*ingressroute.CustomResourceClient, error)

NewIngressRouteClientForConfig returns a new ingressroute client

func (*Client) OsUserHomeDir

func (c *Client) OsUserHomeDir() (string, error)

type Clientset

type Clientset struct{}

func NewClientset

func NewClientset() *Clientset

func (*Clientset) AdmissionregistrationV1

AdmissionregistrationV1 implements kubernetes.Interface

func (*Clientset) AdmissionregistrationV1alpha1 added in v0.20.0

AdmissionregistrationV1alpha1 implements kubernetes.Interface.

func (*Clientset) AdmissionregistrationV1beta1

AdmissionregistrationV1beta1 implements kubernetes.Interface

func (*Clientset) AppsV1

func (*Clientset) AppsV1() appsv1.AppsV1Interface

AppsV1 implements kubernetes.Interface

func (*Clientset) AppsV1beta1

AppsV1beta1 implements kubernetes.Interface

func (*Clientset) AppsV1beta2

AppsV1beta2 implements kubernetes.Interface

func (*Clientset) AuthenticationV1

AuthenticationV1 implements kubernetes.Interface

func (*Clientset) AuthenticationV1alpha1 added in v0.20.0

AuthenticationV1alpha1 implements kubernetes.Interface.

func (*Clientset) AuthenticationV1beta1

AuthenticationV1beta1 implements kubernetes.Interface

func (*Clientset) AuthorizationV1

AuthorizationV1 implements kubernetes.Interface

func (*Clientset) AuthorizationV1beta1

AuthorizationV1beta1 implements kubernetes.Interface

func (*Clientset) AutoscalingV1

AutoscalingV1 implements kubernetes.Interface

func (*Clientset) AutoscalingV2 added in v0.20.0

func (c *Clientset) AutoscalingV2() v2.AutoscalingV2Interface

AutoscalingV2 implements kubernetes.Interface.

func (*Clientset) AutoscalingV2beta1

AutoscalingV2beta1 implements kubernetes.Interface

func (*Clientset) AutoscalingV2beta2

AutoscalingV2beta2 implements kubernetes.Interface

func (*Clientset) BatchV1

func (*Clientset) BatchV1() batchv1.BatchV1Interface

BatchV1 implements kubernetes.Interface

func (*Clientset) BatchV1beta1

BatchV1beta1 implements kubernetes.Interface

func (*Clientset) CertificatesV1

CertificatesV1 implements kubernetes.Interface

func (*Clientset) CertificatesV1alpha1 added in v0.20.0

CertificatesV1alpha1 implements kubernetes.Interface.

func (*Clientset) CertificatesV1beta1

CertificatesV1beta1 implements kubernetes.Interface

func (*Clientset) CoordinationV1

CoordinationV1 implements kubernetes.Interface

func (*Clientset) CoordinationV1beta1

CoordinationV1beta1 implements kubernetes.Interface

func (*Clientset) CoreV1

func (c *Clientset) CoreV1() corev1.CoreV1Interface

CoreV1 implements kubernetes.Interface

func (*Clientset) Discovery

func (*Clientset) Discovery() discovery.DiscoveryInterface

Discovery implements kubernetes.Interface

func (*Clientset) DiscoveryV1

DiscoveryV1 implements kubernetes.Interface

func (*Clientset) DiscoveryV1beta1

DiscoveryV1beta1 implements kubernetes.Interface

func (*Clientset) EventsV1

func (*Clientset) EventsV1() eventsv1.EventsV1Interface

EventsV1 implements kubernetes.Interface

func (*Clientset) EventsV1beta1

EventsV1beta1 implements kubernetes.Interface

func (*Clientset) ExtensionsV1beta1

ExtensionsV1beta1 implements kubernetes.Interface

func (*Clientset) FlowcontrolV1 added in v0.20.0

func (c *Clientset) FlowcontrolV1() v1.FlowcontrolV1Interface

FlowcontrolV1 implements kubernetes.Interface.

func (*Clientset) FlowcontrolV1beta1

FlowcontrolV1beta1 implements kubernetes.Interface

func (*Clientset) FlowcontrolV1beta2 added in v0.20.0

func (c *Clientset) FlowcontrolV1beta2() v1beta2.FlowcontrolV1beta2Interface

FlowcontrolV1beta2 implements kubernetes.Interface.

func (*Clientset) FlowcontrolV1beta3 added in v0.20.0

func (c *Clientset) FlowcontrolV1beta3() v1beta3.FlowcontrolV1beta3Interface

FlowcontrolV1beta3 implements kubernetes.Interface.

func (*Clientset) InternalV1alpha1

InternalV1alpha1 implements kubernetes.Interface

func (*Clientset) NetworkingV1

NetworkingV1 implements kubernetes.Interface

func (*Clientset) NetworkingV1alpha1 added in v0.20.0

NetworkingV1alpha1 implements kubernetes.Interface.

func (*Clientset) NetworkingV1beta1

NetworkingV1beta1 implements kubernetes.Interface

func (*Clientset) NodeV1

func (*Clientset) NodeV1() nodev1.NodeV1Interface

NodeV1 implements kubernetes.Interface

func (*Clientset) NodeV1alpha1

NodeV1alpha1 implements kubernetes.Interface

func (*Clientset) NodeV1beta1

NodeV1beta1 implements kubernetes.Interface

func (*Clientset) PolicyV1

func (*Clientset) PolicyV1() policyv1.PolicyV1Interface

PolicyV1 implements kubernetes.Interface

func (*Clientset) PolicyV1beta1

PolicyV1beta1 implements kubernetes.Interface

func (*Clientset) RbacV1

func (*Clientset) RbacV1() rbacv1.RbacV1Interface

RbacV1 implements kubernetes.Interface

func (*Clientset) RbacV1alpha1

RbacV1alpha1 implements kubernetes.Interface

func (*Clientset) RbacV1beta1

RbacV1beta1 implements kubernetes.Interface

func (*Clientset) ResourceV1alpha2 added in v0.20.0

func (c *Clientset) ResourceV1alpha2() v1alpha2.ResourceV1alpha2Interface

ResourceV1alpha2 implements kubernetes.Interface.

func (*Clientset) SchedulingV1

SchedulingV1 implements kubernetes.Interface

func (*Clientset) SchedulingV1alpha1

SchedulingV1alpha1 implements kubernetes.Interface

func (*Clientset) SchedulingV1beta1

SchedulingV1beta1 implements kubernetes.Interface

func (*Clientset) StorageV1

func (*Clientset) StorageV1() storagev1.StorageV1Interface

StorageV1 implements kubernetes.Interface

func (*Clientset) StorageV1alpha1

StorageV1alpha1 implements kubernetes.Interface

func (*Clientset) StorageV1beta1

StorageV1beta1 implements kubernetes.Interface

func (*Clientset) StoragemigrationV1alpha1 added in v0.20.0

StoragemigrationV1alpha1 implements kubernetes.Interface.

type ConfigMap

type ConfigMap struct{}

func NewConfigMap

func NewConfigMap() *ConfigMap

func (*ConfigMap) Apply

Apply implements v1.ConfigMapInterface

func (*ConfigMap) Create

func (c *ConfigMap) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)

Create implements v1.ConfigMapInterface

func (*ConfigMap) Delete

func (c *ConfigMap) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.ConfigMapInterface

func (*ConfigMap) DeleteCollection

func (*ConfigMap) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.ConfigMapInterface

func (*ConfigMap) Get

func (*ConfigMap) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConfigMap, error)

Get implements v1.ConfigMapInterface

func (*ConfigMap) List

List implements v1.ConfigMapInterface

func (*ConfigMap) Patch

func (*ConfigMap) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConfigMap, err error)

Patch implements v1.ConfigMapInterface

func (*ConfigMap) Update

func (c *ConfigMap) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (*v1.ConfigMap, error)

Update implements v1.ConfigMapInterface

func (*ConfigMap) Watch

Watch implements v1.ConfigMapInterface

type CoreV1

type CoreV1 struct{}

func NewCoreV1

func NewCoreV1() *CoreV1

func (*CoreV1) ComponentStatuses

func (*CoreV1) ComponentStatuses() corev1.ComponentStatusInterface

ComponentStatuses implements v1.CoreV1Interface

func (*CoreV1) ConfigMaps

func (*CoreV1) ConfigMaps(namespace string) corev1.ConfigMapInterface

ConfigMaps implements v1.CoreV1Interface

func (*CoreV1) Endpoints

func (*CoreV1) Endpoints(namespace string) corev1.EndpointsInterface

Endpoints implements v1.CoreV1Interface

func (*CoreV1) Events

func (*CoreV1) Events(namespace string) corev1.EventInterface

Events implements v1.CoreV1Interface

func (*CoreV1) LimitRanges

func (*CoreV1) LimitRanges(namespace string) corev1.LimitRangeInterface

LimitRanges implements v1.CoreV1Interface

func (*CoreV1) Namespaces

func (*CoreV1) Namespaces() corev1.NamespaceInterface

Namespaces implements v1.CoreV1Interface

func (*CoreV1) Nodes

func (*CoreV1) Nodes() corev1.NodeInterface

Nodes implements v1.CoreV1Interface

func (*CoreV1) PersistentVolumeClaims

func (*CoreV1) PersistentVolumeClaims(namespace string) corev1.PersistentVolumeClaimInterface

PersistentVolumeClaims implements v1.CoreV1Interface

func (*CoreV1) PersistentVolumes

func (*CoreV1) PersistentVolumes() corev1.PersistentVolumeInterface

PersistentVolumes implements v1.CoreV1Interface

func (*CoreV1) PodTemplates

func (*CoreV1) PodTemplates(namespace string) corev1.PodTemplateInterface

PodTemplates implements v1.CoreV1Interface

func (*CoreV1) Pods

func (*CoreV1) Pods(namespace string) corev1.PodInterface

Pods implements v1.CoreV1Interface

func (*CoreV1) RESTClient

func (*CoreV1) RESTClient() rest.Interface

RESTClient implements v1.CoreV1Interface

func (*CoreV1) ReplicationControllers

func (*CoreV1) ReplicationControllers(namespace string) corev1.ReplicationControllerInterface

ReplicationControllers implements v1.CoreV1Interface

func (*CoreV1) ResourceQuotas

func (*CoreV1) ResourceQuotas(namespace string) corev1.ResourceQuotaInterface

ResourceQuotas implements v1.CoreV1Interface

func (*CoreV1) Secrets

func (*CoreV1) Secrets(namespace string) corev1.SecretInterface

Secrets implements v1.CoreV1Interface

func (*CoreV1) ServiceAccounts

func (*CoreV1) ServiceAccounts(namespace string) corev1.ServiceAccountInterface

ServiceAccounts implements v1.CoreV1Interface

func (*CoreV1) Services

func (*CoreV1) Services(namespace string) corev1.ServiceInterface

Services implements v1.CoreV1Interface

type Ingress

type Ingress struct{}

func NewIngress

func NewIngress() *Ingress

func (*Ingress) Apply

Apply implements v1.IngressInterface

func (*Ingress) ApplyStatus

func (*Ingress) ApplyStatus(ctx context.Context, ingress *networkingv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *netv1.Ingress, err error)

ApplyStatus implements v1.IngressInterface

func (*Ingress) Create

func (*Ingress) Create(ctx context.Context, ingress *netv1.Ingress, opts metav1.CreateOptions) (*netv1.Ingress, error)

Create implements v1.IngressInterface

func (*Ingress) Delete

func (*Ingress) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.IngressInterface

func (*Ingress) DeleteCollection

func (*Ingress) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.IngressInterface

func (*Ingress) Get

func (*Ingress) Get(ctx context.Context, name string, opts metav1.GetOptions) (*netv1.Ingress, error)

Get implements v1.IngressInterface

func (*Ingress) List

List implements v1.IngressInterface

func (*Ingress) Patch

func (*Ingress) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *netv1.Ingress, err error)

Patch implements v1.IngressInterface

func (*Ingress) Update

func (*Ingress) Update(ctx context.Context, ingress *netv1.Ingress, opts metav1.UpdateOptions) (*netv1.Ingress, error)

Update implements v1.IngressInterface

func (*Ingress) UpdateStatus

func (*Ingress) UpdateStatus(ctx context.Context, ingress *netv1.Ingress, opts metav1.UpdateOptions) (*netv1.Ingress, error)

UpdateStatus implements v1.IngressInterface

func (*Ingress) Watch

Watch implements v1.IngressInterface

type MockRoundTripper added in v0.12.0

type MockRoundTripper struct {
	RoundTripFunc func(req *http.Request) (*http.Response, error)
}

MockRoundTripper is a mock implementation of the RoundTripper interface.

func (*MockRoundTripper) RoundTrip added in v0.12.0

func (m *MockRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip calls the RoundTripFunc method of the mock.

type Namespace

type Namespace struct{}

func NewNamespace

func NewNamespace() *Namespace

func (*Namespace) Apply

func (*Namespace) Apply(ctx context.Context, namespace *corev1.NamespaceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Namespace, err error)

Apply implements v1.NamespaceInterface

func (*Namespace) ApplyStatus

func (*Namespace) ApplyStatus(ctx context.Context, namespace *corev1.NamespaceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Namespace, err error)

ApplyStatus implements v1.NamespaceInterface

func (*Namespace) Create

func (nm *Namespace) Create(ctx context.Context, namespace *v1.Namespace, opts metav1.CreateOptions) (*v1.Namespace, error)

Create implements v1.NamespaceInterface

func (*Namespace) Delete

func (*Namespace) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.NamespaceInterface

func (*Namespace) Finalize

func (*Namespace) Finalize(ctx context.Context, item *v1.Namespace, opts metav1.UpdateOptions) (*v1.Namespace, error)

Finalize implements v1.NamespaceInterface

func (*Namespace) Get

func (*Namespace) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Namespace, error)

Get implements v1.NamespaceInterface

func (*Namespace) List

List implements v1.NamespaceInterface

func (*Namespace) Patch

func (*Namespace) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Namespace, err error)

Patch implements v1.NamespaceInterface

func (*Namespace) Update

func (*Namespace) Update(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (*v1.Namespace, error)

Update implements v1.NamespaceInterface

func (*Namespace) UpdateStatus

func (*Namespace) UpdateStatus(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (*v1.Namespace, error)

UpdateStatus implements v1.NamespaceInterface

func (*Namespace) Watch

Watch implements v1.NamespaceInterface

type NetworkingV1

type NetworkingV1 struct{}

func NewNetworkingV1

func NewNetworkingV1() *NetworkingV1

func (*NetworkingV1) IngressClasses

func (*NetworkingV1) IngressClasses() v1.IngressClassInterface

IngressClasses implements v1.NetworkingV1Interface

func (*NetworkingV1) Ingresses

func (*NetworkingV1) Ingresses(namespace string) v1.IngressInterface

Ingresses implements v1.NetworkingV1Interface

func (*NetworkingV1) NetworkPolicies

func (*NetworkingV1) NetworkPolicies(namespace string) v1.NetworkPolicyInterface

NetworkPolicies implements v1.NetworkingV1Interface

func (*NetworkingV1) RESTClient

func (*NetworkingV1) RESTClient() rest.Interface

RESTClient implements v1.NetworkingV1Interface

type Pod

type Pod struct{}

func NewPod

func NewPod() *Pod

func (*Pod) Apply

func (*Pod) Apply(ctx context.Context, pod *configcorev1.PodApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Pod, err error)

Apply implements v1.PodInterface

func (*Pod) ApplyStatus

func (*Pod) ApplyStatus(ctx context.Context, pod *configcorev1.PodApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Pod, err error)

ApplyStatus implements v1.PodInterface

func (*Pod) Bind

func (*Pod) Bind(ctx context.Context, binding *v1.Binding, opts metav1.CreateOptions) error

Bind implements v1.PodInterface

func (*Pod) Create

func (*Pod) Create(ctx context.Context, pod *v1.Pod, opts metav1.CreateOptions) (*v1.Pod, error)

Create implements v1.PodInterface

func (*Pod) Delete

func (*Pod) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.PodInterface

func (*Pod) DeleteCollection

func (*Pod) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.PodInterface

func (*Pod) Evict

func (*Pod) Evict(ctx context.Context, eviction *policy.Eviction) error

Evict implements v1.PodInterface

func (*Pod) EvictV1 added in v0.11.15

func (*Pod) EvictV1(ctx context.Context, eviction *policyv1.Eviction) error

EvictV1 implements v1.PodInterface

func (*Pod) EvictV1beta1 added in v0.11.15

func (*Pod) EvictV1beta1(ctx context.Context, eviction *policy.Eviction) error

EvictV1beta1 implements v1.PodInterface

func (*Pod) Get

func (*Pod) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Pod, error)

Get implements v1.PodInterface

func (*Pod) GetLogs

func (*Pod) GetLogs(name string, opts *v1.PodLogOptions) *restclient.Request

GetLogs implements v1.PodInterface

func (*Pod) List

func (*Pod) List(ctx context.Context, opts metav1.ListOptions) (*v1.PodList, error)

List implements v1.PodInterface

func (*Pod) Patch

func (*Pod) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Pod, err error)

Patch implements v1.PodInterface

func (*Pod) ProxyGet

func (*Pod) ProxyGet(scheme string, name string, port string, path string, params map[string]string) restclient.ResponseWrapper

ProxyGet implements v1.PodInterface

func (*Pod) Update

func (*Pod) Update(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (*v1.Pod, error)

Update implements v1.PodInterface

func (*Pod) UpdateEphemeralContainers

func (*Pod) UpdateEphemeralContainers(ctx context.Context, podName string, pod *v1.Pod, opts metav1.UpdateOptions) (*v1.Pod, error)

UpdateEphemeralContainers implements v1.PodInterface

func (*Pod) UpdateStatus

func (*Pod) UpdateStatus(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (*v1.Pod, error)

UpdateStatus implements v1.PodInterface

func (*Pod) Watch

func (*Pod) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch implements v1.PodInterface

type Pvc

type Pvc struct{}

func NewPvc

func NewPvc() *Pvc

func (*Pvc) Apply

Apply implements v1.PersistentVolumeClaimInterface

func (*Pvc) ApplyStatus

func (*Pvc) ApplyStatus(ctx context.Context, persistentVolumeClaim *configcorev1.PersistentVolumeClaimApplyConfiguration, opts metav1.ApplyOptions) (result *v1.PersistentVolumeClaim, err error)

ApplyStatus implements v1.PersistentVolumeClaimInterface

func (*Pvc) Create

func (*Pvc) Create(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.CreateOptions) (*v1.PersistentVolumeClaim, error)

Create implements v1.PersistentVolumeClaimInterface

func (*Pvc) Delete

func (*Pvc) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.PersistentVolumeClaimInterface

func (*Pvc) DeleteCollection

func (*Pvc) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.PersistentVolumeClaimInterface

func (*Pvc) Get

Get implements v1.PersistentVolumeClaimInterface

func (*Pvc) List

List implements v1.PersistentVolumeClaimInterface

func (*Pvc) Patch

func (*Pvc) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolumeClaim, err error)

Patch implements v1.PersistentVolumeClaimInterface

func (*Pvc) Update

func (*Pvc) Update(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (*v1.PersistentVolumeClaim, error)

Update implements v1.PersistentVolumeClaimInterface

func (*Pvc) UpdateStatus

func (*Pvc) UpdateStatus(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (*v1.PersistentVolumeClaim, error)

UpdateStatus implements v1.PersistentVolumeClaimInterface

func (*Pvc) Watch

func (*Pvc) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch implements v1.PersistentVolumeClaimInterface

type Secret

type Secret struct{}

func NewSecret

func NewSecret() *Secret

func (*Secret) Apply

func (*Secret) Apply(ctx context.Context, secret *configcorev1.SecretApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Secret, err error)

Apply implements v1.SecretInterface

func (*Secret) Create

func (*Secret) Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (*v1.Secret, error)

Create implements v1.SecretInterface

func (*Secret) Delete

func (*Secret) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.SecretInterface

func (*Secret) DeleteCollection

func (*Secret) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.SecretInterface

func (*Secret) Get

func (*Secret) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Secret, error)

Get implements v1.SecretInterface

func (*Secret) List

func (*Secret) List(ctx context.Context, opts metav1.ListOptions) (*v1.SecretList, error)

List implements v1.SecretInterface

func (*Secret) Patch

func (*Secret) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Secret, err error)

Patch implements v1.SecretInterface

func (*Secret) Update

func (*Secret) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error)

Update implements v1.SecretInterface

func (*Secret) Watch

Watch implements v1.SecretInterface

type Service

type Service struct{}

func NewService

func NewService() *Service

func (*Service) Apply

func (*Service) Apply(ctx context.Context, service *configcorev1.ServiceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Service, err error)

Apply implements v1.ServiceInterface

func (*Service) ApplyStatus

func (*Service) ApplyStatus(ctx context.Context, service *configcorev1.ServiceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Service, err error)

ApplyStatus implements v1.ServiceInterface

func (*Service) Create

func (*Service) Create(ctx context.Context, service *v1.Service, opts metav1.CreateOptions) (*v1.Service, error)

Create implements v1.ServiceInterface

func (*Service) Delete

func (*Service) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.ServiceInterface

func (*Service) Get

func (*Service) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Service, error)

Get implements v1.ServiceInterface

func (*Service) List

List implements v1.ServiceInterface

func (*Service) Patch

func (*Service) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Service, err error)

Patch implements v1.ServiceInterface

func (*Service) ProxyGet

func (*Service) ProxyGet(scheme string, name string, port string, path string, params map[string]string) restclient.ResponseWrapper

ProxyGet implements v1.ServiceInterface

func (*Service) Update

func (*Service) Update(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (*v1.Service, error)

Update implements v1.ServiceInterface

func (*Service) UpdateStatus

func (*Service) UpdateStatus(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (*v1.Service, error)

UpdateStatus implements v1.ServiceInterface

func (*Service) Watch

Watch implements v1.ServiceInterface

type ServiceAccount

type ServiceAccount struct{}

func NewServiceAccount

func NewServiceAccount() *ServiceAccount

func (*ServiceAccount) Apply

Apply implements v1.ServiceAccountInterface

func (*ServiceAccount) Create

func (*ServiceAccount) Create(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.CreateOptions) (*v1.ServiceAccount, error)

Create implements v1.ServiceAccountInterface

func (*ServiceAccount) CreateToken

func (*ServiceAccount) CreateToken(ctx context.Context, serviceAccountName string, tokenRequest *authenticationv1.TokenRequest, opts metav1.CreateOptions) (*authenticationv1.TokenRequest, error)

CreateToken implements v1.ServiceAccountInterface

func (*ServiceAccount) Delete

func (*ServiceAccount) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.ServiceAccountInterface

func (*ServiceAccount) DeleteCollection

func (*ServiceAccount) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.ServiceAccountInterface

func (*ServiceAccount) Get

Get implements v1.ServiceAccountInterface

func (*ServiceAccount) List

List implements v1.ServiceAccountInterface

func (*ServiceAccount) Patch

func (*ServiceAccount) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceAccount, err error)

Patch implements v1.ServiceAccountInterface

func (*ServiceAccount) Update

func (*ServiceAccount) Update(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.UpdateOptions) (*v1.ServiceAccount, error)

Update implements v1.ServiceAccountInterface

func (*ServiceAccount) Watch

Watch implements v1.ServiceAccountInterface

type StatefulSet

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

func NewStatefulSet

func NewStatefulSet(ns string) *StatefulSet

func (*StatefulSet) Apply

Apply implements v1.StatefulSetInterface

func (*StatefulSet) ApplyScale added in v0.11.15

ApplyScale implements v1.StatefulSetInterface

func (*StatefulSet) ApplyStatus

func (*StatefulSet) ApplyStatus(ctx context.Context, statefulSet *configappsv1.StatefulSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.StatefulSet, err error)

ApplyStatus implements v1.StatefulSetInterface

func (*StatefulSet) Create

func (*StatefulSet) Create(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.CreateOptions) (*v1.StatefulSet, error)

Create implements v1.StatefulSetInterface

func (*StatefulSet) Delete

func (*StatefulSet) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete implements v1.StatefulSetInterface

func (*StatefulSet) DeleteCollection

func (*StatefulSet) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection implements v1.StatefulSetInterface

func (*StatefulSet) Get

Get implements v1.StatefulSetInterface

func (*StatefulSet) GetScale

func (*StatefulSet) GetScale(ctx context.Context, statefulSetName string, options metav1.GetOptions) (*autoscalingv1.Scale, error)

GetScale implements v1.StatefulSetInterface

func (*StatefulSet) List

List implements v1.StatefulSetInterface

func (*StatefulSet) Patch

func (*StatefulSet) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.StatefulSet, err error)

Patch implements v1.StatefulSetInterface

func (*StatefulSet) Update

func (*StatefulSet) Update(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.UpdateOptions) (*v1.StatefulSet, error)

Update implements v1.StatefulSetInterface

func (*StatefulSet) UpdateScale

func (*StatefulSet) UpdateScale(ctx context.Context, statefulSetName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (*autoscalingv1.Scale, error)

UpdateScale implements v1.StatefulSetInterface

func (*StatefulSet) UpdateStatus

func (*StatefulSet) UpdateStatus(ctx context.Context, statefulSet *v1.StatefulSet, opts metav1.UpdateOptions) (*v1.StatefulSet, error)

UpdateStatus implements v1.StatefulSetInterface

func (*StatefulSet) Watch

Watch implements v1.StatefulSetInterface

Jump to

Keyboard shortcuts

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