metadata

package
v4.5.2000+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OwnerReferenceTracer

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

OwnerReferenceTracer struct to trace owner references

func NewDefaultOwnerReferenceTracer

func NewDefaultOwnerReferenceTracer() (*OwnerReferenceTracer, error)

NewDefaultOwnerReferenceTracer build OwnerReferenceTracer

func NewOwnerReferenceTracerWithConfig

func NewOwnerReferenceTracerWithConfig(cfg rest.Config) (*OwnerReferenceTracer, error)

NewOwnerReferenceTracerWithConfig build OwnerReferenceTracer

func (ort *OwnerReferenceTracer) GetControllerOwnerReferenceLink(objectMeta meta_v1.Object) ([]meta_v1.OwnerReference, error)

func (*OwnerReferenceTracer) GetDeploymentOrDeploymentConfigOwningPod

func (ort *OwnerReferenceTracer) GetDeploymentOrDeploymentConfigOwningPod(pod core_v1.Pod) (*appsv1.Deployment, *openshiftappsv1.DeploymentConfig, error)

func (*OwnerReferenceTracer) GetRootControllerKindAndNameOfOwnerReferences

func (ort *OwnerReferenceTracer) GetRootControllerKindAndNameOfOwnerReferences(namespace string, ownerRefs []meta_v1.OwnerReference) (kind, name string, err error)

GetRootControllerKindAndNameOfOwnerReferences gets root owner references that is Controller

Jump to

Keyboard shortcuts

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