apps

package
v1.15.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupKindElement

type GroupKindElement schema.GroupKind

GroupKindElement defines a Kubernetes API group elem

func (GroupKindElement) Accept

func (elem GroupKindElement) Accept(visitor KindVisitor) error

Accept calls the Visit method on visitor that corresponds to elem's Kind

func (GroupKindElement) GroupMatch

func (elem GroupKindElement) GroupMatch(groups ...string) bool

GroupMatch returns true if and only if elem's group matches one of the group arguments

type KindVisitor

type KindVisitor interface {
	VisitDaemonSet(kind GroupKindElement)
	VisitDeployment(kind GroupKindElement)
	VisitJob(kind GroupKindElement)
	VisitPod(kind GroupKindElement)
	VisitReplicaSet(kind GroupKindElement)
	VisitReplicationController(kind GroupKindElement)
	VisitStatefulSet(kind GroupKindElement)
	VisitCronJob(kind GroupKindElement)
}

KindVisitor is used with GroupKindElement to call a particular function depending on the Kind of a schema.GroupKind

Jump to

Keyboard shortcuts

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