Versions in this module Expand all Collapse all v0 v0.1.2 May 11, 2015 Changes in this version type PathMap + CaseSensitive bool v0.1.1 May 2, 2015 Changes in this version + func TestBackendRoutes(t *testing.T, b *Backend, rs []string) v0.1.0 Apr 28, 2015 Changes in this version + const WALPrefix + func DeleteWAL(s logical.Storage, id string) error + func ListWAL(s logical.Storage) ([]string, error) + func PutWAL(s logical.Storage, kind string, data interface{}) (string, error) + type Backend struct + AuthRenew OperationFunc + Help string + Paths []*Path + PathsSpecial *logical.Paths + Rollback RollbackFunc + RollbackMinAge time.Duration + Secrets []*Secret + func (b *Backend) HandleRequest(req *logical.Request) (*logical.Response, error) + func (b *Backend) Logger() *log.Logger + func (b *Backend) Route(path string) *Path + func (b *Backend) Secret(k string) *Secret + func (b *Backend) SetLogger(logger *log.Logger) + func (b *Backend) SpecialPaths() *logical.Paths + type FieldData struct + Raw map[string]interface{} + Schema map[string]*FieldSchema + func (d *FieldData) Get(k string) interface{} + func (d *FieldData) GetOk(k string) (interface{}, bool) + func (d *FieldData) GetOkErr(k string) (interface{}, bool, error) + type FieldSchema struct + Default interface{} + Description string + Type FieldType + func (s *FieldSchema) DefaultOrZero() interface{} + type FieldType uint + const TypeBool + const TypeInt + const TypeInvalid + const TypeMap + const TypeString + func (t FieldType) String() string + func (t FieldType) Zero() interface{} + type OperationFunc func(*logical.Request, *FieldData) (*logical.Response, error) + func LeaseExtend(max, maxSession time.Duration) OperationFunc + type Path struct + Callbacks map[logical.Operation]OperationFunc + Fields map[string]*FieldSchema + HelpDescription string + HelpSynopsis string + Pattern string + func PathAppend(paths ...[]*Path) []*Path + type PathMap struct + Name string + Prefix string + Schema map[string]*FieldSchema + func (p *PathMap) Get(s logical.Storage, k string) (map[string]interface{}, error) + func (p *PathMap) List(s logical.Storage, prefix string) ([]string, error) + func (p *PathMap) Paths() []*Path + func (p *PathMap) Put(s logical.Storage, k string, v map[string]interface{}) error + type PathStruct struct + HelpDescription string + HelpSynopsis string + Name string + Path string + Read bool + Schema map[string]*FieldSchema + func (p *PathStruct) Get(s logical.Storage) (map[string]interface{}, error) + func (p *PathStruct) Paths() []*Path + func (p *PathStruct) Put(s logical.Storage, v map[string]interface{}) error + type PolicyMap struct + DefaultKey string + PolicyKey string + func (p *PolicyMap) Policies(s logical.Storage, names ...string) ([]string, error) + type RollbackFunc func(*logical.Request, string, interface{}) error + type Secret struct + DefaultDuration time.Duration + DefaultGracePeriod time.Duration + Fields map[string]*FieldSchema + Renew OperationFunc + Revoke OperationFunc + Type string + func (s *Secret) HandleRenew(req *logical.Request) (*logical.Response, error) + func (s *Secret) HandleRevoke(req *logical.Request) (*logical.Response, error) + func (s *Secret) Renewable() bool + func (s *Secret) Response(data, internal map[string]interface{}) *logical.Response + type WALEntry struct + CreatedAt int64 + Data interface{} + ID string + Kind string + func GetWAL(s logical.Storage, id string) (*WALEntry, error)