backend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend(conf *logical.BackendConfig) *backend

Backend returns a private embedded struct of framework.Backend.

func CodedError

func CodedError(status int, err error) *codedError

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new backend as logical.Backend.

Types

type Key

type Key struct {
	Expires   time.Time
	PublicPEM []byte
}

type PrivateKey

type PrivateKey struct {
	ID      string
	Expires time.Time
	DER     []byte
	// contains filtered or unexported fields
}

type Role

type Role struct {
	Overrides []byte
	Defaults  []byte
	Schema    []byte
	TTL       int
	// contains filtered or unexported fields
}

func (*Role) BuildClaims

func (r *Role) BuildClaims(claimsJSON []byte, jti string) (jwt.Claims, time.Time, error)

func (*Role) Validate

func (r *Role) Validate() error

Jump to

Keyboard shortcuts

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