v1

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

This package has the automatically generated typed clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type ComponentStatusExpansion

type ComponentStatusExpansion interface{}

type ComponentStatusInterface

type ComponentStatusInterface interface {
	Create(*v1.ComponentStatus) (*v1.ComponentStatus, error)
	Update(*v1.ComponentStatus) (*v1.ComponentStatus, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.ComponentStatus, error)
	List(opts metav1.ListOptions) (*v1.ComponentStatusList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.ConfigMap) (*v1.ConfigMap, error)
	Update(*v1.ConfigMap) (*v1.ConfigMap, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.ConfigMap, error)
	List(opts metav1.ListOptions) (*v1.ConfigMapList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.Endpoints) (*v1.Endpoints, error)
	Update(*v1.Endpoints) (*v1.Endpoints, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Endpoints, error)
	List(opts metav1.ListOptions) (*v1.EndpointsList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.Event) (*v1.Event, error)
	Update(*v1.Event) (*v1.Event, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Event, error)
	List(opts metav1.ListOptions) (*v1.EventList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.LimitRange) (*v1.LimitRange, error)
	Update(*v1.LimitRange) (*v1.LimitRange, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.LimitRange, error)
	List(opts metav1.ListOptions) (*v1.LimitRangeList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(item *v1.Namespace) (*v1.Namespace, error)
}

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

type NamespaceInterface

type NamespaceInterface interface {
	Create(*v1.Namespace) (*v1.Namespace, error)
	Update(*v1.Namespace) (*v1.Namespace, error)
	UpdateStatus(*v1.Namespace) (*v1.Namespace, error)
	Delete(name string, options *metav1.DeleteOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Namespace, error)
	List(opts metav1.ListOptions) (*v1.NamespaceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(nodeName string, data []byte) (*v1.Node, error)
}

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

type NodeInterface

type NodeInterface interface {
	Create(*v1.Node) (*v1.Node, error)
	Update(*v1.Node) (*v1.Node, error)
	UpdateStatus(*v1.Node) (*v1.Node, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Node, error)
	List(opts metav1.ListOptions) (*v1.NodeList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
	Update(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
	UpdateStatus(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.PersistentVolumeClaim, error)
	List(opts metav1.ListOptions) (*v1.PersistentVolumeClaimList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.PersistentVolume) (*v1.PersistentVolume, error)
	Update(*v1.PersistentVolume) (*v1.PersistentVolume, error)
	UpdateStatus(*v1.PersistentVolume) (*v1.PersistentVolume, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.PersistentVolume, error)
	List(opts metav1.ListOptions) (*v1.PersistentVolumeList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(binding *v1.Binding) error
	Evict(eviction *policy.Eviction) error
	GetLogs(name string, opts *v1.PodLogOptions) *restclient.Request
}

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

type PodInterface

type PodInterface interface {
	Create(*v1.Pod) (*v1.Pod, error)
	Update(*v1.Pod) (*v1.Pod, error)
	UpdateStatus(*v1.Pod) (*v1.Pod, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Pod, error)
	List(opts metav1.ListOptions) (*v1.PodList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error)
	PodExpansion
}

PodInterface has methods to work with Pod resources.

type PodTemplateExpansion

type PodTemplateExpansion interface{}

type PodTemplateInterface

type PodTemplateInterface interface {
	Create(*v1.PodTemplate) (*v1.PodTemplate, error)
	Update(*v1.PodTemplate) (*v1.PodTemplate, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.PodTemplate, error)
	List(opts metav1.ListOptions) (*v1.PodTemplateList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.ReplicationController) (*v1.ReplicationController, error)
	Update(*v1.ReplicationController) (*v1.ReplicationController, error)
	UpdateStatus(*v1.ReplicationController) (*v1.ReplicationController, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.ReplicationController, error)
	List(opts metav1.ListOptions) (*v1.ReplicationControllerList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ReplicationController, err error)
	GetScale(replicationControllerName string, options metav1.GetOptions) (*autoscalingv1.Scale, error)
	UpdateScale(replicationControllerName string, scale *autoscalingv1.Scale) (*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(*v1.ResourceQuota) (*v1.ResourceQuota, error)
	Update(*v1.ResourceQuota) (*v1.ResourceQuota, error)
	UpdateStatus(*v1.ResourceQuota) (*v1.ResourceQuota, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.ResourceQuota, error)
	List(opts metav1.ListOptions) (*v1.ResourceQuotaList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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(*v1.Secret) (*v1.Secret, error)
	Update(*v1.Secret) (*v1.Secret, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Secret, error)
	List(opts metav1.ListOptions) (*v1.SecretList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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 {
	CreateToken(name string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error)
}

The ServiceAccountExpansion interface allows manually adding extra methods to the ServiceAccountInterface.

type ServiceAccountInterface

type ServiceAccountInterface interface {
	Create(*v1.ServiceAccount) (*v1.ServiceAccount, error)
	Update(*v1.ServiceAccount) (*v1.ServiceAccount, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.ServiceAccount, error)
	List(opts metav1.ListOptions) (*v1.ServiceAccountList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ServiceAccount, err 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(*v1.Service) (*v1.Service, error)
	Update(*v1.Service) (*v1.Service, error)
	UpdateStatus(*v1.Service) (*v1.Service, error)
	Delete(name string, options *metav1.DeleteOptions) error
	Get(name string, options metav1.GetOptions) (*v1.Service, error)
	List(opts metav1.ListOptions) (*v1.ServiceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, 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.

Directories

Path Synopsis
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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