Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppProvider ¶
type AppProvider struct {
PType string
TypeConfig interface{}
Protected bool
Priority uint8
Apps map[string]*App
}
func NewAppProvider ¶
func NewAppProvider(name string, ptype string) (*AppProvider, error)
func (*AppProvider) RefreshApps ¶
func (ap *AppProvider) RefreshApps() error
type Docker ¶
type Docker struct {
Host string
Client *docker.Client
User string
Pass string
DefaultEnb bool
Swarm bool
}
//----- Models --->
func (*Docker) GetApps ¶
GetApps fetches all the containers visible fromthe provided Docker client It will however not provide any apps back where the enabled flag was false Returns a map of App formatted containers
func (*Docker) TestConnection ¶
TestConnection checks to see if the docker client can be communicated with via the given http client. This is done by checking the version Returns true if communication was possible
func (*Docker) UpgradeApp ¶
UpgradeApp takes an already existing app and replaces data with defined data an example use case is where you want to overwrite an apps info with the info from docker labels In this case (docker), match name should be the name of the container you want to use Returns true if returning a new suggested app name
type DockerConfig ¶
type DockerContainerConfig ¶
type DockerContainerInfo ¶
type DockerIndividualInfo ¶
type DockerIndividualInfo struct {
ID string `json:"Id"`
Name string `json:"Names"`
Config DockerContainerConfig `json:"Config"`
}
type Traefik ¶
type Traefik struct {
URL string
User string
Pass string
Dockers map[string]*Docker
Ignore []string
}
//----- Models --->
func (*Traefik) GetApps ¶
GetApps fetches all the routers visible fromthe provided traefik instance It will however not provide any apps back where the enabled flag was false if provided with a docker connection Returns a map of App formatted routers
func (*Traefik) TestConnection ¶
TestConnection checks to see if traefik can be communicated with via the given url. This is done by checking the version Returns true if communication was possible