logagent

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Overview

Package logagent is the internal version of the API.

Index

Constants

View Source
const GroupName = "logagent.tkestack.io"

GroupName is group name used to register these schema

Variables

View Source
var (
	// Scheme is the default instance of runtime.Scheme to which types in the TKE API are already registered.
	Scheme = runtime.NewScheme()
	// Codecs provides access to encoding and decoding for the scheme
	Codecs = serializer.NewCodecFactory(Scheme)
	// ParameterCodec handles versioning of objects that are converted to query parameters.
	ParameterCodec = runtime.NewParameterCodec(Scheme)
)
View Source
var (
	// SchemeBuilder collects functions that add things to a scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme applies all the stored functions to the 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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a IdentityProvider qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a IdentityProvider qualified GroupResource

Types

type AddonPhase

type AddonPhase string

AddonPhase defines the phase of helm constructor.

const (
	// AddonPhaseInitializing means is wait initializing.
	AddonPhaseInitializing AddonPhase = "Initializing"
	// AddonPhaseReinitializing means is reinitializing.
	AddonPhaseReinitializing AddonPhase = "Reinitializing"
	// AddonPhaseChecking means is wait checking.
	AddonPhaseChecking AddonPhase = "Checking"
	// AddonPhaseRunning means is running.
	AddonPhaseRunning AddonPhase = "Running"
	// AddonPhaseUpgrading means is upgrading.
	AddonPhaseUpgrading AddonPhase = "Upgrading"
	// AddonPhaseFailed means has been failed.
	AddonPhaseFailed AddonPhase = "Failed"
	// AddonPhasePending means the controller is proceeding deploying
	AddonPhasePending AddonPhase = "Pending"
	// AddonPhaseUnhealthy means some pods of GPUManager is partial running
	AddonPhaseUnhealthy AddonPhase = "Unhealthy"
	// AddonPhaseTerminating means addon terminating
	AddonPhaseTerminating AddonPhase = "Terminating"
	// AddonPhaseUnknown means addon unknown
	AddonPhaseUnknown AddonPhase = "Unknown"
)

type ConfigMap

type ConfigMap struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Data contains the configuration data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// Values with non-UTF-8 byte sequences must use the BinaryData field.
	// The keys stored in Data must not overlap with the keys in
	// the BinaryData field, this is enforced during validation process.
	// +optional
	Data map[string]string

	// BinaryData contains the binary data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// BinaryData can contain byte sequences that are not in the UTF-8 range.
	// The keys stored in BinaryData must not overlap with the ones in
	// the Data field, this is enforced during validation process.
	// +optional
	BinaryData map[string][]byte
}

ConfigMap holds configuration data for tke to consume.

func (*ConfigMap) DeepCopy

func (in *ConfigMap) DeepCopy() *ConfigMap

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

func (*ConfigMap) DeepCopyInto

func (in *ConfigMap) DeepCopyInto(out *ConfigMap)

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

func (*ConfigMap) DeepCopyObject

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

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

type ConfigMapList

type ConfigMapList struct {
	metav1.TypeMeta

	// +optional
	metav1.ListMeta

	// Items is the list of ConfigMaps.
	Items []ConfigMap
}

ConfigMapList is a resource containing a list of ConfigMap objects.

func (*ConfigMapList) DeepCopy

func (in *ConfigMapList) DeepCopy() *ConfigMapList

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

func (*ConfigMapList) DeepCopyInto

func (in *ConfigMapList) DeepCopyInto(out *ConfigMapList)

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

func (*ConfigMapList) DeepCopyObject

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

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

type LogAgent

type LogAgent struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of LogCollector.
	// +optional
	Spec LogAgentSpec
	// +optional
	Status LogAgentStatus
}

LogAgent is a manager to collect logs of workload.

func (*LogAgent) DeepCopy

func (in *LogAgent) DeepCopy() *LogAgent

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

func (*LogAgent) DeepCopyInto

func (in *LogAgent) DeepCopyInto(out *LogAgent)

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

func (*LogAgent) DeepCopyObject

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

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

type LogAgentList

type LogAgentList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of volume decorators.
	Items []LogAgent
}

LogAgentList is the whole list of all LogCollector which owned by a tenant.

func (*LogAgentList) DeepCopy

func (in *LogAgentList) DeepCopy() *LogAgentList

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

func (*LogAgentList) DeepCopyInto

func (in *LogAgentList) DeepCopyInto(out *LogAgentList)

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

func (*LogAgentList) DeepCopyObject

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

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

type LogAgentProxyOptions

type LogAgentProxyOptions struct {
	metav1.TypeMeta `json:",inline"`

	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
}

LogAgentProxyOptions is the query options to a kube-apiserver proxy call for LogAgent crd object.

func (*LogAgentProxyOptions) DeepCopy

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

func (*LogAgentProxyOptions) DeepCopyInto

func (in *LogAgentProxyOptions) DeepCopyInto(out *LogAgentProxyOptions)

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

func (*LogAgentProxyOptions) DeepCopyObject

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

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

