Back to godoc.org

Package v1

v0.19.2
Latest Go to latest

The latest major version is .

Published: 5 days ago | License: Apache-2.0 | Module: k8s.io/client-go

Overview

This package has the automatically generated typed clients.

Index

func GetInvolvedObjectNameFieldLabel

func GetInvolvedObjectNameFieldLabel(version string) string

Returns the appropriate field label to use for name of the involved object as per the given API version. DEPRECATED: please use "involvedObject.name" inline.

type ComponentStatusExpansion

type ComponentStatusExpansion interface{}

type ComponentStatusInterface

type ComponentStatusInterface interface {
	Create(ctx context.Context, componentStatus *v1.ComponentStatus, opts metav1.CreateOptions) (*v1.ComponentStatus, error)
	Update(ctx context.Context, componentStatus *v1.ComponentStatus, opts metav1.UpdateOptions) (*v1.ComponentStatus, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ComponentStatus, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.ComponentStatusList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ComponentStatus, err error)
	ComponentStatusExpansion
}

ComponentStatusInterface has methods to work with ComponentStatus resources.

type ComponentStatusesGetter

type ComponentStatusesGetter interface {
	ComponentStatuses() ComponentStatusInterface
}

ComponentStatusesGetter has a method to return a ComponentStatusInterface. A group's client should implement this interface.

type ConfigMapExpansion

type ConfigMapExpansion interface{}

type ConfigMapInterface

type ConfigMapInterface interface {
	Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
	Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (*v1.ConfigMap, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConfigMap, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.ConfigMapList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConfigMap, err error)
	ConfigMapExpansion
}

ConfigMapInterface has methods to work with ConfigMap resources.

type ConfigMapsGetter

type ConfigMapsGetter interface {
	ConfigMaps(namespace string) ConfigMapInterface
}

ConfigMapsGetter has a method to return a ConfigMapInterface. A group's client should implement this interface.

type CoreV1Client

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

CoreV1Client is used to interact with features provided by the group.

func New

func New(c rest.Interface) *CoreV1Client

New creates a new CoreV1Client for the given RESTClient.

func NewForConfig

func NewForConfig(c *rest.Config) (*CoreV1Client, error)

NewForConfig creates a new CoreV1Client for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *CoreV1Client

NewForConfigOrDie creates a new CoreV1Client for the given config and panics if there is an error in the config.

func (*CoreV1Client) ComponentStatuses

func (c *CoreV1Client) ComponentStatuses() ComponentStatusInterface

func (*CoreV1Client) ConfigMaps

func (c *CoreV1Client) ConfigMaps(namespace string) ConfigMapInterface

func (*CoreV1Client) Endpoints

func (c *CoreV1Client) Endpoints(namespace string) EndpointsInterface

func (*CoreV1Client) Events

func (c *CoreV1Client) Events(namespace string) EventInterface

func (*CoreV1Client) LimitRanges

func (c *CoreV1Client) LimitRanges(namespace string) LimitRangeInterface

func (*CoreV1Client) Namespaces

func (c *CoreV1Client) Namespaces() NamespaceInterface

func (*CoreV1Client) Nodes

func (c *CoreV1Client) Nodes() NodeInterface

func (*CoreV1Client) PersistentVolumeClaims

func (c *CoreV1Client) PersistentVolumeClaims(namespace string) PersistentVolumeClaimInterface

func (*CoreV1Client) PersistentVolumes

func (c *CoreV1Client) PersistentVolumes() PersistentVolumeInterface

func (*CoreV1Client) PodTemplates

func (c *CoreV1Client) PodTemplates(namespace string) PodTemplateInterface

func (*CoreV1Client) Pods

func (c *CoreV1Client) Pods(namespace string) PodInterface

func (*CoreV1Client) RESTClient

func (c *CoreV1Client) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*CoreV1Client) ReplicationControllers

func (c *CoreV1Client) ReplicationControllers(namespace string) ReplicationControllerInterface

func (*CoreV1Client) ResourceQuotas

func (c *CoreV1Client) ResourceQuotas(namespace string) ResourceQuotaInterface

func (*CoreV1Client) Secrets

func (c *CoreV1Client) Secrets(namespace string) SecretInterface

func (*CoreV1Client) ServiceAccounts

func (c *CoreV1Client) ServiceAccounts(namespace string) ServiceAccountInterface

func (*CoreV1Client) Services

func (c *CoreV1Client) Services(namespace string) ServiceInterface

type EndpointsExpansion

