Documentation ¶
Index ¶
- type SecretClient
- func (s *SecretClient) Apply(ctx context.Context, secretConfiguration *applycorev1.SecretApplyConfiguration, ...) (*v1.Secret, error)
- func (s *SecretClient) Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (*v1.Secret, error)
- func (s *SecretClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (s *SecretClient) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (s *SecretClient) Get(ctx context.Context, name string, _ metav1.GetOptions) (*v1.Secret, error)
- func (s *SecretClient) List(ctx context.Context, opts metav1.ListOptions) (*v1.SecretList, error)
- func (s *SecretClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*v1.Secret, error)
- func (s *SecretClient) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error)
- func (s *SecretClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretClient ¶
type SecretClient struct {
// contains filtered or unexported fields
}
SecretClient implements methods to handle secrets. Get and list will be retrieved from the wrangler cache, the other calls will be make to the Kubernetes API server.
func NewSecretClient ¶
func NewSecretClient(cache client.Client, client kubernetes.Interface, namespace string) *SecretClient
func (*SecretClient) Apply ¶
func (s *SecretClient) Apply(ctx context.Context, secretConfiguration *applycorev1.SecretApplyConfiguration, opts metav1.ApplyOptions) (*v1.Secret, error)
Apply applies a secret using a k8s client that calls the Kubernetes API server
func (*SecretClient) Create ¶
func (s *SecretClient) Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (*v1.Secret, error)
Create creates a secret using a k8s client that calls the Kubernetes API server
func (*SecretClient) Delete ¶
func (s *SecretClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete deletes a secret using a k8s client that calls the Kubernetes API server
func (*SecretClient) DeleteCollection ¶
func (s *SecretClient) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a secret collection using a k8s client that calls the Kubernetes API server
func (*SecretClient) Get ¶
func (s *SecretClient) Get(ctx context.Context, name string, _ metav1.GetOptions) (*v1.Secret, error)
Get gets a secret from the cache.
func (*SecretClient) List ¶
func (s *SecretClient) List(ctx context.Context, opts metav1.ListOptions) (*v1.SecretList, error)
List lists secrets from the cache.
func (*SecretClient) Patch ¶
func (s *SecretClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*v1.Secret, error)
Patch patches a secret using a k8s client that calls the Kubernetes API server
func (*SecretClient) Update ¶
func (s *SecretClient) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error)
Update updates a secret using a k8s client that calls the Kubernetes API server
func (*SecretClient) Watch ¶
func (s *SecretClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch watches a secret using a k8s client that calls the Kubernetes API server