Documentation
¶
Overview ¶
Package spec loads and validates cluster.yaml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Roles = []string{"frontend", "history", "matching", "worker"}
Roles are the Temporal services a node can run, in stage order: frontends start first, because every later gate reads the cluster through them.
Functions ¶
Types ¶
type Access ¶
type Access struct {
Clients []string `yaml:"clients"`
Monitors []string `yaml:"monitors"`
Admins []string `yaml:"admins"`
Healthchecks []string `yaml:"healthchecks"`
}
Access lists the sources allowed through each node's firewall.
type Cluster ¶
type Cluster struct {
Cluster string `yaml:"cluster"`
Temporal Temporal `yaml:"temporal"`
Shards int `yaml:"shards"`
Persistence Persistence `yaml:"persistence"`
SSH SSH `yaml:"ssh"`
Access Access `yaml:"access"`
Namespaces []Namespace `yaml:"namespaces"`
Nodes []Node `yaml:"nodes"`
// contains filtered or unexported fields
}
Cluster is the desired state of one Temporal cluster: the contents of cluster.yaml.
type Node ¶
type Node struct {
Name string `yaml:"name"`
Address string `yaml:"address"`
Roles []string `yaml:"roles"`
}
Node is one host running Temporal.
type Persistence ¶
type Persistence struct {
Postgres *Postgres `yaml:"postgres"`
}
Persistence names the datastore. Exactly one kind is set.
type Postgres ¶
type Postgres struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
TLS bool `yaml:"tls"`
AdminDatabase string `yaml:"adminDatabase"`
}
Postgres is how Temporal reaches its PostgreSQL server.
type Problem ¶
type Problem struct {
File string `json:"file,omitempty"`
Path string `json:"path"`
Line int `json:"line"`
Message string `json:"message"`
}
Problem is one thing wrong with a spec, named by its path and its line in the file.
type SSH ¶
type SSH struct {
User string `yaml:"user"`
Port int `yaml:"port"`
Key string `yaml:"key"`
KnownHosts string `yaml:"knownHosts"`
}
SSH is how tops reaches the nodes.
Click to show internal directories.
Click to hide internal directories.