Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterConfig ¶
type ClusterConfig struct { Key string `json:"key"` Name string `json:"name"` SelfRegister bool `json:"selfregister"` }
func GenerateCluster ¶
func GenerateCluster(name string, selfreg bool) (*ClusterConfig, error)
type Configer ¶
type Configer interface { Cluster() (*ClusterConfig, error) UpdateCluster(ClusterConfig) (*ClusterConfig, error) ClusterConfig() (NewClusterConfig, Stop, error) Zones() ([]string, error) CreateZone(zone string) error DropZone(zone string) error PutGateway(zone string, gw Gateway) error GetGateway(zone string) (*Gateway, error) Gateway(zone string) (NewGateway, Stop, error) }
type Gateway ¶
type Gateway struct { DefaultHost string `json:"defaulthost"` Force2FA bool `json:"force2fa"` HostKey string `json:"hostkey"` LogLevel string `json:"loglevel"` CheckAllow bool `json:"checkAllow"` MaxAutologin2FA int `json:"maxautologin2fa"` AllowedCidrs []string `json:"allowedcidrs"` DeniedCidrs []string `json:"deniedcidrs"` AllowDeny bool `json:"allowdeny"` }
func GenerateGateway ¶
type NewClusterConfig ¶
type NewClusterConfig <-chan ClusterConfig
type NewGateway ¶
type NewGateway <-chan Gateway
Click to show internal directories.
Click to hide internal directories.