logging

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartConfig

type ChartConfig struct {
	Chart   string
	Version string
	Values  map[string]interface{}
}

func (ChartConfig) Validate

func (c ChartConfig) Validate() error

type ChartsConfig

type ChartsConfig struct {
	Operator ChartConfig
	Loki     ChartConfig
}

type Config

type Config struct {
	Namespace string
	Charts    ChartsConfig
	Images    ImagesConfig
}

Config contains configuration for the logging integrated service.

func (Config) Validate

func (c Config) Validate() error

type ImageConfig

type ImageConfig struct {
	Repository string
	Tag        string
}

func (ImageConfig) Validate

func (c ImageConfig) Validate() error

type ImagesConfig

type ImagesConfig struct {
	Operator  ImageConfig
	Loki      ImageConfig
	Fluentbit ImageConfig
	Fluentd   ImageConfig
}

type IntegratedServiceOperator

type IntegratedServiceOperator struct {
	// contains filtered or unexported fields
}

IntegratedServiceOperator implements the Logging integrated service operator

func MakeIntegratedServicesOperator

func MakeIntegratedServicesOperator(
	clusterGetter integratedserviceadapter.ClusterGetter,
	clusterService integratedservices.ClusterService,
	helmService services.HelmService,
	kubernetesService KubernetesService,
	endpointsService endpoints.EndpointService,
	config Config,
	logger common.Logger,
	secretStore services.SecretStore,
) IntegratedServiceOperator

MakeIntegratedServicesOperator returns a Logging integrated service operator

func (IntegratedServiceOperator) Apply

Apply applies the provided specification to the integrated service

func (IntegratedServiceOperator) Deactivate

Deactivate deactivates the integrated service

func (IntegratedServiceOperator) Name

Name returns the name of the Logging integrated service

type IntegratedServicesManager

type IntegratedServicesManager struct {
	integratedservices.PassthroughIntegratedServiceSpecPreparer
	// contains filtered or unexported fields
}

IntegratedServiceManager implements the Logging integrated service manager

func MakeIntegratedServiceManager

func MakeIntegratedServiceManager(
	clusterGetter integratedserviceadapter.ClusterGetter,
	secretStore services.SecretStore,
	endpointsService endpoints.EndpointService,
	config Config,
	logger common.Logger,
) IntegratedServicesManager

func (IntegratedServicesManager) Name

Name returns the integrated service' name

func (IntegratedServicesManager) ValidateSpec

type KubernetesService

type KubernetesService interface {
	// EnsureObject makes sure that a given Object is on the cluster and returns it.
	EnsureObject(ctx context.Context, clusterID uint, o client.Object) error

	// Update updates a given Object on the cluster and returns it.
	Update(ctx context.Context, clusterID uint, o client.Object) error

	// DeleteObject deletes an Object from a specific cluster.
	DeleteObject(ctx context.Context, clusterID uint, o client.Object) error

	// GetObject gets an Object from a specific cluster.
	GetObject(ctx context.Context, clusterID uint, objRef corev1.ObjectReference, obj client.Object) error

	// List lists Objects on specific cluster.
	List(ctx context.Context, clusterID uint, labels map[string]string, o client.ObjectList) error
}

Jump to

Keyboard shortcuts

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