handler

package
v0.0.0-...-cadb033 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty(rw web.ResponseWriter, req *web.Request)

Types

type AuthRequest

type AuthRequest struct {
	Account string
	Type    string
	Name    string
	Service string
	Actions []string
}

type ResourceActions

type ResourceActions []*token.ResourceActions

type RunningContext

type RunningContext struct {
	TokenAuth *TokenAuth
	Acl       acl.Driver
}

type ShareWebContext

type ShareWebContext struct {
}

type TokenAuth

type TokenAuth struct {
	Issuer     string
	Service    string
	Expiration int64
	// contains filtered or unexported fields
}

func (*TokenAuth) LoadCertAndKey

func (t *TokenAuth) LoadCertAndKey(certFile, keyFile string) error

func (*TokenAuth) Verify

func (t *TokenAuth) Verify(rawToken string, fn func(access ResourceActions) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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