Documentation ¶
Index ¶
- Variables
- 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) FromKubeSecret(secret *v1.Secret) (resources.Resource, error)
- func (rc *ResourceClient) List(namespace string, opts clients.ListOpts) (resources.ResourceList, error)
- func (rc *ResourceClient) Read(namespace, name string, opts clients.ReadOpts) (resources.Resource, error)
- func (rc *ResourceClient) ToKubeSecret(ctx context.Context, resource resources.Resource) (*v1.Secret, 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)
- type SecretConverter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotOurResource = fmt.Errorf("not kube secret resource")
)
Functions ¶
This section is empty.
Types ¶
type ResourceClient ¶
type ResourceClient struct { Kube kubernetes.Interface common.KubeCoreResourceClient // contains filtered or unexported fields }
func NewResourceClient ¶
func NewResourceClient(kube kubernetes.Interface, resourceType resources.Resource, plainSecrets bool, kubeCache cache.KubeCoreCache) (*ResourceClient, error)
func NewResourceClientWithSecretConverter ¶
func NewResourceClientWithSecretConverter(kube kubernetes.Interface, resourceType resources.Resource, kubeCache cache.KubeCoreCache, sc SecretConverter) (*ResourceClient, error)
func (*ResourceClient) ApplyStatus ¶ added in v0.30.3
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) FromKubeSecret ¶
func (*ResourceClient) List ¶
func (rc *ResourceClient) List(namespace string, opts clients.ListOpts) (resources.ResourceList, error)
func (*ResourceClient) ToKubeSecret ¶
func (*ResourceClient) Watch ¶
func (rc *ResourceClient) Watch(namespace string, opts clients.WatchOpts) (<-chan resources.ResourceList, <-chan error, error)
type SecretConverter ¶
type SecretConverter interface { // If this method returns nil,nil the default conversion will be used. FromKubeSecret(ctx context.Context, rc *ResourceClient, secret *v1.Secret) (resources.Resource, error) // If this method returns nil,nil the default conversion will be used. ToKubeSecret(ctx context.Context, rc *ResourceClient, resource resources.Resource) (*v1.Secret, error) }
Click to show internal directories.
Click to hide internal directories.