Documentation ¶
Overview ¶
This package has the automatically generated typed clients.
Index ¶
- type CoreClient
- func (c *CoreClient) Events(namespace string) EventInterface
- func (c *CoreClient) GetRESTClient() *restclient.RESTClient
- func (c *CoreClient) Namespaces() NamespaceInterface
- func (c *CoreClient) Secrets(namespace string) SecretInterface
- func (c *CoreClient) Services(namespace string) ServiceInterface
- type CoreInterface
- type EventExpansion
- type EventInterface
- type EventsGetter
- type NamespaceExpansion
- type NamespaceInterface
- type NamespacesGetter
- type SecretExpansion
- type SecretInterface
- type SecretsGetter
- type ServiceExpansion
- type ServiceInterface
- type ServicesGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreClient ¶
type CoreClient struct {
*restclient.RESTClient
}
CoreClient is used to interact with features provided by the Core group.
func New ¶
func New(c *restclient.RESTClient) *CoreClient
New creates a new CoreClient for the given RESTClient.
func NewForConfig ¶
func NewForConfig(c *restclient.Config) (*CoreClient, error)
NewForConfig creates a new CoreClient for the given config.
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *restclient.Config) *CoreClient
NewForConfigOrDie creates a new CoreClient for the given config and panics if there is an error in the config.
func (*CoreClient) Events ¶
func (c *CoreClient) Events(namespace string) EventInterface
func (*CoreClient) GetRESTClient ¶
func (c *CoreClient) GetRESTClient() *restclient.RESTClient
GetRESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*CoreClient) Namespaces ¶
func (c *CoreClient) Namespaces() NamespaceInterface
func (*CoreClient) Secrets ¶
func (c *CoreClient) Secrets(namespace string) SecretInterface
func (*CoreClient) Services ¶
func (c *CoreClient) Services(namespace string) ServiceInterface
type CoreInterface ¶
type CoreInterface interface { GetRESTClient() *restclient.RESTClient EventsGetter NamespacesGetter SecretsGetter ServicesGetter }
type EventExpansion ¶
type EventExpansion interface{}
type EventInterface ¶
type EventInterface interface { Create(*v1.Event) (*v1.Event, error) Update(*v1.Event) (*v1.Event, error) Delete(name string, options *api.DeleteOptions) error DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error Get(name string) (*v1.Event, error) List(opts api.ListOptions) (*v1.EventList, error) Watch(opts api.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, 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 ¶
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 *api.DeleteOptions) error DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error Get(name string) (*v1.Namespace, error) List(opts api.ListOptions) (*v1.NamespaceList, error) Watch(opts api.ListOptions) (watch.Interface, error) Patch(name string, pt api.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 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 *api.DeleteOptions) error DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error Get(name string) (*v1.Secret, error) List(opts api.ListOptions) (*v1.SecretList, error) Watch(opts api.ListOptions) (watch.Interface, error) Patch(name string, pt api.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 ServiceExpansion ¶
type ServiceExpansion interface{}
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 *api.DeleteOptions) error DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error Get(name string) (*v1.Service, error) List(opts api.ListOptions) (*v1.ServiceList, error) Watch(opts api.ListOptions) (watch.Interface, error) Patch(name string, pt api.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.