server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfgFile, keyfile string) error

func Serve

func Serve(uri string)

Types

type GroupHandler added in v0.2.1

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

func NewGroupHandler added in v0.2.1

func NewGroupHandler() *GroupHandler

func (*GroupHandler) ServeHTTP added in v0.2.1

func (h *GroupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TokenHandler added in v0.2.1

type TokenHandler struct{}

func NewTokenHandler added in v0.2.1

func NewTokenHandler() *TokenHandler

func (*TokenHandler) ServeHTTP added in v0.2.1

func (h *TokenHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TokenRequest added in v0.2.0

type TokenRequest struct {
	Username string            `json:"username"`
	Password string            `json:"password"`
	Service  string            `json:"service"`
	Lifetime string            `json:"lifetime"`
	Labels   map[string]string `json:"labels"`
}

type UserData added in v0.2.2

type UserData struct {
	Username string   `json:"username"`
	Password string   `json:"password"`
	Groups   []string `json:"groups"`
}

type UserHandler added in v0.2.1

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

func NewUserHandler added in v0.2.1

func NewUserHandler() *UserHandler

func (*UserHandler) ServeHTTP added in v0.2.1

func (h *UserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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