Documentation ¶
Index ¶
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() (*Builder, error)
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*monv1.ServiceMonitor, error)
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WithEndpoints(endpoints []monv1.Endpoint) *Builder
- func (builder *Builder) WithLabels(labels map[string]string) *Builder
- func (builder *Builder) WithNamespaceSelector(namespaceSelector []string) *Builder
- func (builder *Builder) WithSelector(selector map[string]string) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // serviceMonitor definition, used to create the serviceMonitor object. Definition *monv1.ServiceMonitor // Created serviceMonitor object. Object *monv1.ServiceMonitor // contains filtered or unexported fields }
Builder provides a struct for serviceMonitor object from the cluster and a serviceMonitor definition.
func NewBuilder ¶
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create makes a serviceMonitor in the cluster and stores the created object in struct.
func (*Builder) Get ¶
func (builder *Builder) Get() (*monv1.ServiceMonitor, error)
Get fetches the defined serviceMonitor from the cluster.
func (*Builder) Update ¶
Update renovates the existing serviceMonitor object with serviceMonitor definition in builder.
func (*Builder) WithEndpoints ¶
WithEndpoints sets the serviceMonitor operator's endpoints.
func (*Builder) WithLabels ¶
WithLabels redefines the serviceMonitor with labels.
func (*Builder) WithNamespaceSelector ¶
WithNamespaceSelector redefines the serviceMonitor with namespaceSelector.
Click to show internal directories.
Click to hide internal directories.