sourcev1

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_runtime_source_v1_apollo_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_consul_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_env_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_etcd_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_file_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_kubernetes_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_nacos_source_proto protoreflect.FileDescriptor
View Source
var File_runtime_source_v1_polaris_source_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (ApolloSourceValidationError) Error

Error satisfies the builtin error interface

func (ApolloSourceValidationError) ErrorName

func (e ApolloSourceValidationError) ErrorName() string

ErrorName returns error name.

func (ApolloSourceValidationError) Field

Field function returns field value.

func (ApolloSourceValidationError) Key

Key function returns key value.

func (ApolloSourceValidationError) Reason

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

Cause function returns cause value.

func (ConsulSourceValidationError) Error

Error satisfies the builtin error interface

func (ConsulSourceValidationError) ErrorName

func (e ConsulSourceValidationError) ErrorName() string

ErrorName returns error name.

func (ConsulSourceValidationError) Field

Field function returns field value.

func (ConsulSourceValidationError) Key

Key function returns key value.

func (ConsulSourceValidationError) Reason

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

Error satisfies the builtin error interface

func (ETCDSourceValidationError) ErrorName

func (e ETCDSourceValidationError) ErrorName() string

ErrorName returns error name.

func (ETCDSourceValidationError) Field

Field function returns field value.

func (ETCDSourceValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use EnvSource.ProtoReflect.Descriptor instead.

func (*EnvSource) GetArgs

func (x *EnvSource) GetArgs() map[string]string

func (*EnvSource) GetNested

func (x *EnvSource) GetNested() bool

func (*EnvSource) GetPrefixes

func (x *EnvSource) GetPrefixes() []string

func (*EnvSource) GetWatch

func (x *EnvSource) GetWatch() bool

func (*EnvSource) ProtoMessage

func (*EnvSource) ProtoMessage()

func (*EnvSource) ProtoReflect

func (x *EnvSource) ProtoReflect() protoreflect.Message

func (*EnvSource) Reset

func (x *EnvSource) Reset()

func (*EnvSource) String

func (x *EnvSource) String() string

func (*EnvSource) Validate

func (m *EnvSource) Validate() error

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

func (m *EnvSource) ValidateAll() error

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

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"`
	Optional bool     `protobuf:"varint,7,opt,name=optional,proto3" json:"optional,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) GetOptional added in v0.2.7

func (x *FileSource) GetOptional() bool

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

Error satisfies the builtin error interface

func (FileSourceValidationError) ErrorName

func (e FileSourceValidationError) ErrorName() string

ErrorName returns error name.

func (FileSourceValidationError) Field

Field function returns field value.

func (FileSourceValidationError) Key

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

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

Cause function returns cause value.

func (KubernetesSourceValidationError) Error

Error satisfies the builtin error interface

func (KubernetesSourceValidationError) ErrorName

ErrorName returns error name.

func (KubernetesSourceValidationError) Field

Field function returns field value.

func (KubernetesSourceValidationError) Key

Key function returns key value.

func (KubernetesSourceValidationError) Reason

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

Cause function returns cause value.

func (NacosSourceValidationError) Error

Error satisfies the builtin error interface

func (NacosSourceValidationError) ErrorName

func (e NacosSourceValidationError) ErrorName() string

ErrorName returns error name.

func (NacosSourceValidationError) Field

Field function returns field value.

func (NacosSourceValidationError) Key

Key function returns key value.

func (NacosSourceValidationError) Reason

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

Cause function returns cause value.

func (PolarisSourceValidationError) Error

Error satisfies the builtin error interface

func (PolarisSourceValidationError) ErrorName

func (e PolarisSourceValidationError) ErrorName() string

ErrorName returns error name.

func (PolarisSourceValidationError) Field

Field function returns field value.

func (PolarisSourceValidationError) Key

Key function returns key value.

func (PolarisSourceValidationError) Reason

Reason function returns reason value.

type SourceConfig

type SourceConfig struct {

	// name specifies the configuration name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type specifies the type of the configuration source
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // Type
	// set the supported file format, if not set, all formats are supported
	Formats []string `protobuf:"bytes,3,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,4,opt,name=priority,proto3" json:"priority,omitempty"`
	// Configuration source specific settings. Only one of these should be set based on the 'type' field.
	Env        *EnvSource        `protobuf:"bytes,10,opt,name=env,proto3,oneof" json:"env,omitempty"`
	File       *FileSource       `protobuf:"bytes,11,opt,name=file,proto3,oneof" json:"file,omitempty"`
	Etcd       *ETCDSource       `protobuf:"bytes,12,opt,name=etcd,proto3,oneof" json:"etcd,omitempty"`
	Consul     *ConsulSource     `protobuf:"bytes,13,opt,name=consul,proto3,oneof" json:"consul,omitempty"`
	Nacos      *NacosSource      `protobuf:"bytes,14,opt,name=nacos,proto3,oneof" json:"nacos,omitempty"`
	Apollo     *ApolloSource     `protobuf:"bytes,15,opt,name=apollo,proto3,oneof" json:"apollo,omitempty"`
	Kubernetes *KubernetesSource `protobuf:"bytes,16,opt,name=kubernetes,proto3,oneof" json:"kubernetes,omitempty"`
	Polaris    *PolarisSource    `protobuf:"bytes,17,opt,name=polaris,proto3,oneof" json:"polaris,omitempty"`
	Customize  *structpb.Struct  `protobuf:"bytes,100,opt,name=customize,proto3,oneof" json:"customize,omitempty"`
	// 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) GetConsul

func (x *SourceConfig) GetConsul() *ConsulSource

func (*SourceConfig) GetCustomize

func (x *SourceConfig) GetCustomize() *structpb.Struct

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) 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

Cause function returns cause value.

func (SourceConfigValidationError) Error

Error satisfies the builtin error interface

func (SourceConfigValidationError) ErrorName

func (e SourceConfigValidationError) ErrorName() string

ErrorName returns error name.

func (SourceConfigValidationError) Field

Field function returns field value.

func (SourceConfigValidationError) Key

Key function returns key value.

func (SourceConfigValidationError) Reason

Reason function returns reason value.

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) Descriptor() ([]byte, []int)

Deprecated: Use Sources.ProtoReflect.Descriptor instead.

func (*Sources) GetName

func (x *Sources) GetName() string

func (*Sources) GetSources

func (x *Sources) GetSources() []*SourceConfig

func (*Sources) GetVersion

func (x *Sources) GetVersion() string

func (*Sources) ProtoMessage

func (*Sources) ProtoMessage()

func (*Sources) ProtoReflect

func (x *Sources) ProtoReflect() protoreflect.Message

func (*Sources) Reset

func (x *Sources) Reset()

func (*Sources) String

func (x *Sources) String() string

func (*Sources) Validate

func (m *Sources) Validate() error

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

func (m *Sources) ValidateAll() error

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.

Jump to

Keyboard shortcuts

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