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 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) 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 ¶ added in v1.4.1
func (c *CoreClient) Namespaces() NamespaceInterface
func (*CoreClient) Services ¶
func (c *CoreClient) Services(namespace string) ServiceInterface
type CoreInterface ¶
type CoreInterface interface { GetRESTClient() *restclient.RESTClient NamespacesGetter ServicesGetter }
type NamespaceExpansion ¶ added in v1.4.1
The NamespaceExpansion interface allows manually adding extra methods to the NamespaceInterface.
type NamespaceInterface ¶ added in v1.4.1
type NamespaceInterface interface { Create(*api.Namespace) (*api.Namespace, error) Update(*api.Namespace) (*api.Namespace, error) UpdateStatus(*api.Namespace) (*api.Namespace, error) Delete(name string, options *api.DeleteOptions) error DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error Get(name string) (*api.Namespace, error) List(opts api.ListOptions) (*api.NamespaceList, error) Watch(opts api.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.Namespace, err error) NamespaceExpansion }
NamespaceInterface has methods to work with Namespace resources.
type NamespacesGetter ¶ added in v1.4.1
type NamespacesGetter interface {
Namespaces() NamespaceInterface
}
NamespacesGetter has a method to return a NamespaceInterface. A group's client should implement this interface.
type ServiceExpansion ¶
type ServiceExpansion interface{}
type ServiceInterface ¶
type ServiceInterface interface { Create(*api.Service) (*api.Service, error) Update(*api.Service) (*api.Service, error) UpdateStatus(*api.Service) (*api.Service, error) Delete(name string, options *api.DeleteOptions) error DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error Get(name string) (*api.Service, error) List(opts api.ListOptions) (*api.ServiceList, error) Watch(opts api.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *api.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.