Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupKindElement ¶
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
Click to show internal directories.
Click to hide internal directories.