clusterlogging

package
v0.0.0-...-091666d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullClusterLogForwarder

func PullClusterLogForwarder(apiClient *clients.Settings, name, namespace string) (*clov1.ClusterLogForwarder, error)

PullClusterLogForwarder retrieves an existing clusterlogforwarder object from the cluster.

Types

type Builder

type Builder struct {
	// ClusterLogging definition. Used to create clusterLogging object with minimum set of required elements.
	Definition *clov1.ClusterLogging
	// Created clusterLogging object on the cluster.
	Object *clov1.ClusterLogging
	// contains filtered or unexported fields
}

Builder provides struct for clusterLogging object.

func NewBuilder

func NewBuilder(
	apiClient *clients.Settings, name, nsname string) *Builder

NewBuilder method creates new instance of builder.

func Pull

func Pull(apiClient *clients.Settings, name, nsname string) (*Builder, error)

Pull retrieves an existing clusterLogging object from the cluster.

func (*Builder) Create

func (builder *Builder) Create() (*Builder, error)

Create makes a clusterLogging in the cluster and stores the created object in struct.

func (*Builder) Delete

func (builder *Builder) Delete() error

Delete removes clusterLogging from a cluster.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given clusterLogging exists.

func (*Builder) Get

func (builder *Builder) Get() (*clov1.ClusterLogging, error)

Get returns clusterLogging object if found.

func (*Builder) Update

func (builder *Builder) Update(force bool) (*Builder, error)

Update renovates the existing clusterLogging object with clusterLogging definition in builder.

type ClusterLogForwarderBuilder

type ClusterLogForwarderBuilder struct {
	// clusterlogforwarder definition, used to create the clusterlogforwarder object.
	Definition *clov1.ClusterLogForwarder
	// Created clusterlogforwarder object.
	Object *clov1.ClusterLogForwarder
	// contains filtered or unexported fields
}

ClusterLogForwarderBuilder provides a struct for clusterlogforwarder object from the cluster and a clusterlogforwarder definition.

func NewClusterLogForwarderBuilder

func NewClusterLogForwarderBuilder(
	apiClient *clients.Settings, name, nsname string) *ClusterLogForwarderBuilder

NewClusterLogForwarderBuilder method creates new instance of builder.

func (*ClusterLogForwarderBuilder) Create

Create makes a clusterlogforwarder in the cluster and stores the created object in struct.

func (*ClusterLogForwarderBuilder) Delete

func (builder *ClusterLogForwarderBuilder) Delete() error

Delete removes clusterlogforwarder from a cluster.

func (*ClusterLogForwarderBuilder) Exists

func (builder *ClusterLogForwarderBuilder) Exists() bool

Exists checks whether the given clusterlogforwarder exists.

func (*ClusterLogForwarderBuilder) Get

Get returns clusterlogforwarder object if found.

func (*ClusterLogForwarderBuilder) Update

Update renovates the existing clusterlogforwarder object with clusterlogforwarder definition in builder.

func (*ClusterLogForwarderBuilder) WithOutput

func (builder *ClusterLogForwarderBuilder) WithOutput(outputSpec *clov1.OutputSpec) *ClusterLogForwarderBuilder

WithOutput sets the output on the clusterlogforwarder definition.

func (*ClusterLogForwarderBuilder) WithPipeline

func (builder *ClusterLogForwarderBuilder) WithPipeline(pipelineSpec *clov1.PipelineSpec) *ClusterLogForwarderBuilder

WithPipeline sets the pipeline on the clusterlogforwarder definition.

Jump to

Keyboard shortcuts

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