Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APIVersion is the version of the API APIVersion = "v1" // StellarNetworkLabel is the label to identify that a container should use stellar networking StellarNetworkLabel = "stellar.io/network" // StellarApplicationLabel is the label to identify that a container belongs to the stellar app StellarApplicationLabel = "stellar.io/application" StellarExtensionID = "stellar.io/extensions" StellarServiceExtension = StellarExtensionID + "/Service" )
Variables ¶
This section is empty.
Functions ¶
func DefaultContainerd ¶
func DefaultContainerd(addr, namespace string) (*containerd.Client, error)
Types ¶
type Config ¶
type Config struct {
// NodeID is the id of the node
NodeID string
// GRPCAddress is the address for the grpc server
GRPCAddress string
// TLSCertificate is the certificate used for grpc communication
TLSServerCertificate string
// TLSKey is the key used for grpc communication
TLSServerKey string
// TLSClientCertificate is the client certificate used for communication
TLSClientCertificate string
// TLSClientKey is the client key used for communication
TLSClientKey string
// TLSInsecureSkipVerify disables certificate verification
TLSInsecureSkipVerify bool
// AgentConfig is the element config for the server
AgentConfig *element.Config `json:"-"`
// ContainerdAddr is the address to the containerd socket
ContainerdAddr string
// Namespace is the containerd namespace to manage
Namespace string
// Subnet is the subnet to use for stellar networking
Subnet *net.IPNet
// DataDir is the directory used to store stellar data
DataDir string
// State is the directory to store run state
StateDir string
// Bridge is the name of the bridge for networking
Bridge string
// UpstreamDNSAddr is the address to use for external queries
UpstreamDNSAddr string
// ProxyHTTPPort is the http port to use for the proxy service
ProxyHTTPPort int
// ProxyHTTPSPort is the https port to use for the proxy service
ProxyHTTPSPort int
// ProxyTLSEmail is the email address used when requesting letsencrypt certs
ProxyTLSEmail string
// ProxyHealthcheckInterval is the interval used by the proxy service to check upstreams
ProxyHealthcheckInterval time.Duration
// GatewayAddress is the http addr to use for the http/json API
GatewayAddress string
// EventsAddress is the address for the events service
EventsAddress string
// EventsClusterAddress is the address for the events cluster service
EventsClusterAddress string
// EventsHTTPAddress is the management address for the events service
EventsHTTPAddress string
// CNIBinPaths are paths to search for CNI plugin binaries
CNIBinPaths []string
}
Config is the configuration used for the stellar server Note: in order to make user configuration from file a better user experience there is a custom marshal/unmarshal below. Those must be updated if fields are added or removed from `Config`.
func (*Config) MarshalJSON ¶ added in v0.2.0
MarshalJSON is a custom json marshaller for better ux
func (*Config) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON is a custom json unmarshaller for better ux
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
services/cluster/v1
Package cluster is a reverse proxy.
|
Package cluster is a reverse proxy. |
|
cmd
|
|
|
sctl
command
|
|
|
stellar
command
|
|
|
stellar-cni-ipam
command
|
|
Click to show internal directories.
Click to hide internal directories.