Documentation ¶
Index ¶
- func ApplySecret(secret *v1.Secret)
- func FindSecretAnnotationsByDepartment(department string) ([]v1.Secret, error)
- func GetBindingAnnotations(secret *v1.Secret) (string, bool)
- func GetDepartmentAnnotations(secret *v1.Secret) []string
- func SecretList() (*v1.SecretList, error)
- func SetDepartmentAnnotations(secret *v1.Secret, name string)
- func SetSecretAnnotations(secret *v1.Secret, departments []string)
- func SyncDepartmentAnnotations(secret *v1.Secret, departmentNamespace []string)
- func UniqueDepartmentAnnotations(annotations []string) []string
- func UniqueImagePullSecrets(mapSlice []v1.LocalObjectReference) []v1.LocalObjectReference
- type DepartmentAssistant
- type IAssistant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySecret ¶
func FindSecretAnnotationsByDepartment ¶
Func: find department array secret annotations
func GetBindingAnnotations ¶
Get: bindingAnnotations
func GetDepartmentAnnotations ¶
Get: secret department array annotations
func SetDepartmentAnnotations ¶
set department array secretAnnotations
func SetSecretAnnotations ¶
Func: set secret annotations
func SyncDepartmentAnnotations ¶
Func: remove secretAnnotations by department
func UniqueDepartmentAnnotations ¶
Func: unique department annotations
func UniqueImagePullSecrets ¶
func UniqueImagePullSecrets(mapSlice []v1.LocalObjectReference) []v1.LocalObjectReference
Func: LocalObjectReference deduplication
Types ¶
type DepartmentAssistant ¶
type DepartmentAssistant struct { common.WorkloadsResourceHandler // contains filtered or unexported fields }
func NewDepartmentAssistant ¶
func NewDepartmentAssistant() *DepartmentAssistant
NewDepartmentAssistant exported
func (*DepartmentAssistant) Run ¶
func (d *DepartmentAssistant) Run() error
func (*DepartmentAssistant) Stop ¶
func (d *DepartmentAssistant) Stop()
type IAssistant ¶
type IAssistant interface { Run() error Stop() }
Click to show internal directories.
Click to hide internal directories.