type LogAgentSpec

type LogAgentSpec struct {
	TenantID    string
	ClusterName string
	Version     string
}

LogAgentSpec describes the attributes of a Logagent.

func (*LogAgentSpec) DeepCopy

func (in *LogAgentSpec) DeepCopy() *LogAgentSpec

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

func (*LogAgentSpec) DeepCopyInto

func (in *LogAgentSpec) DeepCopyInto(out *LogAgentSpec)

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

type LogAgentStatus

type LogAgentStatus struct {
	// +optional
	Version string
	// Phase is the current lifecycle phase of the LogCollector of cluster.
	// +optional
	Phase AddonPhase
	// Reason is a brief CamelCase string that describes any failure.
	// +optional
	Reason string
	// RetryCount is a int between 0 and 5 that describes the time of retrying initializing.
	// +optional
	RetryCount int32
	// LastReInitializingTimestamp is a timestamp that describes the last time of retrying initializing.
	// +optional
	LastReInitializingTimestamp metav1.Time
}

LogAgentStatus is information about the current status of a Logagent.

func (*LogAgentStatus) DeepCopy

func (in *LogAgentStatus) DeepCopy() *LogAgentStatus

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

func (*LogAgentStatus) DeepCopyInto

func (in *LogAgentStatus) DeepCopyInto(out *LogAgentStatus)

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

type LogEsDetection added in v1.6.0

type LogEsDetection struct {
	metav1.TypeMeta `json:",inline"`

	Scheme   string `json:"scheme,omitempty"`
	IP       string `json:"ip,omitempty"`
	Port     string `json:"port,omitempty"`
	User     string `json:"user,omitempty"`
	Password string `json:"password,omitempty"`
}

LogEsDetection

func (*LogEsDetection) DeepCopy added in v1.6.0

func (in *LogEsDetection) DeepCopy() *LogEsDetection

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

func (*LogEsDetection) DeepCopyInto added in v1.6.0

func (in *LogEsDetection) DeepCopyInto(out *LogEsDetection)

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

func (*LogEsDetection) DeepCopyObject added in v1.6.0

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

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

type LogFileContent

type LogFileContent struct {
	metav1.TypeMeta `json:",inline"`
	Spec            LogFileContentSpec `json:"spec"`
}

LogFileContent

func (*LogFileContent) DeepCopy

func (in *LogFileContent) DeepCopy() *LogFileContent

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

func (*LogFileContent) DeepCopyInto

func (in *LogFileContent) DeepCopyInto(out *LogFileContent)

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

func (*LogFileContent) DeepCopyObject

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

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

type LogFileContentSpec

type LogFileContentSpec struct {
	ClusterId string `json:"clusterId,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Container string `json:"container,omitempty"`
	Pod       string `json:"pod,omitempty"`
	Start     int32  `json:"start,omitempty"`
	Length    int32  `json:"length,omitempty"`
	Filepath  string `json:"filepath,omitempty"`
}

func (*LogFileContentSpec) DeepCopy

func (in *LogFileContentSpec) DeepCopy() *LogFileContentSpec

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

func (*LogFileContentSpec) DeepCopyInto

func (in *LogFileContentSpec) DeepCopyInto(out *LogFileContentSpec)

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

type LogFileProxyOptions added in v1.4.0

type LogFileProxyOptions struct {
	metav1.TypeMeta `json:",inline"`

	Namespace string `json:"namespace,omitempty"`
	Pod       string `json:"pod,omitempty"`
	Container string `json:"container,omitempty"`
}

LogFileProxyOptions is the query options to a kube-apiserver proxy call for Logfile requests.

func (*LogFileProxyOptions) DeepCopy added in v1.4.0

func (in *LogFileProxyOptions) DeepCopy() *LogFileProxyOptions

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

func (*LogFileProxyOptions) DeepCopyInto added in v1.4.0

func (in *LogFileProxyOptions) DeepCopyInto(out *LogFileProxyOptions)

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

func (*LogFileProxyOptions) DeepCopyObject added in v1.4.0

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

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

type LogFileTree

type LogFileTree struct {
	metav1.TypeMeta `json:",inline"`
	Spec            LogFileTreeSpec `json:"spec"`
}

LogFileTree

func (*LogFileTree) DeepCopy

func (in *LogFileTree) DeepCopy() *LogFileTree

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

func (*LogFileTree) DeepCopyInto

func (in *LogFileTree) DeepCopyInto(out *LogFileTree)

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

func (*LogFileTree) DeepCopyObject

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

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

type LogFileTreeSpec

type LogFileTreeSpec struct {
	ClusterId string `json:"clusterId,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Container string `json:"container,omitempty"`
	Pod       string `json:"pod,omitempty"`
}

func (*LogFileTreeSpec) DeepCopy

func (in *LogFileTreeSpec) DeepCopy() *LogFileTreeSpec

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

func (*LogFileTreeSpec) DeepCopyInto

func (in *LogFileTreeSpec) DeepCopyInto(out *LogFileTreeSpec)

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