Documentation ¶
Index ¶
- type GroupKindElement
- type KindVisitor
- type NoOpKindVisitor
- func (*NoOpKindVisitor) VisitCronJob(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitDaemonSet(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitDeployment(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitJob(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitPod(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitReplicaSet(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitReplicationController(kind GroupKindElement)
- func (*NoOpKindVisitor) VisitStatefulSet(kind GroupKindElement)
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
type NoOpKindVisitor ¶
type NoOpKindVisitor struct{}
NoOpKindVisitor implements KindVisitor with no-op functions.
func (*NoOpKindVisitor) VisitCronJob ¶ added in v1.9.1
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)
Click to show internal directories.
Click to hide internal directories.