Documentation ¶
Index ¶
- func AreSecretsEqual(secret corev1.Secret, other corev1.Secret) bool
- func Create(owner metav1.Object, mods ...secretBuilderModifier) (*corev1.Secret, error)
- func ExtractToken(secret *corev1.Secret, key string) (string, error)
- func GetDataFromSecretName(apiReader client.Reader, namespacedName types.NamespacedName, dataKey string, ...) (string, error)
- type DataModifier
- type LabelsModifier
- type NameModifier
- type NamespaceModifier
- type Query
- func (query Query) Create(secret corev1.Secret) error
- func (query Query) CreateOrUpdate(secret corev1.Secret) error
- func (query Query) CreateOrUpdateForNamespaces(newSecret corev1.Secret, namespaces []corev1.Namespace) error
- func (query Query) Delete(name, namespace string) error
- func (query Query) DeleteForNamespaces(secretName string, namespaces []string) error
- func (query Query) Get(objectKey client.ObjectKey) (corev1.Secret, error)
- func (query Query) GetAllFromNamespaces(secretName string) ([]corev1.Secret, error)
- func (query Query) Update(secret corev1.Secret) error
- type Tokens
- type TypeModifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataModifier ¶
type DataModifier struct {
// contains filtered or unexported fields
}
func NewDataModifier ¶
func NewDataModifier(data map[string][]byte) DataModifier
func (DataModifier) Enabled ¶
func (mod DataModifier) Enabled() bool
type LabelsModifier ¶
type LabelsModifier struct {
// contains filtered or unexported fields
}
func NewLabelsModifier ¶
func NewLabelsModifier(labels map[string]string) LabelsModifier
func (LabelsModifier) Enabled ¶
func (mod LabelsModifier) Enabled() bool
type NameModifier ¶
type NameModifier struct {
// contains filtered or unexported fields
}
func NewNameModifier ¶
func NewNameModifier(name string) NameModifier
func (NameModifier) Enabled ¶
func (mod NameModifier) Enabled() bool
type NamespaceModifier ¶
type NamespaceModifier struct {
// contains filtered or unexported fields
}
func NewNamespaceModifier ¶
func NewNamespaceModifier(namespaceName string) NamespaceModifier
func (NamespaceModifier) Enabled ¶
func (mod NamespaceModifier) Enabled() bool
type Query ¶
func (Query) CreateOrUpdateForNamespaces ¶
func (Query) DeleteForNamespaces ¶
func (Query) GetAllFromNamespaces ¶
type TypeModifier ¶
type TypeModifier struct {
// contains filtered or unexported fields
}
func NewTypeModifier ¶
func NewTypeModifier(secretType corev1.SecretType) TypeModifier
func (TypeModifier) Enabled ¶
func (mod TypeModifier) Enabled() bool
Click to show internal directories.
Click to hide internal directories.