Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=bkbcs.tencent.com
Index ¶
Constants ¶
const ( // DefaultConfigType default log config type DefaultConfigType = "default" // BcsSystemConfigType bcs system log config type BcsSystemConfigType = "bcs-system" // CustomConfigType custom log config type CustomConfigType = "custom" )
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: bkbcs.GroupName, Version: "v1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BcsDbPrivConfig ¶
type BcsDbPrivConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec BcsDbPrivConfigSpec `json:"spec"` }
func (*BcsDbPrivConfig) DeepCopy ¶
func (in *BcsDbPrivConfig) DeepCopy() *BcsDbPrivConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BcsDbPrivConfig.
func (*BcsDbPrivConfig) DeepCopyInto ¶
func (in *BcsDbPrivConfig) DeepCopyInto(out *BcsDbPrivConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BcsDbPrivConfig) DeepCopyObject ¶
func (in *BcsDbPrivConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BcsDbPrivConfigList ¶
type BcsDbPrivConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []BcsDbPrivConfig `json:"items"` }
func (*BcsDbPrivConfigList) DeepCopy ¶
func (in *BcsDbPrivConfigList) DeepCopy() *BcsDbPrivConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BcsDbPrivConfigList.
func (*BcsDbPrivConfigList) DeepCopyInto ¶
func (in *BcsDbPrivConfigList) DeepCopyInto(out *BcsDbPrivConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BcsDbPrivConfigList) DeepCopyObject ¶
func (in *BcsDbPrivConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BcsDbPrivConfigSpec ¶
type BcsDbPrivConfigSpec struct { PodSelector map[string]string `json:"podSelector"` AppName string `json:"appName"` TargetDb string `json:"targetDb"` DbType string `json:"dbType"` CallUser string `json:"callUser"` DbName string `json:"dbName"` }
func (*BcsDbPrivConfigSpec) DeepCopy ¶
func (in *BcsDbPrivConfigSpec) DeepCopy() *BcsDbPrivConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BcsDbPrivConfigSpec.
func (*BcsDbPrivConfigSpec) DeepCopyInto ¶
func (in *BcsDbPrivConfigSpec) DeepCopyInto(out *BcsDbPrivConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BcsLogConfig ¶
type BcsLogConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec BcsLogConfigSpec `json:"spec"` }
BcsLogConfig defines BcsLogConfig CRD format
func (*BcsLogConfig) DeepCopy ¶
func (in *BcsLogConfig) DeepCopy() *BcsLogConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BcsLogConfig.
func (*BcsLogConfig) DeepCopyInto ¶
func (in *BcsLogConfig) DeepCopyInto(out *BcsLogConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BcsLogConfig) DeepCopyObject ¶
func (in *BcsLogConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BcsLogConfigList ¶
type BcsLogConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []BcsLogConfig `json:"items"` }
BcsLogConfigList is the list expression of BcsLogConfig CRD
func (*BcsLogConfigList) DeepCopy ¶
func (in *BcsLogConfigList) DeepCopy() *BcsLogConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BcsLogConfigList.
func (*BcsLogConfigList) DeepCopyInto ¶
func (in *BcsLogConfigList) DeepCopyInto(out *BcsLogConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BcsLogConfigList) DeepCopyObject ¶
func (in *BcsLogConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BcsLogConfigSpec ¶
type BcsLogConfigSpec struct { ConfigType string `json:"configType"` AppId string `json:"appId"` ClusterId string `json:"clusterId"` Stdout bool `json:"stdout"` StdDataId string `json:"stdDataId"` NonStdDataId string `json:"nonStdDataId"` LogPaths []string `json:"logPaths"` HostPaths []string `json:"hostPaths"` LogTags map[string]string `json:"logTags"` WorkloadType string `json:"workloadType"` WorkloadName string `json:"workloadName"` WorkloadNamespace string `json:"workloadNamespace"` ContainerConfs []ContainerConf `json:"containerConfs"` PodLabels bool `json:"podLabels"` Selector PodSelector `json:"selector"` }
BcsLogConfigSpec defines the content of BcsLogConfig CRD
func (*BcsLogConfigSpec) DeepCopy ¶
func (in *BcsLogConfigSpec) DeepCopy() *BcsLogConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BcsLogConfigSpec.
func (*BcsLogConfigSpec) DeepCopyInto ¶
func (in *BcsLogConfigSpec) DeepCopyInto(out *BcsLogConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerConf ¶
type ContainerConf struct { ContainerName string `json:"containerName"` Stdout bool `json:"stdout"` StdDataId string `json:"stdDataId"` NonStdDataId string `json:"nonStdDataId"` HostPaths []string `json:"hostPaths"` LogPaths []string `json:"logPaths"` LogTags map[string]string `json:"logTags"` }
ContainerConf defines log config for containers
func (*ContainerConf) DeepCopy ¶
func (in *ContainerConf) DeepCopy() *ContainerConf
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerConf.
func (*ContainerConf) DeepCopyInto ¶
func (in *ContainerConf) DeepCopyInto(out *ContainerConf)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodSelector ¶
type PodSelector struct { MatchLabels map[string]string `json:"matchLabels"` MatchExpressions []SelectorExpression `json:"matchExpressions"` }
PodSelector defines selector format for BcsLogConfig CRD
func (*PodSelector) DeepCopy ¶
func (in *PodSelector) DeepCopy() *PodSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSelector.
func (*PodSelector) DeepCopyInto ¶
func (in *PodSelector) DeepCopyInto(out *PodSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelectorExpression ¶
type SelectorExpression struct { Key string `json:"key"` Operator string `json:"operator"` Values []string `json:"values"` }
SelectorExpression is universal expression for selector
func (*SelectorExpression) DeepCopy ¶
func (in *SelectorExpression) DeepCopy() *SelectorExpression
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectorExpression.
func (*SelectorExpression) DeepCopyInto ¶
func (in *SelectorExpression) DeepCopyInto(out *SelectorExpression)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.