Documentation ¶
Index ¶
- type ManagedResource
- func (m *ManagedResource) Delete(ctx context.Context) error
- func (m *ManagedResource) DeletePersistentVolumeClaims(v bool) *ManagedResource
- func (m *ManagedResource) ForceOverwriteAnnotations(v bool) *ManagedResource
- func (m *ManagedResource) ForceOverwriteLabels(v bool) *ManagedResource
- func (m *ManagedResource) KeepObjects(v bool) *ManagedResource
- func (m *ManagedResource) Reconcile(ctx context.Context) error
- func (m *ManagedResource) WithAnnotations(annotations map[string]string) *ManagedResource
- func (m *ManagedResource) WithClass(name string) *ManagedResource
- func (m *ManagedResource) WithInjectedLabels(labelsToInject map[string]string) *ManagedResource
- func (m *ManagedResource) WithLabels(labels map[string]string) *ManagedResource
- func (m *ManagedResource) WithNamespacedName(namespace, name string) *ManagedResource
- func (m *ManagedResource) WithSecretRef(secretRefName string) *ManagedResource
- func (m *ManagedResource) WithSecretRefs(secretRefs []corev1.LocalObjectReference) *ManagedResource
- type Secret
- func (s *Secret) Delete(ctx context.Context) error
- func (s *Secret) Reconcile(ctx context.Context) error
- func (s *Secret) WithAnnotations(annotations map[string]string) *Secret
- func (s *Secret) WithKeyValues(keyValues map[string][]byte) *Secret
- func (s *Secret) WithLabels(labels map[string]string) *Secret
- func (s *Secret) WithNamespacedName(namespace, name string) *Secret
- type Secrets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagedResource ¶
type ManagedResource struct {
// contains filtered or unexported fields
}
ManagedResource is a structure managing a ManagedResource.
func NewManagedResource ¶
func NewManagedResource(client client.Client) *ManagedResource
NewManagedResource creates a new builder for a ManagedResource.
func (*ManagedResource) Delete ¶
func (m *ManagedResource) Delete(ctx context.Context) error
Delete deletes the ManagedResource.
func (*ManagedResource) DeletePersistentVolumeClaims ¶
func (m *ManagedResource) DeletePersistentVolumeClaims(v bool) *ManagedResource
DeletePersistentVolumeClaims sets the DeletePersistentVolumeClaims field.
func (*ManagedResource) ForceOverwriteAnnotations ¶
func (m *ManagedResource) ForceOverwriteAnnotations(v bool) *ManagedResource
ForceOverwriteAnnotations sets the ForceOverwriteAnnotations field.
func (*ManagedResource) ForceOverwriteLabels ¶
func (m *ManagedResource) ForceOverwriteLabels(v bool) *ManagedResource
ForceOverwriteLabels sets the ForceOverwriteLabels field.
func (*ManagedResource) KeepObjects ¶
func (m *ManagedResource) KeepObjects(v bool) *ManagedResource
KeepObjects sets the KeepObjects field.
func (*ManagedResource) Reconcile ¶
func (m *ManagedResource) Reconcile(ctx context.Context) error
Reconcile creates or updates the ManagedResource.
func (*ManagedResource) WithAnnotations ¶
func (m *ManagedResource) WithAnnotations(annotations map[string]string) *ManagedResource
WithAnnotations sets the annotations.
func (*ManagedResource) WithClass ¶
func (m *ManagedResource) WithClass(name string) *ManagedResource
WithClass sets the Class field.
func (*ManagedResource) WithInjectedLabels ¶
func (m *ManagedResource) WithInjectedLabels(labelsToInject map[string]string) *ManagedResource
WithInjectedLabels sets the InjectLabels field.
func (*ManagedResource) WithLabels ¶
func (m *ManagedResource) WithLabels(labels map[string]string) *ManagedResource
WithLabels sets the labels.
func (*ManagedResource) WithNamespacedName ¶
func (m *ManagedResource) WithNamespacedName(namespace, name string) *ManagedResource
WithNamespacedName sets the namespace and name.
func (*ManagedResource) WithSecretRef ¶
func (m *ManagedResource) WithSecretRef(secretRefName string) *ManagedResource
WithSecretRef adds a reference with the given name to the SecretRefs field.
func (*ManagedResource) WithSecretRefs ¶
func (m *ManagedResource) WithSecretRefs(secretRefs []corev1.LocalObjectReference) *ManagedResource
WithSecretRefs sets the SecretRefs field.
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
Secret is a structure for managing a secret.
func (*Secret) WithAnnotations ¶
WithAnnotations sets the annotations.
func (*Secret) WithKeyValues ¶
WithKeyValues sets the data map.
func (*Secret) WithLabels ¶
WithLabels sets the labels.
func (*Secret) WithNamespacedName ¶
WithNamespacedName sets the namespace and name.
type Secrets ¶
type Secrets struct {
// contains filtered or unexported fields
}
Secrets is a structure for managing multiple secrets.
func NewSecrets ¶
NewSecrets creates a Manager for multiple secrets.
func (*Secrets) WithSecret ¶
WithSecret adds the given secret to the secrets list.
func (*Secrets) WithSecretList ¶
WithSecretList sets the secrets list.