runner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client      *K8S
	RunInterval time.Duration
	Debug       bool
	Once        bool
}

func DefaultConfig

func DefaultConfig() *Config

type K8S

type K8S struct {
	Clientset kubernetes.Interface
}

type NamepaceSecrets

type NamepaceSecrets struct {
	Secrets []v1.Secret
}

type NamespaceConfigMaps

type NamespaceConfigMaps struct {
	Configmaps []v1.ConfigMap
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(config *Config) *Runner

func (*Runner) AddAnnotatedConfigMap

func (r *Runner) AddAnnotatedConfigMap(configMapMaps map[string]*NamespaceConfigMaps, namespace string, globalConfigMap v1.ConfigMap) error

func (*Runner) AddAnnotatedSecret

func (r *Runner) AddAnnotatedSecret(secretMaps map[string]*NamepaceSecrets, namespace string, globalSecret v1.Secret) error

func (*Runner) CanIdo

func (r *Runner) CanIdo(verb string, resource string) (bool, error)

func (*Runner) Close

func (r *Runner) Close()

func (*Runner) ConfigMapList

func (r *Runner) ConfigMapList(namespace string) (configmaps *v1.ConfigMapList, err error)

func (*Runner) CreateConfigMap

func (r *Runner) CreateConfigMap(namespace string, from v1.ConfigMap) (err error)

func (*Runner) CreateSecret

func (r *Runner) CreateSecret(namespace string, from v1.Secret) (err error)

func (*Runner) DeleteConfigMap

func (r *Runner) DeleteConfigMap(namespace string, from v1.ConfigMap) (err error)

func (*Runner) DeleteSecret

func (r *Runner) DeleteSecret(namespace string, from v1.Secret) (err error)

func (*Runner) Init

func (r *Runner) Init() error

func (*Runner) NamespacesList

func (r *Runner) NamespacesList() (namespaces *v1.NamespaceList, err error)

func (*Runner) RemoveAnnotatedConfigMap

func (r *Runner) RemoveAnnotatedConfigMap(configMapMaps map[string]*NamespaceConfigMaps, namespace string, globalConfigMap v1.ConfigMap) error

func (*Runner) RemoveAnnotatedSecret

func (r *Runner) RemoveAnnotatedSecret(secretMaps map[string]*NamepaceSecrets, namespace string, globalSecret v1.Secret) error

func (*Runner) SecretList

func (r *Runner) SecretList(namespace string) (secrets *v1.SecretList, err error)

func (*Runner) Start

func (r *Runner) Start() error

func (*Runner) UpdateConfigMap

func (r *Runner) UpdateConfigMap(namespace string, from v1.ConfigMap) (err error)

func (*Runner) UpdateSecret

func (r *Runner) UpdateSecret(namespace string, from v1.Secret) (err error)

func (*Runner) ValidateMyAccess

func (r *Runner) ValidateMyAccess() (bool, error)

Jump to

Keyboard shortcuts

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