Documentation ¶
Overview ¶
This package has the automatically generated typed clients.
Index ¶
- type CoreV1Client
- func (c *CoreV1Client) Endpoints(namespace string) EndpointsInterface
- func (c *CoreV1Client) Namespaces() NamespaceInterface
- func (c *CoreV1Client) Nodes() NodeInterface
- func (c *CoreV1Client) Pods(namespace string) PodInterface
- func (c *CoreV1Client) RESTClient() rest.Interface
- func (c *CoreV1Client) Services(namespace string) ServiceInterface
- type CoreV1Interface
- type EndpointsExpansion
- type EndpointsGetter
- type EndpointsInterface
- type NamespaceExpansion
- type NamespaceInterface
- type NamespacesGetter
- type NodeExpansion
- type NodeInterface
- type NodesGetter
- type PodExpansion
- type PodInterface
- type PodsGetter
- type ServiceExpansion
- type ServiceInterface
- type ServicesGetter
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.
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) Services ¶
func (c *CoreV1Client) Services(namespace string) ServiceInterface
type CoreV1Interface ¶
type CoreV1Interface interface { RESTClient() rest.Interface EndpointsGetter NamespacesGetter NodesGetter PodsGetter ServicesGetter }
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) 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 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 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.