type EndpointsExpansion interface{}

type EndpointsGetter

type EndpointsGetter interface {
	Endpoints(namespace string) EndpointsInterface
}

EndpointsGetter has a method to return a EndpointsInterface. A group's client should implement this interface.

type EndpointsInterface

type EndpointsInterface interface {
	Create(ctx context.Context, endpoints *v1.Endpoints, opts metav1.CreateOptions) (*v1.Endpoints, error)
	Update(ctx context.Context, endpoints *v1.Endpoints, opts metav1.UpdateOptions) (*v1.Endpoints, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Endpoints, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.EndpointsList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Endpoints, err error)
	EndpointsExpansion
}

EndpointsInterface has methods to work with Endpoints resources.

type EventExpansion

type EventExpansion interface {
	// CreateWithEventNamespace is the same as a Create, except that it sends the request to the event.Namespace.
	CreateWithEventNamespace(event *v1.Event) (*v1.Event, error)
	// UpdateWithEventNamespace is the same as a Update, except that it sends the request to the event.Namespace.
	UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error)
	PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.Event, error)
	// Search finds events about the specified object
	Search(scheme *runtime.Scheme, objOrRef runtime.Object) (*v1.EventList, error)
	// Returns the appropriate field selector based on the API version being used to communicate with the server.
	// The returned field selector can be used with List and Watch to filter desired events.
	GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector
}

The EventExpansion interface allows manually adding extra methods to the EventInterface.

type EventInterface

type EventInterface interface {
	Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (*v1.Event, error)
	Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (*v1.Event, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Event, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.EventList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error)
	EventExpansion
}

EventInterface has methods to work with Event resources.

type EventSinkImpl

type EventSinkImpl struct {
	Interface EventInterface
}

TODO: This is a temporary arrangement and will be removed once all clients are moved to use the clientset.

func (*EventSinkImpl) Create

func (e *EventSinkImpl) Create(event *v1.Event) (*v1.Event, error)

func (*EventSinkImpl) Patch

func (e *EventSinkImpl) Patch(event *v1.Event, data []byte) (*v1.Event, error)

func (*EventSinkImpl) Update

func (e *EventSinkImpl) Update(event *v1.Event) (*v1.Event, error)

type EventsGetter

type EventsGetter interface {
	Events(namespace string) EventInterface
}

EventsGetter has a method to return a EventInterface. A group's client should implement this interface.

type LimitRangeExpansion

type LimitRangeExpansion interface{}

type LimitRangeInterface

type LimitRangeInterface interface {
	Create(ctx context.Context, limitRange *v1.LimitRange, opts metav1.CreateOptions) (*v1.LimitRange, error)
	Update(ctx context.Context, limitRange *v1.LimitRange, opts metav1.UpdateOptions) (*v1.LimitRange, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.LimitRange, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.LimitRangeList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LimitRange, err error)
	LimitRangeExpansion
}

LimitRangeInterface has methods to work with LimitRange resources.

type LimitRangesGetter

type LimitRangesGetter interface {
	LimitRanges(namespace string) LimitRangeInterface
}

LimitRangesGetter has a method to return a LimitRangeInterface. A group's client should implement this interface.

type NamespaceExpansion

type NamespaceExpansion interface {
	Finalize(ctx context.Context, item *v1.Namespace, opts metav1.UpdateOptions) (*v1.Namespace, error)
}

The NamespaceExpansion interface allows manually adding extra methods to the NamespaceInterface.

type NamespaceInterface

