Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Issues []string `json:"issues"`
ID string `json:"id"`
Name string `json:"name"`
Nodes Nodes `json:"nodes"`
DNS []string `json:"dns"`
DNSReverse bool `json:"dns_reverse"`
CASecPaths []string `json:"ca_sec_paths"`
Listener ConfigListener `json:"listener"`
AI ConfigAI `json:"ai"`
Quorum bool `json:"quorum"`
// UXGroups are the grants of the members of a unix group
// connected to the user socket, by group name, as the
// [uxgroup#<group>] sections say them for this node.
UXGroups map[string][]string `json:"ux_groups"`
// contains filtered or unexported fields
}
Config describes the cluster id, name and nodes The cluster name is used as the right most part of cluster dns names.
func (*Config) SSHKeyFile ¶
SSHKeyFile returns the configured SSH key file path and a boolean indicating if the file exists and is regular.
func (*Config) SetSSHKeyFile ¶
type ConfigAI ¶
type ConfigAI struct {
// AgentURL is the origin of the OpenSVC AI agent om3-webapp
// calls, none when empty.
AgentURL string `json:"agent_url"`
}
ConfigAI is the [ai] section of the cluster configuration.
type ConfigListener ¶
type ConfigListener struct {
CRL string `json:"crl"`
Addr string `json:"addr"`
Port int `json:"port"`
OpenIDIssuer string `json:"openid_issuer"`
OpenIDClientID string `json:"openid_client_id"`
DNSSockGID string `json:"dns_sock_gid"`
DNSSockUID string `json:"dns_sock_uid"`
RateLimiter RateLimiterConfig `json:"rate_limiter"`
// TLSSecs are the secs whose certificates the listener presents
// to the clients asking one of their names.
TLSSecs []string `json:"tls_secs"`
// ACMEPort is the port the listener answers the http-01 ACME
// challenges on, none when zero.
ACMEPort int `json:"acme_port"`
// UXOwnerGroup is the group owning the user socket, whose
// members reach the api as themselves. Empty, the node serves
// no user socket.
UXOwnerGroup string `json:"ux_owner_group"`
// PublicMetrics serves /metrics with no authentication. The
// detail pages, /metrics/<subsystem>, stay protected.
PublicMetrics bool `json:"public_metrics"`
// VsockPort is the vsock port the api is served on, for the
// hypervisor of the node, none when zero.
VsockPort int `json:"vsock_port"`
}