Documentation ¶
Index ¶
- Constants
- type BaseOptionsV2
- func (bo *BaseOptionsV2) GetComponent() string
- func (bo *BaseOptionsV2) GetInstanceName() string
- func (bo *BaseOptionsV2) GetKey() types.NamespacedName
- func (bo *BaseOptionsV2) GetLabels() map[string]string
- func (bo *BaseOptionsV2) GetNamespace() string
- func (bo *BaseOptionsV2) GetSelector() map[string]string
Constants ¶
View Source
const (
// PodSelectorKey is the label key used as Pod selector
PodSelectorKey = "deployment"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseOptionsV2 ¶
type BaseOptionsV2 struct { Component string InstanceName string Namespace string Labels map[string]string }
BaseOptions configures the generators for a component
func (*BaseOptionsV2) GetComponent ¶
func (bo *BaseOptionsV2) GetComponent() string
GetComponent returns the name of the component
func (*BaseOptionsV2) GetInstanceName ¶
func (bo *BaseOptionsV2) GetInstanceName() string
GetInstanceName returns the name of the custom resource instance
func (*BaseOptionsV2) GetKey ¶
func (bo *BaseOptionsV2) GetKey() types.NamespacedName
Key returns a types.NamespacedName
func (*BaseOptionsV2) GetLabels ¶
func (bo *BaseOptionsV2) GetLabels() map[string]string
GetLabels returns metadata labels
func (*BaseOptionsV2) GetNamespace ¶
func (bo *BaseOptionsV2) GetNamespace() string
GetNamespace returns the custom resource namespace
func (*BaseOptionsV2) GetSelector ¶
func (bo *BaseOptionsV2) GetSelector() map[string]string
GetSelector returns the LabelSelector struct that matches the labels in
Click to show internal directories.
Click to hide internal directories.