Documentation ¶
Index ¶
Constants ¶
const ( APIAuthBackendGitLab = "gitlab" APIAuthBackendNone = "none" APIAuthBackendLDAP = "ldap" )
API server authz backends.
const ( ZKAuthSchemeDigest = "digest" ZKAuthSchemeWorld = "world" )
ZooKeeper authn methods.
const ( SecretsBackendVault = "vault" SecretsBackendNone = "none" )
Secrets backends.
const ( MesosAuthTypeBasic = "basic" MesosAuthTypeNone = "none" )
Mesos authn schemes.
const ( LoggingBackendNone = "none" LoggingBackendSentry = "sentry" )
Logging backends.
const ( LoggingLevelDebug = "debug" LoggingLevelInfo = "info" LoggingLevelWarn = "warn" LoggingLevelError = "error" )
Logging levels.
const CoordinatorBackendZK = "zookeeper"
CoordinatorBackendZK denotes ZooKeeper coordinator backend.
const StorageBackendZK = "zookeeper"
StorageBackendZK denotes ZooKeeper storage backend.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAuth ¶
type APIAuth struct { Backend string GitLab APIAuthGitLab LDAP APIAuthLDAP }
APIAuth defines API server authz options.
type APIAuthGitLab ¶
APIAuthGitLab defines options of GitLab authz backend.
type APIAuthLDAP ¶
type APIAuthLDAP struct { Addrs []string UserDN string UserAttr string CACert string UserACL map[string]map[string]string GroupACL map[string]map[string]string BindDN string BindPassword string Timeout time.Duration GroupFilter string GroupDN string GroupAttr string CaseSensitiveNames bool }
APIAuthLDAP defines options of LDAP authz backend.
type Conf ¶
type Conf struct { API API Storage Storage Coordinator Coordinator Secrets Secrets Mesos Mesos Logging Logging }
Conf defines server options.
type Coordinator ¶
type Coordinator struct { Backend string ZooKeeper CoordinatorZK }
Coordinator defines server coordinator options.
type CoordinatorZK ¶
type CoordinatorZK struct { Dir string Addrs []string Timeout time.Duration Auth ZKAuth ElectionDir string }
CoordinatorZK defines ZooKeeper coordinator backend options.
type Logging ¶
type Logging struct { Level string Backend string Sentry LoggingSentry }
Logging defines server logging options.
type LoggingSentry ¶
LoggingSentry defines Sentry logging backend options.
type Mesos ¶
type Mesos struct { Auth MesosAuth Addrs []string CACert string Checkpoint bool FailoverTimeout time.Duration Hostname string User string WebUIURL string Principal string Labels map[string]string Roles []string LogAllEvents bool }
Mesos defines Mesos-related options.
type MesosAuth ¶
type MesosAuth struct { Type string Basic MesosAuthBasic }
MesosAuth defines Mesos authn options.
type MesosAuthBasic ¶
MesosAuthBasic defines options of Mesos' basic authn method.
type Secrets ¶
type Secrets struct { Backend string Vault SecretsVault }
Secrets defines server secrets options.
type SecretsVault ¶
type SecretsVault struct { Token string Addr string Timeout time.Duration Root string CACert string }
SecretsVault defines Vault secrets backend options.
type StorageZK ¶
type StorageZK struct { Dir string Addrs []string Timeout time.Duration Auth ZKAuth TaskTTL time.Duration }
StorageZK defines ZooKeeper storage backend options.
type ZKAuth ¶
type ZKAuth struct { Scheme string Digest ZKAuthDigest }
ZKAuth defines ZooKeeper authn options.
type ZKAuthDigest ¶
ZKAuthDigest defines options of ZooKeeper's digest authn scheme.