stellar: github.com/ehazlett/stellar Index | Files | Directories

package stellar

import "github.com/ehazlett/stellar"

Index

Package Files

config.go containerd.go proto.go stellar.go

Constants

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"
)

func DefaultContainerd Uses

func DefaultContainerd(addr, namespace string) (*containerd.Client, error)

type Config Uses

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 Uses

func (c *Config) MarshalJSON() ([]byte, error)

MarshalJSON is a custom json marshaller for better ux

func (*Config) UnmarshalJSON Uses

func (c *Config) UnmarshalJSON(data []byte) error

UnmarshalJSON is a custom json unmarshaller for better ux

Directories

PathSynopsis
api/services/application/v1Package application is a generated protocol buffer package.
api/services/cluster/v1Package cluster is a generated protocol buffer package.
api/services/datastore/v1Package datastore is a generated protocol buffer package.
api/services/events/v1Package events is a generated protocol buffer package.
api/services/health/v1Package health is a generated protocol buffer package.
api/services/nameserver/v1Package nameserver is a generated protocol buffer package.
api/services/network/v1Package network is a generated protocol buffer package.
api/services/node/v1Package node is a generated protocol buffer package.
api/services/proxy/v1Package proxy is a generated protocol buffer package.
api/services/version/v1Package version is a generated protocol buffer package.
api/types
client
events
server
services
services/application
services/cluster
services/datastore
services/events
services/gateway
services/health
services/nameserver
services/network
services/node
services/proxy
services/version
version

Package stellar imports 6 packages (graph) and is imported by 12 packages. Updated 2018-11-09. Refresh now. Tools for package owners.