v1

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Overview

This package has the automatically generated typed clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreV1Client

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

CoreV1Client is used to interact with features provided by the core 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. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).

func NewForConfigAndClient

func NewForConfigAndClient(c *rest.Config, h *http.Client) (*CoreV1Client, error)

NewForConfigAndClient creates a new CoreV1Client for the given config and http client. Note the http client provided takes precedence over the configured transport values.

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) Endpoints

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

func (*CoreV1Client) Namespaces

func (c *CoreV1Client) Namespaces() NamespaceInterface

func (*CoreV1Client) Nodes

func (c *CoreV1Client) Nodes() NodeInterface

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) Secrets

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

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 NamespaceExpansion

type NamespaceExpansion interface{}

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)
	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{}

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 PodExpansion

type PodExpansion interface{}

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)
	UpdateEphemeralContainers(ctx context.Context, podName string, pod *v1.Pod, opts metav1.UpdateOptions) (*v1.Pod, error)

	PodExpansion
}

PodInterface has methods to work with Pod resources.

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 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 ServiceExpansion

type ServiceExpansion interface{}

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.

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