Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateArtifact ¶
func ValidateArtifact(sl validator.StructLevel)
func ValidateConfig ¶
func ValidateConfig(config *BareMetalClusterConfig) error
ValidateConfig validate config in bare-metal mode.
Types ¶
type BareMetalClusterConfig ¶
type BareMetalClusterConfig struct { Cluster *BareMetalClusterComponentsConfig `yaml:"cluster" validate:"required"` Etcd *Etcd `yaml:"etcd" validate:"required"` }
BareMetalClusterConfig is the desired state of a GreptimeDB cluster on bare metal.
The field of BareMetalClusterConfig that with `validate` tag will be validated against its requirement. Each filed has only one requirement.
Each field of BareMetalClusterConfig can also have its own exported method `Validate`.
func DefaultBareMetalConfig ¶
func DefaultBareMetalConfig() *BareMetalClusterConfig
type BareMetalClusterMetadata ¶
type BareMetalClusterMetadata struct { Config *BareMetalClusterConfig `yaml:"config"` CreationDate time.Time `yaml:"creationDate"` ClusterDir string `yaml:"clusterDir"` ForegroundPid int `yaml:"foregroundPid"` }
BareMetalClusterMetadata stores metadata of a GreptimeDB cluster.
type Datanode ¶
type Datanode struct { NodeID int `yaml:"nodeID" validate:"gte=0"` RPCAddr string `yaml:"rpcAddr" validate:"required,hostname_port"` HTTPAddr string `yaml:"httpAddr" validate:"required,hostname_port"` DataDir string `yaml:"dataDir" validate:"omitempty,dirpath"` WalDir string `yaml:"walDir" validate:"omitempty,dirpath"` ProcedureDir string `yaml:"procedureDir" validate:"omitempty,dirpath"` Replicas int `yaml:"replicas" validate:"gt=0"` Config string `yaml:"config" validate:"omitempty,filepath"` LogLevel string `yaml:"logLevel"` }
type Frontend ¶
type Frontend struct { GRPCAddr string `yaml:"grpcAddr" validate:"omitempty,hostname_port"` HTTPAddr string `yaml:"httpAddr" validate:"omitempty,hostname_port"` PostgresAddr string `yaml:"postgresAddr" validate:"omitempty,hostname_port"` MetaAddr string `yaml:"metaAddr" validate:"omitempty,hostname_port"` MysqlAddr string `yaml:"mysqlAddr" validate:"omitempty,hostname_port"` OpentsdbAddr string `yaml:"opentsdbAddr" validate:"omitempty,hostname_port"` Replicas int `yaml:"replicas" validate:"gt=0"` Config string `yaml:"config" validate:"omitempty,filepath"` LogLevel string `yaml:"logLevel"` }
type MetaSrv ¶
type MetaSrv struct { StoreAddr string `yaml:"storeAddr" validate:"hostname_port"` ServerAddr string `yaml:"serverAddr" validate:"hostname_port"` BindAddr string `yaml:"bindAddr" validate:"omitempty,hostname_port"` HTTPAddr string `yaml:"httpAddr" validate:"required,hostname_port"` Replicas int `yaml:"replicas" validate:"gt=0"` Config string `yaml:"config" validate:"omitempty,filepath"` LogLevel string `yaml:"logLevel"` }
Click to show internal directories.
Click to hide internal directories.