config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 3 Imported by: 14

Documentation

Overview

Package config is the internal version of the API.

Index

Constants

View Source
const GroupName = "monitor.config.tkestack.io"

GroupName is the group name used in this package

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func MonitorConfigurationPathRefs

func MonitorConfigurationPathRefs(gc *MonitorConfiguration) []*string

MonitorConfigurationPathRefs returns pointers to all of the MonitorConfiguration fields that contain filepaths. You might use this, for example, to resolve all relative paths against some common root before passing the configuration to the application. This method must be kept up to date as new fields are added.

Types

type ElasticSearchStorage

type ElasticSearchStorage struct {
	Servers []ElasticSearchStorageServer
}

func (*ElasticSearchStorage) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticSearchStorage.

func (*ElasticSearchStorage) DeepCopyInto

func (in *ElasticSearchStorage) DeepCopyInto(out *ElasticSearchStorage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ElasticSearchStorageServer

type ElasticSearchStorageServer struct {
	Address string
	// +optional
	Username string
	// +optional
	Password string
}

func (*ElasticSearchStorageServer) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticSearchStorageServer.

func (*ElasticSearchStorageServer) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InfluxDBStorage

type InfluxDBStorage struct {
	Servers []InfluxDBStorageServer
}

func (*InfluxDBStorage) DeepCopy

func (in *InfluxDBStorage) DeepCopy() *InfluxDBStorage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InfluxDBStorage.

func (*InfluxDBStorage) DeepCopyInto

func (in *InfluxDBStorage) DeepCopyInto(out *InfluxDBStorage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InfluxDBStorageServer

type InfluxDBStorageServer struct {
	Address string
	// +optional
	Username string
	// +optional
	Password string
	// +optional
	TimeoutSeconds *int32
}

func (*InfluxDBStorageServer) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InfluxDBStorageServer.

func (*InfluxDBStorageServer) DeepCopyInto

func (in *InfluxDBStorageServer) DeepCopyInto(out *InfluxDBStorageServer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitorConfiguration

type MonitorConfiguration struct {
	metav1.TypeMeta

	Storage Storage
}

MonitorConfiguration contains the configuration for the Monitor

func (*MonitorConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorConfiguration.

func (*MonitorConfiguration) DeepCopyInto

func (in *MonitorConfiguration) DeepCopyInto(out *MonitorConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MonitorConfiguration) DeepCopyObject

func (in *MonitorConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type Storage

type Storage struct {
	// +optional
	Thanos *ThanosStorage
	// +optional
	InfluxDB *InfluxDBStorage
	// +optional
	ElasticSearch *ElasticSearchStorage
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ThanosStorage

type ThanosStorage struct {
	Servers []ThanosStorageServer
}

func (*ThanosStorage) DeepCopy

func (in *ThanosStorage) DeepCopy() *ThanosStorage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosStorage.

func (*ThanosStorage) DeepCopyInto

func (in *ThanosStorage) DeepCopyInto(out *ThanosStorage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ThanosStorageServer

type ThanosStorageServer struct {
	Address string
}

func (*ThanosStorageServer) DeepCopy

func (in *ThanosStorageServer) DeepCopy() *ThanosStorageServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosStorageServer.

func (*ThanosStorageServer) DeepCopyInto

func (in *ThanosStorageServer) DeepCopyInto(out *ThanosStorageServer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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