Documentation ¶
Overview ¶
This package has the automatically generated typed clients.
Index ¶
- type ConfigMapExpansion
- type ConfigMapInterface
- type ConfigMapsGetter
- type CoreV1Client
- func (c *CoreV1Client) ConfigMaps(namespace string) ConfigMapInterface
- func (c *CoreV1Client) Events(namespace string) EventInterface
- func (c *CoreV1Client) Namespaces() NamespaceInterface
- func (c *CoreV1Client) RESTClient() rest.Interface
- func (c *CoreV1Client) Secrets(namespace string) SecretInterface
- type CoreV1Interface
- type EventExpansion
- type EventInterface
- type EventsGetter
- type NamespaceExpansion
- type NamespaceInterface
- type NamespacesGetter
- type SecretExpansion
- type SecretInterface
- type SecretsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).
func NewForConfigAndClient ¶
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) ConfigMaps ¶
func (c *CoreV1Client) ConfigMaps(namespace string) ConfigMapInterface
func (*CoreV1Client) Events ¶
func (c *CoreV1Client) Events(namespace string) EventInterface
func (*CoreV1Client) Namespaces ¶
func (c *CoreV1Client) Namespaces() NamespaceInterface
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
type CoreV1Interface ¶
type CoreV1Interface interface { RESTClient() rest.Interface ConfigMapsGetter EventsGetter NamespacesGetter SecretsGetter }
type EventExpansion ¶
type EventExpansion interface{}
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 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 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 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.