type NamespaceInterface interface {
	Create(ctx context.Context, namespace *v1.Namespace, opts metav1.CreateOptions) (*v1.Namespace, error)
	Update(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (*v1.Namespace, error)
	UpdateStatus(ctx context.Context, namespace *v1.Namespace, opts metav1.UpdateOptions) (*v1.Namespace, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Namespace, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.NamespaceList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Namespace, err error)
	NamespaceExpansion
}

NamespaceInterface has methods to work with Namespace resources.

type NamespacesGetter

type NamespacesGetter interface {
	Namespaces() NamespaceInterface
}

NamespacesGetter has a method to return a NamespaceInterface. A group's client should implement this interface.

type NodeExpansion

type NodeExpansion interface {
	// PatchStatus modifies the status of an existing node. It returns the copy
	// of the node that the server returns, or an error.
	PatchStatus(ctx context.Context, nodeName string, data []byte) (*v1.Node, error)
}

The NodeExpansion interface allows manually adding extra methods to the NodeInterface.

type NodeInterface

type NodeInterface interface {
	Create(ctx context.Context, node *v1.Node, opts metav1.CreateOptions) (*v1.Node, error)
	Update(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (*v1.Node, error)
	UpdateStatus(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (*v1.Node, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Node, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.NodeList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Node, err error)
	NodeExpansion
}

NodeInterface has methods to work with Node resources.

type NodesGetter

type NodesGetter interface {
	Nodes() NodeInterface
}

NodesGetter has a method to return a NodeInterface. A group's client should implement this interface.

type PersistentVolumeClaimExpansion

type PersistentVolumeClaimExpansion interface{}

type PersistentVolumeClaimInterface

type PersistentVolumeClaimInterface interface {
	Create(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.CreateOptions) (*v1.PersistentVolumeClaim, error)
	Update(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (*v1.PersistentVolumeClaim, error)
	UpdateStatus(ctx context.Context, persistentVolumeClaim *v1.PersistentVolumeClaim, opts metav1.UpdateOptions) (*v1.PersistentVolumeClaim, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.PersistentVolumeClaim, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.PersistentVolumeClaimList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolumeClaim, err error)
	PersistentVolumeClaimExpansion
}

PersistentVolumeClaimInterface has methods to work with PersistentVolumeClaim resources.

type PersistentVolumeClaimsGetter

type PersistentVolumeClaimsGetter interface {
	PersistentVolumeClaims(namespace string) PersistentVolumeClaimInterface
}

PersistentVolumeClaimsGetter has a method to return a PersistentVolumeClaimInterface. A group's client should implement this interface.

type PersistentVolumeExpansion

type PersistentVolumeExpansion interface{}

type PersistentVolumeInterface

type PersistentVolumeInterface interface {
	Create(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.CreateOptions) (*v1.PersistentVolume, error)
	Update(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.UpdateOptions) (*v1.PersistentVolume, error)
	UpdateStatus(ctx context.Context, persistentVolume *v1.PersistentVolume, opts metav1.UpdateOptions) (*v1.PersistentVolume, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.PersistentVolume, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.PersistentVolumeList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PersistentVolume, err error)
	PersistentVolumeExpansion
}

PersistentVolumeInterface has methods to work with PersistentVolume resources.

type PersistentVolumesGetter

type PersistentVolumesGetter interface {
	PersistentVolumes() PersistentVolumeInterface
}

PersistentVolumesGetter has a method to return a PersistentVolumeInterface. A group's client should implement this interface.

type PodExpansion

type PodExpansion interface {
	Bind(ctx context.Context, binding *v1.Binding, opts metav1.CreateOptions) error
	Evict(ctx context.Context, eviction *policy.Eviction) error
	GetLogs(name string, opts *v1.PodLogOptions) *restclient.Request
	ProxyGet(scheme, name, port, path string, params map[string]string) restclient.ResponseWrapper
}

The PodExpansion interface allows manually adding extra methods to the PodInterface.

type PodInterface

type PodInterface interface {
	Create(ctx context.Context, pod *v1.Pod, opts metav1.CreateOptions) (*v1.Pod, error)
	Update(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (*v1.Pod, error)
	UpdateStatus(ctx context.Context, pod *v1.Pod, opts metav1.UpdateOptions) (*v1.Pod, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Pod, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.PodList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Pod, err error)
	GetEphemeralContainers(ctx context.Context, podName string, options metav1.GetOptions) (*v1.EphemeralContainers, error)
	UpdateEphemeralContainers(ctx context.Context, podName string, ephemeralContainers *v1.EphemeralContainers, opts metav1.UpdateOptions) (*v1.EphemeralContainers, error)

	PodExpansion
}

PodInterface has methods to work with Pod resources.

type PodTemplateExpansion

type PodTemplateExpansion interface{}

type PodTemplateInterface

type PodTemplateInterface interface {
	Create(ctx context.Context, podTemplate *v1.PodTemplate, opts metav1.CreateOptions) (*v1.PodTemplate, error)
	Update(ctx context.Context, podTemplate *v1.PodTemplate, opts metav1.UpdateOptions) (*v1.PodTemplate, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.PodTemplate, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.PodTemplateList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.PodTemplate, err error)
	PodTemplateExpansion
}

PodTemplateInterface has methods to work with PodTemplate resources.

type PodTemplatesGetter

type PodTemplatesGetter interface {
	PodTemplates(namespace string) PodTemplateInterface
}

PodTemplatesGetter has a method to return a PodTemplateInterface. A group's client should implement this interface.

type PodsGetter

type PodsGetter interface {
	Pods(namespace string) PodInterface
}

PodsGetter has a method to return a PodInterface. A group's client should implement this interface.

type ReplicationControllerExpansion

type ReplicationControllerExpansion interface{}

type ReplicationControllerInterface

type ReplicationControllerInterface interface {
	Create(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.CreateOptions) (*v1.ReplicationController, error)
	Update(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.UpdateOptions) (*v1.ReplicationController, error)
	UpdateStatus(ctx context.Context, replicationController *v1.ReplicationController, opts metav1.UpdateOptions) (*v1.ReplicationController, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ReplicationController, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.ReplicationControllerList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ReplicationController, err error)
	GetScale(ctx context.Context, replicationControllerName string, options metav1.GetOptions) (*autoscalingv1.Scale, error)
	UpdateScale(ctx context.Context, replicationControllerName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (*autoscalingv1.Scale, error)

	ReplicationControllerExpansion
}

ReplicationControllerInterface has methods to work with ReplicationController resources.

type ReplicationControllersGetter

type ReplicationControllersGetter interface {
	ReplicationControllers(namespace string) ReplicationControllerInterface
}

ReplicationControllersGetter has a method to return a ReplicationControllerInterface. A group's client should implement this interface.

type ResourceQuotaExpansion

type ResourceQuotaExpansion interface{}

type ResourceQuotaInterface

type ResourceQuotaInterface interface {
	Create(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.CreateOptions) (*v1.ResourceQuota, error)
	Update(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.UpdateOptions) (*v1.ResourceQuota, error)
	UpdateStatus(ctx context.Context, resourceQuota *v1.ResourceQuota, opts metav1.UpdateOptions) (*v1.ResourceQuota, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ResourceQuota, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.ResourceQuotaList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ResourceQuota, err error)
	ResourceQuotaExpansion
}

ResourceQuotaInterface has methods to work with ResourceQuota resources.

type ResourceQuotasGetter

type ResourceQuotasGetter interface {
	ResourceQuotas(namespace string) ResourceQuotaInterface
}

ResourceQuotasGetter has a method to return a ResourceQuotaInterface. A group's client should implement this interface.

type SecretExpansion

type SecretExpansion interface{}

type SecretInterface

type SecretInterface interface {
	Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (*v1.Secret, error)
	Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Secret, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.SecretList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Secret, err error)
	SecretExpansion
}

SecretInterface has methods to work with Secret resources.

type SecretsGetter

type SecretsGetter interface {
	Secrets(namespace string) SecretInterface
}

SecretsGetter has a method to return a SecretInterface. A group's client should implement this interface.

type ServiceAccountExpansion

type ServiceAccountExpansion interface{}

type ServiceAccountInterface

type ServiceAccountInterface interface {
	Create(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.CreateOptions) (*v1.ServiceAccount, error)
	Update(ctx context.Context, serviceAccount *v1.ServiceAccount, opts metav1.UpdateOptions) (*v1.ServiceAccount, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ServiceAccount, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.ServiceAccountList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceAccount, err error)
	CreateToken(ctx context.Context, serviceAccountName string, tokenRequest *authenticationv1.TokenRequest, opts metav1.CreateOptions) (*authenticationv1.TokenRequest, error)

	ServiceAccountExpansion
}

ServiceAccountInterface has methods to work with ServiceAccount resources.

type ServiceAccountsGetter

type ServiceAccountsGetter interface {
	ServiceAccounts(namespace string) ServiceAccountInterface
}

ServiceAccountsGetter has a method to return a ServiceAccountInterface. A group's client should implement this interface.

type ServiceExpansion

type ServiceExpansion interface {
	ProxyGet(scheme, name, port, path string, params map[string]string) restclient.ResponseWrapper
}

The ServiceExpansion interface allows manually adding extra methods to the ServiceInterface.

type ServiceInterface

type ServiceInterface interface {
	Create(ctx context.Context, service *v1.Service, opts metav1.CreateOptions) (*v1.Service, error)
	Update(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (*v1.Service, error)
	UpdateStatus(ctx context.Context, service *v1.Service, opts metav1.UpdateOptions) (*v1.Service, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Service, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.ServiceList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Service, err error)
	ServiceExpansion
}

ServiceInterface has methods to work with Service resources.

type ServicesGetter

type ServicesGetter interface {
	Services(namespace string) ServiceInterface
}

ServicesGetter has a method to return a ServiceInterface. A group's client should implement this interface.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier