Documentation
¶
Index ¶
Constants ¶
View Source
const ( ROOTDIR = "smr" CONFIGDIR = "config" CONTEXTDIR = "contexts" LOGDIR = "logs" SSHDIR = ".ssh" ROOTSMR = "smr" SMR_SSH_HOME = "/home/node/.ssh" )
Directory Constants
View Source
const ( SMR_PREFIX = "simplecontainer.io/v1" SMR_ENDPOINT_NAME = "node" SMR_NODE_DOMAIN = "node.private" SMR_LOCAL_DOMAIN = "private" )
SMR Config Constants
View Source
const ( PLATFORM_DOCKER = "docker" PLATFORM_MOCKER = "mocker" )
Platform Constants
View Source
const ( CATEGORY_KIND = "kind" CATEGORY_STATE = "state" CATEGORY_ETCD = "etcd" CATEGORY_PLAIN = "plain" CATEGORY_EVENT = "event" CATEGORY_SECRET = "secret" CATEGORY_DNS = "dns" CATEGORY_INVALID = "invalid" )
Category Constants
View Source
const ( SIGTERM = "SIGTERM" SIGKILL = "SIGKILL" )
Signal Constants
View Source
const ( KIND_NODE = "node" KIND_CONTAINERS = "containers" KIND_VOLUME = "volume" KIND_CONFIGURATION = "configuration" KIND_RESOURCE = "resource" KIND_CERTKEY = "certkey" KIND_HTTPAUTH = "httpauth" KIND_GITOPS = "gitops" KIND_NETWORK = "network" KIND_SECRET = "secret" KIND_CUSTOM = "custom" )
Kind Constants
View Source
const ( RESPONSE_SCHEDULED = "action accepted and scheduled for action" RESPONSE_APPLIED = "object is applied" RESPONSE_BAD_REQUEST = "request sent is invalid" RESPONSE_DELETED = "object is deleted" RESPONSE_RESTART = "object is restarted" RESPONSE_REFRESHED = "object is refreshed" RESPONSE_SYNCED = "object is synced" RESPONSE_NOT_FOUND = "object is not found" RESPONSE_INTERNAL_ERROR = "object action errored on the server" CLUSTER_STARTED = "cluster already started" CLUSTER_STARTED_OK = "cluster started" USER_NOT_FOUND = "user not found for remote agent" FLANNEL_START_FAILED = "flannel overlay network failed to start" )
Response Constants
View Source
const CLUSTER_NETWORK = "cluster"
Cluster Constants
View Source
const DEFAULT_LOG_LEVEL = "info"
Default Log Level
View Source
const REMOVE_KIND = "remove"
View Source
const STATE_KIND = "state"
State Constants
Variables ¶
View Source
var STRUCTURE = []string{ "config", "persistent", "persistent/smr", "persistent/etcd", SSHDIR, LOGDIR, CONTEXTDIR, }
Structure Paths
View Source
var STRUCTURE_CLIENT = []string{ CONFIGDIR, CONTEXTDIR, SSHDIR, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.