dependents

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependent

type Dependent interface {
	metav1.Object
	runtime.Object
	GetRuntimeObj() runtime.Object
	Construct() error
}

type DependentMgr

type DependentMgr struct {
	Owner     metav1.Object
	Name      string
	Namespace string
	Client    client.Client
	Scheme    *runtime.Scheme
	Labels    map[string]string
}

k8s calls 'controlled' objs 'dependents'...

func NewDependentMgr

func NewDependentMgr(owner metav1.Object, client client.Client, scheme *runtime.Scheme, name, namespace string, labels map[string]string) *DependentMgr

func (*DependentMgr) Create

func (dm *DependentMgr) Create(d Dependent) (bool, error)

func (*DependentMgr) GetOrCreate

func (dm *DependentMgr) GetOrCreate(d Dependent) (bool, error)

Jump to

Keyboard shortcuts

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