Documentation
¶
Index ¶
- Variables
- type ApolloSource
- func (*ApolloSource) Descriptor() ([]byte, []int)deprecated
- func (x *ApolloSource) GetAddress() string
- func (x *ApolloSource) GetAppId() string
- func (x *ApolloSource) GetCluster() string
- func (x *ApolloSource) GetClusters() []string
- func (x *ApolloSource) GetNamespace() string
- func (x *ApolloSource) GetSecret() string
- func (x *ApolloSource) GetTls() *v1.TLSConfig
- func (*ApolloSource) ProtoMessage()
- func (x *ApolloSource) ProtoReflect() protoreflect.Message
- func (x *ApolloSource) Reset()
- func (x *ApolloSource) String() string
- func (m *ApolloSource) Validate() error
- func (m *ApolloSource) ValidateAll() error
- type ApolloSourceMultiError
- type ApolloSourceValidationError
- func (e ApolloSourceValidationError) Cause() error
- func (e ApolloSourceValidationError) Error() string
- func (e ApolloSourceValidationError) ErrorName() string
- func (e ApolloSourceValidationError) Field() string
- func (e ApolloSourceValidationError) Key() bool
- func (e ApolloSourceValidationError) Reason() string
- type ConsulSource
- func (*ConsulSource) Descriptor() ([]byte, []int)deprecated
- func (x *ConsulSource) GetAddress() string
- func (x *ConsulSource) GetDatacenter() string
- func (x *ConsulSource) GetNamespace() string
- func (x *ConsulSource) GetPath() string
- func (x *ConsulSource) GetScheme() string
- func (x *ConsulSource) GetTimeout() string
- func (x *ConsulSource) GetTls() *v1.TLSConfig
- func (x *ConsulSource) GetToken() string
- func (x *ConsulSource) GetWaitTime() string
- func (*ConsulSource) ProtoMessage()
- func (x *ConsulSource) ProtoReflect() protoreflect.Message
- func (x *ConsulSource) Reset()
- func (x *ConsulSource) String() string
- func (m *ConsulSource) Validate() error
- func (m *ConsulSource) ValidateAll() error
- type ConsulSourceMultiError
- type ConsulSourceValidationError
- func (e ConsulSourceValidationError) Cause() error
- func (e ConsulSourceValidationError) Error() string
- func (e ConsulSourceValidationError) ErrorName() string
- func (e ConsulSourceValidationError) Field() string
- func (e ConsulSourceValidationError) Key() bool
- func (e ConsulSourceValidationError) Reason() string
- type ETCDSource
- func (*ETCDSource) Descriptor() ([]byte, []int)deprecated
- func (x *ETCDSource) GetAddress() string
- func (x *ETCDSource) GetPassword() string
- func (x *ETCDSource) GetPath() string
- func (x *ETCDSource) GetTls() *v1.TLSConfig
- func (x *ETCDSource) GetUsername() string
- func (*ETCDSource) ProtoMessage()
- func (x *ETCDSource) ProtoReflect() protoreflect.Message
- func (x *ETCDSource) Reset()
- func (x *ETCDSource) String() string
- func (m *ETCDSource) Validate() error
- func (m *ETCDSource) ValidateAll() error
- type ETCDSourceMultiError
- type ETCDSourceValidationError
- type EnvSource
- func (*EnvSource) Descriptor() ([]byte, []int)deprecated
- func (x *EnvSource) GetArgs() map[string]string
- func (x *EnvSource) GetNested() bool
- func (x *EnvSource) GetPrefixes() []string
- func (x *EnvSource) GetWatch() bool
- func (*EnvSource) ProtoMessage()
- func (x *EnvSource) ProtoReflect() protoreflect.Message
- func (x *EnvSource) Reset()
- func (x *EnvSource) String() string
- func (m *EnvSource) Validate() error
- func (m *EnvSource) ValidateAll() error
- type EnvSourceMultiError
- type EnvSourceValidationError
- type FileSource
- func (*FileSource) Descriptor() ([]byte, []int)deprecated
- func (x *FileSource) GetFormat() string
- func (x *FileSource) GetFormats() []string
- func (x *FileSource) GetIgnores() []string
- func (x *FileSource) GetPath() string
- func (x *FileSource) GetReload() bool
- func (*FileSource) ProtoMessage()
- func (x *FileSource) ProtoReflect() protoreflect.Message
- func (x *FileSource) Reset()
- func (x *FileSource) String() string
- func (m *FileSource) Validate() error
- func (m *FileSource) ValidateAll() error
- type FileSourceMultiError
- type FileSourceValidationError
- type KubernetesSource
- func (*KubernetesSource) Descriptor() ([]byte, []int)deprecated
- func (x *KubernetesSource) GetConfigMap() string
- func (x *KubernetesSource) GetKey() string
- func (x *KubernetesSource) GetKubeconfig() string
- func (x *KubernetesSource) GetNamespace() string
- func (x *KubernetesSource) GetSecret() string
- func (x *KubernetesSource) GetWatch() bool
- func (*KubernetesSource) ProtoMessage()
- func (x *KubernetesSource) ProtoReflect() protoreflect.Message
- func (x *KubernetesSource) Reset()
- func (x *KubernetesSource) String() string
- func (m *KubernetesSource) Validate() error
- func (m *KubernetesSource) ValidateAll() error
- type KubernetesSourceMultiError
- type KubernetesSourceValidationError
- func (e KubernetesSourceValidationError) Cause() error
- func (e KubernetesSourceValidationError) Error() string
- func (e KubernetesSourceValidationError) ErrorName() string
- func (e KubernetesSourceValidationError) Field() string
- func (e KubernetesSourceValidationError) Key() bool
- func (e KubernetesSourceValidationError) Reason() string
- type NacosSource
- func (*NacosSource) Descriptor() ([]byte, []int)deprecated
- func (x *NacosSource) GetAddress() string
- func (x *NacosSource) GetDataId() string
- func (x *NacosSource) GetFormat() string
- func (x *NacosSource) GetGroup() string
- func (x *NacosSource) GetNamespace() string
- func (x *NacosSource) GetPassword() string
- func (x *NacosSource) GetTls() *v1.TLSConfig
- func (x *NacosSource) GetUsername() string
- func (*NacosSource) ProtoMessage()
- func (x *NacosSource) ProtoReflect() protoreflect.Message
- func (x *NacosSource) Reset()
- func (x *NacosSource) String() string
- func (m *NacosSource) Validate() error
- func (m *NacosSource) ValidateAll() error
- type NacosSourceMultiError
- type NacosSourceValidationError
- func (e NacosSourceValidationError) Cause() error
- func (e NacosSourceValidationError) Error() string
- func (e NacosSourceValidationError) ErrorName() string
- func (e NacosSourceValidationError) Field() string
- func (e NacosSourceValidationError) Key() bool
- func (e NacosSourceValidationError) Reason() string
- type PolarisSource
- func (*PolarisSource) Descriptor() ([]byte, []int)deprecated
- func (x *PolarisSource) GetAddress() string
- func (x *PolarisSource) GetFile() string
- func (x *PolarisSource) GetGroup() string
- func (x *PolarisSource) GetNamespace() string
- func (x *PolarisSource) GetTimeout() int32
- func (x *PolarisSource) GetTls() *v1.TLSConfig
- func (*PolarisSource) ProtoMessage()
- func (x *PolarisSource) ProtoReflect() protoreflect.Message
- func (x *PolarisSource) Reset()
- func (x *PolarisSource) String() string
- func (m *PolarisSource) Validate() error
- func (m *PolarisSource) ValidateAll() error
- type PolarisSourceMultiError
- type PolarisSourceValidationError
- func (e PolarisSourceValidationError) Cause() error
- func (e PolarisSourceValidationError) Error() string
- func (e PolarisSourceValidationError) ErrorName() string
- func (e PolarisSourceValidationError) Field() string
- func (e PolarisSourceValidationError) Key() bool
- func (e PolarisSourceValidationError) Reason() string
- type SourceConfig
- func (*SourceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SourceConfig) GetApollo() *ApolloSource
- func (x *SourceConfig) GetConfig() isSourceConfig_Config
- func (x *SourceConfig) GetConsul() *ConsulSource
- func (x *SourceConfig) GetCustomize() *v1.Extension
- func (x *SourceConfig) GetEnv() *EnvSource
- func (x *SourceConfig) GetEtcd() *ETCDSource
- func (x *SourceConfig) GetFile() *FileSource
- func (x *SourceConfig) GetFormats() []string
- func (x *SourceConfig) GetKubernetes() *KubernetesSource
- func (x *SourceConfig) GetNacos() *NacosSource
- func (x *SourceConfig) GetName() string
- func (x *SourceConfig) GetPolaris() *PolarisSource
- func (x *SourceConfig) GetPriority() int32
- func (x *SourceConfig) GetType() string
- func (x *SourceConfig) GetVersion() string
- func (*SourceConfig) ProtoMessage()
- func (x *SourceConfig) ProtoReflect() protoreflect.Message
- func (x *SourceConfig) Reset()
- func (x *SourceConfig) String() string
- func (m *SourceConfig) Validate() error
- func (m *SourceConfig) ValidateAll() error
- type SourceConfigMultiError
- type SourceConfigValidationError
- func (e SourceConfigValidationError) Cause() error
- func (e SourceConfigValidationError) Error() string
- func (e SourceConfigValidationError) ErrorName() string
- func (e SourceConfigValidationError) Field() string
- func (e SourceConfigValidationError) Key() bool
- func (e SourceConfigValidationError) Reason() string
- type SourceConfig_Apollo
- type SourceConfig_Consul
- type SourceConfig_Customize
- type SourceConfig_Env
- type SourceConfig_Etcd
- type SourceConfig_File
- type SourceConfig_Kubernetes
- type SourceConfig_Nacos
- type SourceConfig_Polaris
- type Sources
- func (*Sources) Descriptor() ([]byte, []int)deprecated
- func (x *Sources) GetName() string
- func (x *Sources) GetSources() []*SourceConfig
- func (x *Sources) GetVersion() string
- func (*Sources) ProtoMessage()
- func (x *Sources) ProtoReflect() protoreflect.Message
- func (x *Sources) Reset()
- func (x *Sources) String() string
- func (m *Sources) Validate() error
- func (m *Sources) ValidateAll() error
- type SourcesMultiError
- type SourcesValidationError
Constants ¶
This section is empty.
Variables ¶
var File_runtime_source_v1_apollo_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_consul_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_env_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_etcd_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_file_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_kubernetes_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_nacos_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_polaris_source_proto protoreflect.FileDescriptor
var File_runtime_source_v1_source_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ApolloSource ¶
type ApolloSource struct {
// Apollo server address (e.g., "http://localhost:8080")
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// App ID
AppId string `protobuf:"bytes,2,opt,name=app_id,proto3" json:"app_id,omitempty"`
// Cluster name
Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Namespace name
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
// Secret key for authentication
Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
// Cluster list
Clusters []string `protobuf:"bytes,6,rep,name=clusters,proto3" json:"clusters,omitempty"`
// TLS configuration
Tls *v1.TLSConfig `protobuf:"bytes,10,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
Apollo defines the configuration for Apollo configuration center
func (*ApolloSource) Descriptor
deprecated
func (*ApolloSource) Descriptor() ([]byte, []int)
Deprecated: Use ApolloSource.ProtoReflect.Descriptor instead.
func (*ApolloSource) GetAddress ¶
func (x *ApolloSource) GetAddress() string
func (*ApolloSource) GetAppId ¶
func (x *ApolloSource) GetAppId() string
func (*ApolloSource) GetCluster ¶
func (x *ApolloSource) GetCluster() string
func (*ApolloSource) GetClusters ¶
func (x *ApolloSource) GetClusters() []string
func (*ApolloSource) GetNamespace ¶
func (x *ApolloSource) GetNamespace() string
func (*ApolloSource) GetSecret ¶
func (x *ApolloSource) GetSecret() string
func (*ApolloSource) GetTls ¶
func (x *ApolloSource) GetTls() *v1.TLSConfig
func (*ApolloSource) ProtoMessage ¶
func (*ApolloSource) ProtoMessage()
func (*ApolloSource) ProtoReflect ¶
func (x *ApolloSource) ProtoReflect() protoreflect.Message
func (*ApolloSource) Reset ¶
func (x *ApolloSource) Reset()
func (*ApolloSource) String ¶
func (x *ApolloSource) String() string
func (*ApolloSource) Validate ¶
func (m *ApolloSource) Validate() error
Validate checks the field values on ApolloSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApolloSource) ValidateAll ¶
func (m *ApolloSource) ValidateAll() error
ValidateAll checks the field values on ApolloSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApolloSourceMultiError, or nil if none found.
type ApolloSourceMultiError ¶
type ApolloSourceMultiError []error
ApolloSourceMultiError is an error wrapping multiple validation errors returned by ApolloSource.ValidateAll() if the designated constraints aren't met.
func (ApolloSourceMultiError) AllErrors ¶
func (m ApolloSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApolloSourceMultiError) Error ¶
func (m ApolloSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApolloSourceValidationError ¶
type ApolloSourceValidationError struct {
// contains filtered or unexported fields
}
ApolloSourceValidationError is the validation error returned by ApolloSource.Validate if the designated constraints aren't met.
func (ApolloSourceValidationError) Cause ¶
func (e ApolloSourceValidationError) Cause() error
Cause function returns cause value.
func (ApolloSourceValidationError) Error ¶
func (e ApolloSourceValidationError) Error() string
Error satisfies the builtin error interface
func (ApolloSourceValidationError) ErrorName ¶
func (e ApolloSourceValidationError) ErrorName() string
ErrorName returns error name.
func (ApolloSourceValidationError) Field ¶
func (e ApolloSourceValidationError) Field() string
Field function returns field value.
func (ApolloSourceValidationError) Key ¶
func (e ApolloSourceValidationError) Key() bool
Key function returns key value.
func (ApolloSourceValidationError) Reason ¶
func (e ApolloSourceValidationError) Reason() string
Reason function returns reason value.
type ConsulSource ¶
type ConsulSource struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
Datacenter string `protobuf:"bytes,5,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"`
WaitTime string `protobuf:"bytes,7,opt,name=wait_time,proto3" json:"wait_time,omitempty"` // e.g., "10s"
Timeout string `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // e.g., "5s"
Tls *v1.TLSConfig `protobuf:"bytes,10,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
ConsulSource is the consul source
func (*ConsulSource) Descriptor
deprecated
func (*ConsulSource) Descriptor() ([]byte, []int)
Deprecated: Use ConsulSource.ProtoReflect.Descriptor instead.
func (*ConsulSource) GetAddress ¶
func (x *ConsulSource) GetAddress() string
func (*ConsulSource) GetDatacenter ¶
func (x *ConsulSource) GetDatacenter() string
func (*ConsulSource) GetNamespace ¶
func (x *ConsulSource) GetNamespace() string
func (*ConsulSource) GetPath ¶
func (x *ConsulSource) GetPath() string
func (*ConsulSource) GetScheme ¶
func (x *ConsulSource) GetScheme() string
func (*ConsulSource) GetTimeout ¶
func (x *ConsulSource) GetTimeout() string
func (*ConsulSource) GetTls ¶
func (x *ConsulSource) GetTls() *v1.TLSConfig
func (*ConsulSource) GetToken ¶
func (x *ConsulSource) GetToken() string
func (*ConsulSource) GetWaitTime ¶
func (x *ConsulSource) GetWaitTime() string
func (*ConsulSource) ProtoMessage ¶
func (*ConsulSource) ProtoMessage()
func (*ConsulSource) ProtoReflect ¶
func (x *ConsulSource) ProtoReflect() protoreflect.Message
func (*ConsulSource) Reset ¶
func (x *ConsulSource) Reset()
func (*ConsulSource) String ¶
func (x *ConsulSource) String() string
func (*ConsulSource) Validate ¶
func (m *ConsulSource) Validate() error
Validate checks the field values on ConsulSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConsulSource) ValidateAll ¶
func (m *ConsulSource) ValidateAll() error
ValidateAll checks the field values on ConsulSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConsulSourceMultiError, or nil if none found.
type ConsulSourceMultiError ¶
type ConsulSourceMultiError []error
ConsulSourceMultiError is an error wrapping multiple validation errors returned by ConsulSource.ValidateAll() if the designated constraints aren't met.
func (ConsulSourceMultiError) AllErrors ¶
func (m ConsulSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsulSourceMultiError) Error ¶
func (m ConsulSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsulSourceValidationError ¶
type ConsulSourceValidationError struct {
// contains filtered or unexported fields
}
ConsulSourceValidationError is the validation error returned by ConsulSource.Validate if the designated constraints aren't met.
func (ConsulSourceValidationError) Cause ¶
func (e ConsulSourceValidationError) Cause() error
Cause function returns cause value.
func (ConsulSourceValidationError) Error ¶
func (e ConsulSourceValidationError) Error() string
Error satisfies the builtin error interface
func (ConsulSourceValidationError) ErrorName ¶
func (e ConsulSourceValidationError) ErrorName() string
ErrorName returns error name.
func (ConsulSourceValidationError) Field ¶
func (e ConsulSourceValidationError) Field() string
Field function returns field value.
func (ConsulSourceValidationError) Key ¶
func (e ConsulSourceValidationError) Key() bool
Key function returns key value.
func (ConsulSourceValidationError) Reason ¶
func (e ConsulSourceValidationError) Reason() string
Reason function returns reason value.
type ETCDSource ¶
type ETCDSource struct {
// ETCD server address (e.g., "localhost:2379")
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Username for authentication (if required)
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Password for authentication (if required)
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// Path to the configuration in ETCD (e.g., "/config/app")
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
// TLS configuration for secure connection
Tls *v1.TLSConfig `protobuf:"bytes,10,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
ETCDSource defines the configuration for ETCD configuration source
func (*ETCDSource) Descriptor
deprecated
func (*ETCDSource) Descriptor() ([]byte, []int)
Deprecated: Use ETCDSource.ProtoReflect.Descriptor instead.
func (*ETCDSource) GetAddress ¶
func (x *ETCDSource) GetAddress() string
func (*ETCDSource) GetPassword ¶
func (x *ETCDSource) GetPassword() string
func (*ETCDSource) GetPath ¶
func (x *ETCDSource) GetPath() string
func (*ETCDSource) GetTls ¶
func (x *ETCDSource) GetTls() *v1.TLSConfig
func (*ETCDSource) GetUsername ¶
func (x *ETCDSource) GetUsername() string
func (*ETCDSource) ProtoMessage ¶
func (*ETCDSource) ProtoMessage()
func (*ETCDSource) ProtoReflect ¶
func (x *ETCDSource) ProtoReflect() protoreflect.Message
func (*ETCDSource) Reset ¶
func (x *ETCDSource) Reset()
func (*ETCDSource) String ¶
func (x *ETCDSource) String() string
func (*ETCDSource) Validate ¶
func (m *ETCDSource) Validate() error
Validate checks the field values on ETCDSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ETCDSource) ValidateAll ¶
func (m *ETCDSource) ValidateAll() error
ValidateAll checks the field values on ETCDSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ETCDSourceMultiError, or nil if none found.
type ETCDSourceMultiError ¶
type ETCDSourceMultiError []error
ETCDSourceMultiError is an error wrapping multiple validation errors returned by ETCDSource.ValidateAll() if the designated constraints aren't met.
func (ETCDSourceMultiError) AllErrors ¶
func (m ETCDSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ETCDSourceMultiError) Error ¶
func (m ETCDSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ETCDSourceValidationError ¶
type ETCDSourceValidationError struct {
// contains filtered or unexported fields
}
ETCDSourceValidationError is the validation error returned by ETCDSource.Validate if the designated constraints aren't met.
func (ETCDSourceValidationError) Cause ¶
func (e ETCDSourceValidationError) Cause() error
Cause function returns cause value.
func (ETCDSourceValidationError) Error ¶
func (e ETCDSourceValidationError) Error() string
Error satisfies the builtin error interface
func (ETCDSourceValidationError) ErrorName ¶
func (e ETCDSourceValidationError) ErrorName() string
ErrorName returns error name.
func (ETCDSourceValidationError) Field ¶
func (e ETCDSourceValidationError) Field() string
Field function returns field value.
func (ETCDSourceValidationError) Key ¶
func (e ETCDSourceValidationError) Key() bool
Key function returns key value.
func (ETCDSourceValidationError) Reason ¶
func (e ETCDSourceValidationError) Reason() string
Reason function returns reason value.
type EnvSource ¶
type EnvSource struct {
// Environment variable prefixes to include
Prefixes []string `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
// Additional environment variables to set
Args map[string]string `` /* 135-byte string literal not displayed */
// Whether to watch for environment variable changes
Watch bool `protobuf:"varint,3,opt,name=watch,proto3" json:"watch,omitempty"`
// Whether to treat environment variables as nested structure
Nested bool `protobuf:"varint,4,opt,name=nested,proto3" json:"nested,omitempty"`
// contains filtered or unexported fields
}
EnvSource is the environment variable source
func (*EnvSource) Descriptor
deprecated
func (*EnvSource) GetPrefixes ¶
func (*EnvSource) ProtoMessage ¶
func (*EnvSource) ProtoMessage()
func (*EnvSource) ProtoReflect ¶
func (x *EnvSource) ProtoReflect() protoreflect.Message
func (*EnvSource) Validate ¶
Validate checks the field values on EnvSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnvSource) ValidateAll ¶
ValidateAll checks the field values on EnvSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvSourceMultiError, or nil if none found.
type EnvSourceMultiError ¶
type EnvSourceMultiError []error
EnvSourceMultiError is an error wrapping multiple validation errors returned by EnvSource.ValidateAll() if the designated constraints aren't met.
func (EnvSourceMultiError) AllErrors ¶
func (m EnvSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvSourceMultiError) Error ¶
func (m EnvSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvSourceValidationError ¶
type EnvSourceValidationError struct {
// contains filtered or unexported fields
}
EnvSourceValidationError is the validation error returned by EnvSource.Validate if the designated constraints aren't met.
func (EnvSourceValidationError) Cause ¶
func (e EnvSourceValidationError) Cause() error
Cause function returns cause value.
func (EnvSourceValidationError) Error ¶
func (e EnvSourceValidationError) Error() string
Error satisfies the builtin error interface
func (EnvSourceValidationError) ErrorName ¶
func (e EnvSourceValidationError) ErrorName() string
ErrorName returns error name.
func (EnvSourceValidationError) Field ¶
func (e EnvSourceValidationError) Field() string
Field function returns field value.
func (EnvSourceValidationError) Key ¶
func (e EnvSourceValidationError) Key() bool
Key function returns key value.
func (EnvSourceValidationError) Reason ¶
func (e EnvSourceValidationError) Reason() string
Reason function returns reason value.
type FileSource ¶
type FileSource struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
Ignores []string `protobuf:"bytes,3,rep,name=ignores,proto3" json:"ignores,omitempty"`
// supported file formats, if not set, all formats are supported
Formats []string `protobuf:"bytes,4,rep,name=formats,proto3" json:"formats,omitempty"`
Reload bool `protobuf:"varint,6,opt,name=reload,proto3" json:"reload,omitempty"`
// contains filtered or unexported fields
}
FileSource is the file source
func (*FileSource) Descriptor
deprecated
func (*FileSource) Descriptor() ([]byte, []int)
Deprecated: Use FileSource.ProtoReflect.Descriptor instead.
func (*FileSource) GetFormat ¶
func (x *FileSource) GetFormat() string
func (*FileSource) GetFormats ¶
func (x *FileSource) GetFormats() []string
func (*FileSource) GetIgnores ¶
func (x *FileSource) GetIgnores() []string
func (*FileSource) GetPath ¶
func (x *FileSource) GetPath() string
func (*FileSource) GetReload ¶
func (x *FileSource) GetReload() bool
func (*FileSource) ProtoMessage ¶
func (*FileSource) ProtoMessage()
func (*FileSource) ProtoReflect ¶
func (x *FileSource) ProtoReflect() protoreflect.Message
func (*FileSource) Reset ¶
func (x *FileSource) Reset()
func (*FileSource) String ¶
func (x *FileSource) String() string
func (*FileSource) Validate ¶
func (m *FileSource) Validate() error
Validate checks the field values on FileSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FileSource) ValidateAll ¶
func (m *FileSource) ValidateAll() error
ValidateAll checks the field values on FileSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileSourceMultiError, or nil if none found.
type FileSourceMultiError ¶
type FileSourceMultiError []error
FileSourceMultiError is an error wrapping multiple validation errors returned by FileSource.ValidateAll() if the designated constraints aren't met.
func (FileSourceMultiError) AllErrors ¶
func (m FileSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileSourceMultiError) Error ¶
func (m FileSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileSourceValidationError ¶
type FileSourceValidationError struct {
// contains filtered or unexported fields
}
FileSourceValidationError is the validation error returned by FileSource.Validate if the designated constraints aren't met.
func (FileSourceValidationError) Cause ¶
func (e FileSourceValidationError) Cause() error
Cause function returns cause value.
func (FileSourceValidationError) Error ¶
func (e FileSourceValidationError) Error() string
Error satisfies the builtin error interface
func (FileSourceValidationError) ErrorName ¶
func (e FileSourceValidationError) ErrorName() string
ErrorName returns error name.
func (FileSourceValidationError) Field ¶
func (e FileSourceValidationError) Field() string
Field function returns field value.
func (FileSourceValidationError) Key ¶
func (e FileSourceValidationError) Key() bool
Key function returns key value.
func (FileSourceValidationError) Reason ¶
func (e FileSourceValidationError) Reason() string
Reason function returns reason value.
type KubernetesSource ¶
type KubernetesSource struct {
// Namespace where the configmap/secret is located
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// ConfigMap name
ConfigMap string `protobuf:"bytes,2,opt,name=config_map,proto3" json:"config_map,omitempty"`
// Secret name
Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
// Key in the configmap/secret
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
// Whether to watch for changes
Watch bool `protobuf:"varint,5,opt,name=watch,proto3" json:"watch,omitempty"`
// Kubeconfig path, if not set will use in-cluster config
Kubeconfig string `protobuf:"bytes,6,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"`
// contains filtered or unexported fields
}
Kubernetes defines the configuration for Kubernetes configuration source
func (*KubernetesSource) Descriptor
deprecated
func (*KubernetesSource) Descriptor() ([]byte, []int)
Deprecated: Use KubernetesSource.ProtoReflect.Descriptor instead.
func (*KubernetesSource) GetConfigMap ¶
func (x *KubernetesSource) GetConfigMap() string
func (*KubernetesSource) GetKey ¶
func (x *KubernetesSource) GetKey() string
func (*KubernetesSource) GetKubeconfig ¶
func (x *KubernetesSource) GetKubeconfig() string
func (*KubernetesSource) GetNamespace ¶
func (x *KubernetesSource) GetNamespace() string
func (*KubernetesSource) GetSecret ¶
func (x *KubernetesSource) GetSecret() string
func (*KubernetesSource) GetWatch ¶
func (x *KubernetesSource) GetWatch() bool
func (*KubernetesSource) ProtoMessage ¶
func (*KubernetesSource) ProtoMessage()
func (*KubernetesSource) ProtoReflect ¶
func (x *KubernetesSource) ProtoReflect() protoreflect.Message
func (*KubernetesSource) Reset ¶
func (x *KubernetesSource) Reset()
func (*KubernetesSource) String ¶
func (x *KubernetesSource) String() string
func (*KubernetesSource) Validate ¶
func (m *KubernetesSource) Validate() error
Validate checks the field values on KubernetesSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*KubernetesSource) ValidateAll ¶
func (m *KubernetesSource) ValidateAll() error
ValidateAll checks the field values on KubernetesSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KubernetesSourceMultiError, or nil if none found.
type KubernetesSourceMultiError ¶
type KubernetesSourceMultiError []error
KubernetesSourceMultiError is an error wrapping multiple validation errors returned by KubernetesSource.ValidateAll() if the designated constraints aren't met.
func (KubernetesSourceMultiError) AllErrors ¶
func (m KubernetesSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KubernetesSourceMultiError) Error ¶
func (m KubernetesSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KubernetesSourceValidationError ¶
type KubernetesSourceValidationError struct {
// contains filtered or unexported fields
}
KubernetesSourceValidationError is the validation error returned by KubernetesSource.Validate if the designated constraints aren't met.
func (KubernetesSourceValidationError) Cause ¶
func (e KubernetesSourceValidationError) Cause() error
Cause function returns cause value.
func (KubernetesSourceValidationError) Error ¶
func (e KubernetesSourceValidationError) Error() string
Error satisfies the builtin error interface
func (KubernetesSourceValidationError) ErrorName ¶
func (e KubernetesSourceValidationError) ErrorName() string
ErrorName returns error name.
func (KubernetesSourceValidationError) Field ¶
func (e KubernetesSourceValidationError) Field() string
Field function returns field value.
func (KubernetesSourceValidationError) Key ¶
func (e KubernetesSourceValidationError) Key() bool
Key function returns key value.
func (KubernetesSourceValidationError) Reason ¶
func (e KubernetesSourceValidationError) Reason() string
Reason function returns reason value.
type NacosSource ¶
type NacosSource struct {
// Nacos server address (e.g., "localhost:8848")
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Namespace ID
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
// Group name
Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
// Data ID
DataId string `protobuf:"bytes,4,opt,name=data_id,proto3" json:"data_id,omitempty"`
// Username for authentication
Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
// Password for authentication
Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
// Configuration format (e.g., "yaml", "json")
Format string `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"`
// TLS configuration
Tls *v1.TLSConfig `protobuf:"bytes,10,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
Nacos defines the configuration for Nacos configuration center
func (*NacosSource) Descriptor
deprecated
func (*NacosSource) Descriptor() ([]byte, []int)
Deprecated: Use NacosSource.ProtoReflect.Descriptor instead.
func (*NacosSource) GetAddress ¶
func (x *NacosSource) GetAddress() string
func (*NacosSource) GetDataId ¶
func (x *NacosSource) GetDataId() string
func (*NacosSource) GetFormat ¶
func (x *NacosSource) GetFormat() string
func (*NacosSource) GetGroup ¶
func (x *NacosSource) GetGroup() string
func (*NacosSource) GetNamespace ¶
func (x *NacosSource) GetNamespace() string
func (*NacosSource) GetPassword ¶
func (x *NacosSource) GetPassword() string
func (*NacosSource) GetTls ¶
func (x *NacosSource) GetTls() *v1.TLSConfig
func (*NacosSource) GetUsername ¶
func (x *NacosSource) GetUsername() string
func (*NacosSource) ProtoMessage ¶
func (*NacosSource) ProtoMessage()
func (*NacosSource) ProtoReflect ¶
func (x *NacosSource) ProtoReflect() protoreflect.Message
func (*NacosSource) Reset ¶
func (x *NacosSource) Reset()
func (*NacosSource) String ¶
func (x *NacosSource) String() string
func (*NacosSource) Validate ¶
func (m *NacosSource) Validate() error
Validate checks the field values on NacosSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NacosSource) ValidateAll ¶
func (m *NacosSource) ValidateAll() error
ValidateAll checks the field values on NacosSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NacosSourceMultiError, or nil if none found.
type NacosSourceMultiError ¶
type NacosSourceMultiError []error
NacosSourceMultiError is an error wrapping multiple validation errors returned by NacosSource.ValidateAll() if the designated constraints aren't met.
func (NacosSourceMultiError) AllErrors ¶
func (m NacosSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NacosSourceMultiError) Error ¶
func (m NacosSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NacosSourceValidationError ¶
type NacosSourceValidationError struct {
// contains filtered or unexported fields
}
NacosSourceValidationError is the validation error returned by NacosSource.Validate if the designated constraints aren't met.
func (NacosSourceValidationError) Cause ¶
func (e NacosSourceValidationError) Cause() error
Cause function returns cause value.
func (NacosSourceValidationError) Error ¶
func (e NacosSourceValidationError) Error() string
Error satisfies the builtin error interface
func (NacosSourceValidationError) ErrorName ¶
func (e NacosSourceValidationError) ErrorName() string
ErrorName returns error name.
func (NacosSourceValidationError) Field ¶
func (e NacosSourceValidationError) Field() string
Field function returns field value.
func (NacosSourceValidationError) Key ¶
func (e NacosSourceValidationError) Key() bool
Key function returns key value.
func (NacosSourceValidationError) Reason ¶
func (e NacosSourceValidationError) Reason() string
Reason function returns reason value.
type PolarisSource ¶
type PolarisSource struct {
// Polaris server address (e.g., "127.0.0.1:8091")
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Namespace
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
// File group
Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
// File name
File string `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"`
// Timeout in seconds
Timeout int32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
// TLS configuration
Tls *v1.TLSConfig `protobuf:"bytes,10,opt,name=tls,proto3" json:"tls,omitempty"`
// contains filtered or unexported fields
}
Polaris defines the configuration for Polaris configuration center
func (*PolarisSource) Descriptor
deprecated
func (*PolarisSource) Descriptor() ([]byte, []int)
Deprecated: Use PolarisSource.ProtoReflect.Descriptor instead.
func (*PolarisSource) GetAddress ¶
func (x *PolarisSource) GetAddress() string
func (*PolarisSource) GetFile ¶
func (x *PolarisSource) GetFile() string
func (*PolarisSource) GetGroup ¶
func (x *PolarisSource) GetGroup() string
func (*PolarisSource) GetNamespace ¶
func (x *PolarisSource) GetNamespace() string
func (*PolarisSource) GetTimeout ¶
func (x *PolarisSource) GetTimeout() int32
func (*PolarisSource) GetTls ¶
func (x *PolarisSource) GetTls() *v1.TLSConfig
func (*PolarisSource) ProtoMessage ¶
func (*PolarisSource) ProtoMessage()
func (*PolarisSource) ProtoReflect ¶
func (x *PolarisSource) ProtoReflect() protoreflect.Message
func (*PolarisSource) Reset ¶
func (x *PolarisSource) Reset()
func (*PolarisSource) String ¶
func (x *PolarisSource) String() string
func (*PolarisSource) Validate ¶
func (m *PolarisSource) Validate() error
Validate checks the field values on PolarisSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PolarisSource) ValidateAll ¶
func (m *PolarisSource) ValidateAll() error
ValidateAll checks the field values on PolarisSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PolarisSourceMultiError, or nil if none found.
type PolarisSourceMultiError ¶
type PolarisSourceMultiError []error
PolarisSourceMultiError is an error wrapping multiple validation errors returned by PolarisSource.ValidateAll() if the designated constraints aren't met.
func (PolarisSourceMultiError) AllErrors ¶
func (m PolarisSourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PolarisSourceMultiError) Error ¶
func (m PolarisSourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PolarisSourceValidationError ¶
type PolarisSourceValidationError struct {
// contains filtered or unexported fields
}
PolarisSourceValidationError is the validation error returned by PolarisSource.Validate if the designated constraints aren't met.
func (PolarisSourceValidationError) Cause ¶
func (e PolarisSourceValidationError) Cause() error
Cause function returns cause value.
func (PolarisSourceValidationError) Error ¶
func (e PolarisSourceValidationError) Error() string
Error satisfies the builtin error interface
func (PolarisSourceValidationError) ErrorName ¶
func (e PolarisSourceValidationError) ErrorName() string
ErrorName returns error name.
func (PolarisSourceValidationError) Field ¶
func (e PolarisSourceValidationError) Field() string
Field function returns field value.
func (PolarisSourceValidationError) Key ¶
func (e PolarisSourceValidationError) Key() bool
Key function returns key value.
func (PolarisSourceValidationError) Reason ¶
func (e PolarisSourceValidationError) Reason() string
Reason function returns reason value.
type SourceConfig ¶
type SourceConfig struct {
// type specifies the type of the configuration source
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type
// name specifies the configuration name
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// version specifies the configuration version
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// set the supported file format, if not set, all formats are supported
Formats []string `protobuf:"bytes,4,rep,name=formats,proto3" json:"formats,omitempty"`
// priority for this configuration source.
// Sources will be loaded in ascending order of priority (e.g., 0, 1, 2, ...),
// with later sources (higher priority value) overriding earlier ones.
Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
// Types that are valid to be assigned to Config:
//
// *SourceConfig_Env
// *SourceConfig_File
// *SourceConfig_Etcd
// *SourceConfig_Consul
// *SourceConfig_Nacos
// *SourceConfig_Apollo
// *SourceConfig_Kubernetes
// *SourceConfig_Polaris
// *SourceConfig_Customize
Config isSourceConfig_Config `protobuf_oneof:"config"`
// contains filtered or unexported fields
}
SourceConfig is the source file for load configuration
func (*SourceConfig) Descriptor
deprecated
func (*SourceConfig) Descriptor() ([]byte, []int)
Deprecated: Use SourceConfig.ProtoReflect.Descriptor instead.
func (*SourceConfig) GetApollo ¶
func (x *SourceConfig) GetApollo() *ApolloSource
func (*SourceConfig) GetConfig ¶
func (x *SourceConfig) GetConfig() isSourceConfig_Config
func (*SourceConfig) GetConsul ¶
func (x *SourceConfig) GetConsul() *ConsulSource
func (*SourceConfig) GetCustomize ¶
func (x *SourceConfig) GetCustomize() *v1.Extension
func (*SourceConfig) GetEnv ¶
func (x *SourceConfig) GetEnv() *EnvSource
func (*SourceConfig) GetEtcd ¶
func (x *SourceConfig) GetEtcd() *ETCDSource
func (*SourceConfig) GetFile ¶
func (x *SourceConfig) GetFile() *FileSource
func (*SourceConfig) GetFormats ¶
func (x *SourceConfig) GetFormats() []string
func (*SourceConfig) GetKubernetes ¶
func (x *SourceConfig) GetKubernetes() *KubernetesSource
func (*SourceConfig) GetNacos ¶
func (x *SourceConfig) GetNacos() *NacosSource
func (*SourceConfig) GetName ¶
func (x *SourceConfig) GetName() string
func (*SourceConfig) GetPolaris ¶
func (x *SourceConfig) GetPolaris() *PolarisSource
func (*SourceConfig) GetPriority ¶
func (x *SourceConfig) GetPriority() int32
func (*SourceConfig) GetType ¶
func (x *SourceConfig) GetType() string
func (*SourceConfig) GetVersion ¶
func (x *SourceConfig) GetVersion() string
func (*SourceConfig) ProtoMessage ¶
func (*SourceConfig) ProtoMessage()
func (*SourceConfig) ProtoReflect ¶
func (x *SourceConfig) ProtoReflect() protoreflect.Message
func (*SourceConfig) Reset ¶
func (x *SourceConfig) Reset()
func (*SourceConfig) String ¶
func (x *SourceConfig) String() string
func (*SourceConfig) Validate ¶
func (m *SourceConfig) Validate() error
Validate checks the field values on SourceConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SourceConfig) ValidateAll ¶
func (m *SourceConfig) ValidateAll() error
ValidateAll checks the field values on SourceConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SourceConfigMultiError, or nil if none found.
type SourceConfigMultiError ¶
type SourceConfigMultiError []error
SourceConfigMultiError is an error wrapping multiple validation errors returned by SourceConfig.ValidateAll() if the designated constraints aren't met.
func (SourceConfigMultiError) AllErrors ¶
func (m SourceConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SourceConfigMultiError) Error ¶
func (m SourceConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SourceConfigValidationError ¶
type SourceConfigValidationError struct {
// contains filtered or unexported fields
}
SourceConfigValidationError is the validation error returned by SourceConfig.Validate if the designated constraints aren't met.
func (SourceConfigValidationError) Cause ¶
func (e SourceConfigValidationError) Cause() error
Cause function returns cause value.
func (SourceConfigValidationError) Error ¶
func (e SourceConfigValidationError) Error() string
Error satisfies the builtin error interface
func (SourceConfigValidationError) ErrorName ¶
func (e SourceConfigValidationError) ErrorName() string
ErrorName returns error name.
func (SourceConfigValidationError) Field ¶
func (e SourceConfigValidationError) Field() string
Field function returns field value.
func (SourceConfigValidationError) Key ¶
func (e SourceConfigValidationError) Key() bool
Key function returns key value.
func (SourceConfigValidationError) Reason ¶
func (e SourceConfigValidationError) Reason() string
Reason function returns reason value.
type SourceConfig_Apollo ¶
type SourceConfig_Apollo struct {
Apollo *ApolloSource `protobuf:"bytes,600,opt,name=apollo,proto3,oneof"`
}
type SourceConfig_Consul ¶
type SourceConfig_Consul struct {
Consul *ConsulSource `protobuf:"bytes,400,opt,name=consul,proto3,oneof"`
}
type SourceConfig_Customize ¶
type SourceConfig_Env ¶
type SourceConfig_Env struct {
Env *EnvSource `protobuf:"bytes,100,opt,name=env,proto3,oneof"`
}
type SourceConfig_Etcd ¶
type SourceConfig_Etcd struct {
Etcd *ETCDSource `protobuf:"bytes,300,opt,name=etcd,proto3,oneof"`
}
type SourceConfig_File ¶
type SourceConfig_File struct {
File *FileSource `protobuf:"bytes,200,opt,name=file,proto3,oneof"`
}
type SourceConfig_Kubernetes ¶
type SourceConfig_Kubernetes struct {
Kubernetes *KubernetesSource `protobuf:"bytes,700,opt,name=kubernetes,proto3,oneof"`
}
type SourceConfig_Nacos ¶
type SourceConfig_Nacos struct {
Nacos *NacosSource `protobuf:"bytes,500,opt,name=nacos,proto3,oneof"`
}
type SourceConfig_Polaris ¶
type SourceConfig_Polaris struct {
Polaris *PolarisSource `protobuf:"bytes,800,opt,name=polaris,proto3,oneof"`
}
type Sources ¶
type Sources struct {
// name specifies the configuration set name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// version specifies the configuration set version
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// sources is a list of configuration sources
Sources []*SourceConfig `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
// contains filtered or unexported fields
}
func (*Sources) Descriptor
deprecated
func (*Sources) GetSources ¶
func (x *Sources) GetSources() []*SourceConfig
func (*Sources) GetVersion ¶
func (*Sources) ProtoMessage ¶
func (*Sources) ProtoMessage()
func (*Sources) ProtoReflect ¶
func (x *Sources) ProtoReflect() protoreflect.Message
func (*Sources) Validate ¶
Validate checks the field values on Sources with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Sources) ValidateAll ¶
ValidateAll checks the field values on Sources with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SourcesMultiError, or nil if none found.
type SourcesMultiError ¶
type SourcesMultiError []error
SourcesMultiError is an error wrapping multiple validation errors returned by Sources.ValidateAll() if the designated constraints aren't met.
func (SourcesMultiError) AllErrors ¶
func (m SourcesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SourcesMultiError) Error ¶
func (m SourcesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SourcesValidationError ¶
type SourcesValidationError struct {
// contains filtered or unexported fields
}
SourcesValidationError is the validation error returned by Sources.Validate if the designated constraints aren't met.
func (SourcesValidationError) Cause ¶
func (e SourcesValidationError) Cause() error
Cause function returns cause value.
func (SourcesValidationError) Error ¶
func (e SourcesValidationError) Error() string
Error satisfies the builtin error interface
func (SourcesValidationError) ErrorName ¶
func (e SourcesValidationError) ErrorName() string
ErrorName returns error name.
func (SourcesValidationError) Field ¶
func (e SourcesValidationError) Field() string
Field function returns field value.
func (SourcesValidationError) Key ¶
func (e SourcesValidationError) Key() bool
Key function returns key value.
func (SourcesValidationError) Reason ¶
func (e SourcesValidationError) Reason() string
Reason function returns reason value.
Source Files
¶
- apollo_source.pb.go
- apollo_source.pb.validate.go
- consul_source.pb.go
- consul_source.pb.validate.go
- env_source.pb.go
- env_source.pb.validate.go
- etcd_source.pb.go
- etcd_source.pb.validate.go
- file_source.pb.go
- file_source.pb.validate.go
- kubernetes_source.pb.go
- kubernetes_source.pb.validate.go
- nacos_source.pb.go
- nacos_source.pb.validate.go
- polaris_source.pb.go
- polaris_source.pb.validate.go
- source.pb.go
- source.pb.validate.go