Documentation ¶
Index ¶
- Constants
- type Admin
- type Armor
- func (a *Armor) AddPlugin(p plugin.Plugin)
- func (a *Armor) FindHost(name string, add bool) (h *Host)
- func (a *Armor) GetConfigForClient(clientHelloInfo *tls.ClientHelloInfo) (*tls.Config, error)
- func (a *Armor) LoadPlugin(p *store.Plugin, update bool)
- func (a *Armor) NewHTTP() (h *HTTP)
- func (a *Armor) SavePlugins()
- func (a *Armor) StartCluster()
- func (a *Armor) UpdatePlugin(plugin plugin.Plugin)
- type Cluster
- type HTTP
- type Host
- type Hosts
- type Path
- type Paths
- type Postgres
- type Storm
- type TLS
Constants ¶
View Source
const ( Version = "0.4.14" Website = "https://armor.labstack.com" )
View Source
const ( EventPluginLoad = "1" EventPluginUpdate = "2" )
Events
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Armor ¶
type Armor struct { Name string `json:"name"` Address string `json:"address"` Port string `json:"-"` TLS *TLS `json:"tls"` Admin *Admin `json:"admin"` Storm *Storm `json:"storm"` Postgres *Postgres `json:"postgres"` Cluster *Cluster `json:"cluster"` ReadTimeout time.Duration `json:"read_timeout"` WriteTimeout time.Duration `json:"write_timeout"` RawPlugins []plugin.RawPlugin `json:"plugins"` Hosts Hosts `json:"hosts"` RootDir string `json:"-"` Store store.Store `json:"-"` Plugins []plugin.Plugin `json:"-"` Echo *echo.Echo `json:"-"` Logger *log.Logger `json:"-"` Colorer *color.Color `json:"-"` DefaultConfig bool `json:"-"` // contains filtered or unexported fields }
func (*Armor) GetConfigForClient ¶ added in v0.4.14
GetConfigForClient implements the Config.GetClientCertificate callback
func (*Armor) LoadPlugin ¶ added in v0.4.12
func (*Armor) SavePlugins ¶ added in v0.4.12
func (a *Armor) SavePlugins()
func (*Armor) StartCluster ¶ added in v0.4.12
func (a *Armor) StartCluster()
func (*Armor) UpdatePlugin ¶ added in v0.4.12
type HTTP ¶ added in v0.4.12
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) CreateTunnel ¶ added in v0.4.12
func (h *HTTP) CreateTunnel()
type Host ¶
type Host struct { Name string `json:"-"` CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` RawPlugins []plugin.RawPlugin `json:"plugins"` Paths Paths `json:"paths"` Plugins []plugin.Plugin `json:"-"` Group *echo.Group `json:"-"` ClientCAs []string `json:"client_ca"` TLSConfig *tls.Config `json:"-"` // contains filtered or unexported fields }
func (*Host) UpdatePlugin ¶ added in v0.4.12
type Path ¶
type Path struct { Name string `json:"-"` RawPlugins []plugin.RawPlugin `json:"plugins"` Plugins []plugin.Plugin `json:"-"` Group *echo.Group `json:"-"` // contains filtered or unexported fields }
func (*Path) UpdatePlugin ¶ added in v0.4.12
type TLS ¶
type TLS struct { Address string `json:"address"` Port string `json:"-"` CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` Auto bool `json:"auto"` CacheDir string `json:"cache_dir"` Email string `json:"email"` DirectoryURL string `json:"directory_url"` Secured bool `json:"secured"` }
Click to show internal directories.
Click to hide internal directories.