donkey

package
v0.0.0-...-9be0976 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySecret

func ApplySecret(secret *v1.Secret)

func FindSecretAnnotationsByDepartment

func FindSecretAnnotationsByDepartment(department string) ([]v1.Secret, error)

Func: find department array secret annotations

func GetBindingAnnotations

func GetBindingAnnotations(secret *v1.Secret) (string, bool)

Get: bindingAnnotations

func GetDepartmentAnnotations

func GetDepartmentAnnotations(secret *v1.Secret) []string

Get: secret department array annotations

func SecretList

func SecretList() (*v1.SecretList, error)

Get: secretList

func SetDepartmentAnnotations

func SetDepartmentAnnotations(secret *v1.Secret, name string)

set department array secretAnnotations

func SetSecretAnnotations

func SetSecretAnnotations(secret *v1.Secret, departments []string)

Func: set secret annotations

func SyncDepartmentAnnotations

func SyncDepartmentAnnotations(secret *v1.Secret, departmentNamespace []string)

Func: remove secretAnnotations by department

func UniqueDepartmentAnnotations

func UniqueDepartmentAnnotations(annotations []string) []string

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()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL