Documentation ¶
Index ¶
- func FromKube(svc *kubev1.Service) (*v1.KubeService, error)
- func NewClientWithSelector(kubeServiceClient v1.KubeServiceClient, selector map[string]string) v1.KubeServiceClient
- func ToKube(resource resources.Resource) (*kubev1.Service, error)
- type ClientWithSelector
- type ResourceClient
- func (rc *ResourceClient) ApplyStatus(statusClient resources.StatusClient, inputResource resources.InputResource, ...) (resources.Resource, error)
- func (rc *ResourceClient) Delete(namespace, name string, opts clients.DeleteOpts) error
- func (rc *ResourceClient) Kind() string
- func (rc *ResourceClient) List(namespace string, opts clients.ListOpts) (resources.ResourceList, error)
- func (rc *ResourceClient) NewResource() resources.Resource
- func (rc *ResourceClient) Read(namespace, name string, opts clients.ReadOpts) (resources.Resource, error)
- func (rc *ResourceClient) Register() error
- func (rc *ResourceClient) Watch(namespace string, opts clients.WatchOpts) (<-chan resources.ResourceList, <-chan error, error)
- func (rc *ResourceClient) Write(resource resources.Resource, opts clients.WriteOpts) (resources.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithSelector ¶
func NewClientWithSelector(kubeServiceClient v1.KubeServiceClient, selector map[string]string) v1.KubeServiceClient
Types ¶
type ClientWithSelector ¶
type ClientWithSelector struct { v1.KubeServiceClient Selector map[string]string }
func (*ClientWithSelector) Watch ¶
func (c *ClientWithSelector) Watch(namespace string, opts clients.WatchOpts) (<-chan v1.KubeServiceList, <-chan error, error)
type ResourceClient ¶
type ResourceClient struct {
// contains filtered or unexported fields
}
func NewResourceClient ¶
func NewResourceClient(kube kubernetes.Interface, resourceType resources.Resource) *ResourceClient
func (*ResourceClient) ApplyStatus ¶ added in v1.11.42
func (rc *ResourceClient) ApplyStatus(statusClient resources.StatusClient, inputResource resources.InputResource, opts clients.ApplyStatusOpts) (resources.Resource, error)
func (*ResourceClient) Delete ¶
func (rc *ResourceClient) Delete(namespace, name string, opts clients.DeleteOpts) error
func (*ResourceClient) Kind ¶
func (rc *ResourceClient) Kind() string
func (*ResourceClient) List ¶
func (rc *ResourceClient) List(namespace string, opts clients.ListOpts) (resources.ResourceList, error)
func (*ResourceClient) NewResource ¶
func (rc *ResourceClient) NewResource() resources.Resource
func (*ResourceClient) Register ¶
func (rc *ResourceClient) Register() error
func (*ResourceClient) Watch ¶
func (rc *ResourceClient) Watch(namespace string, opts clients.WatchOpts) (<-chan resources.ResourceList, <-chan error, error)
Click to show internal directories.
Click to hide internal directories.