Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoInterface is returned when no network interfaces with a real IP-address were found. ErrNoInterface = errors.New("No network interface found") )
Functions ¶
func LinkRequired ¶
LinkRequired returns true iff (re)linking to Flamenco Server is required.
Types ¶
type RestartFunction ¶
type RestartFunction func()
RestartFunction is called when a restart is requested via the web interface.
type Routes ¶
type Routes struct { RestartFunction func() // contains filtered or unexported fields }
Routes handles all HTTP routes and server-side context for the web setup wizard.
type ServerLinker ¶
type ServerLinker struct {
// contains filtered or unexported fields
}
ServerLinker manages linking this Manager to Flamenco Server
func StartLinking ¶
func StartLinking(upstreamURL string, localURL *url.URL) (*ServerLinker, error)
StartLinking starts the linking process by generating a secret key.
func (*ServerLinker) ExchangeKey ¶
func (linker *ServerLinker) ExchangeKey() error
ExchangeKey sends the locally generated key to Server and receives an identifier.
func (*ServerLinker) HasIdentifier ¶
func (linker *ServerLinker) HasIdentifier() bool
HasIdentifier returns true iff an identifier was received from Server.
func (*ServerLinker) HasManagerID ¶
func (linker *ServerLinker) HasManagerID() bool
HasManagerID returns true iff a Manager ID was received from Server.
type TemplateData ¶
type TemplateData map[string]interface{}
TemplateData is the mapping type we use to pass data to the template engine.
Click to show internal directories.
Click to hide internal directories.