api

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2015 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(config ApiConfig) (*Api, error)

func (*Api) Run

func (a *Api) Run() error

type ApiConfig

type ApiConfig struct {
	ListenAddr         string
	Manager            manager.Manager
	AuthWhiteListCIDRs []string
	EnableCORS         bool
	AllowInsecure      bool
	TLSCACertPath      string
	TLSCertPath        string
	TLSKeyPath         string
}

type Credentials

type Credentials struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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