Documentation
¶
Index ¶
Constants ¶
DNSExpireMin and DNSExpireMax bound cluster.dns_expire: the expiry outlasts a refresh and a retry of the nameservers, 60s and 5s, else they drop their copy between two transfers, and fits the 32 bits of the SOA.
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"`
// DNSExpire is the expiry the SOA of the cluster zones says: how
// long a secondary answers from its copy of a zone without its
// primary.
DNSExpire time.Duration `json:"dns_expire"`
// DNSZone is the apex of the cluster zone, under which the
// cluster nameservers publish the objects, the cluster name when
// empty: the Zone method says it.
DNSZone string `json:"dns_zone"`
// DNSContact is the mailbox of the people in charge of the
// cluster zones, which their SOA names, empty for the hostmaster
// of the zone.
DNSContact string `json:"dns_contact"`
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"`
// DNSAddr and DNSPort are where the daemon serves the cluster
// zones to the nameserver of the node, by zone transfer.
DNSAddr string `json:"dns_addr"`
DNSPort int `json:"dns_port"`
// DNSNotifyPort is the port the nameserver of the node listens
// on, which the daemon notifies of each change of a zone.
DNSNotifyPort int `json:"dns_notify_port"`
// DNSUID is the uid of the nameserver of the node, the user
// allowed to query the zones the daemon serves, beside root.
DNSUID int `json:"dns_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"`
}