http

package
v0.25.2-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatekeeper

type Gatekeeper struct {
	// contains filtered or unexported fields
}

Gatekeeper exposes an HTTP interface over a normal TCP socket. It handles machine creation, for machines bootstrapped with `torus bootstrap`

func NewGatekeeper

func NewGatekeeper(org, team, certpath, keypath string, cfg *config.Config, api *api.Client) (*Gatekeeper, error)

NewGatekeeper returns a new Gatekeeper.

func (*Gatekeeper) Addr

func (g *Gatekeeper) Addr() string

Addr returns the address of the running Gatekeeper service

func (*Gatekeeper) Close

func (g *Gatekeeper) Close() error

Close gracefully stops the HTTP server

func (*Gatekeeper) Listen

func (g *Gatekeeper) Listen() error

Listen listens on a TCP port for HTTP machine requests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL