apps

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 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

type NoOpKindVisitor

type NoOpKindVisitor struct{}

NoOpKindVisitor implements KindVisitor with no-op functions.

func (*NoOpKindVisitor) VisitCronJob added in v1.9.0

func (*NoOpKindVisitor) VisitCronJob(kind GroupKindElement)

func (*NoOpKindVisitor) VisitDaemonSet

func (*NoOpKindVisitor) VisitDaemonSet(kind GroupKindElement)

func (*NoOpKindVisitor) VisitDeployment

func (*NoOpKindVisitor) VisitDeployment(kind GroupKindElement)

func (*NoOpKindVisitor) VisitJob

func (*NoOpKindVisitor) VisitJob(kind GroupKindElement)

func (*NoOpKindVisitor) VisitPod

func (*NoOpKindVisitor) VisitPod(kind GroupKindElement)

func (*NoOpKindVisitor) VisitReplicaSet

func (*NoOpKindVisitor) VisitReplicaSet(kind GroupKindElement)

func (*NoOpKindVisitor) VisitReplicationController

func (*NoOpKindVisitor) VisitReplicationController(kind GroupKindElement)

func (*NoOpKindVisitor) VisitStatefulSet

func (*NoOpKindVisitor) VisitStatefulSet(kind GroupKindElement)

Jump to

Keyboard shortcuts

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