apps

package
v0.0.0-...-2e514ea Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 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)
	VisitCloneSet(kind GroupKindElement)
	VisitAdvancedStatefulSet(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