Versions in this module Expand all Collapse all v0 v0.9.3 Jan 28, 2018 v0.9.2 Jan 26, 2018 Changes in this version + const ErrTypeCodedError + const ErrTypeInternalError + const ErrTypeInvalidRequest + const ErrTypeMultiAuthzPending + const ErrTypePermissionDenied + const ErrTypeStatusBadRequest + const ErrTypeUnknown + const ErrTypeUnsupportedOperation + const ErrTypeUnsupportedPath + const ErrTypeUserError + func ErrToString(e error) string + func ProtoAliasToLogicalAlias(a *Alias) *logical.Alias + func ProtoAuthToLogicalAuth(a *Auth) (*logical.Auth, error) + func ProtoErrToErr(e *ProtoError) error + func ProtoLeaseOptionsToLogicalLeaseOptions(l *LeaseOptions) (logical.LeaseOptions, error) + func ProtoRequestToLogicalRequest(r *Request) (*logical.Request, error) + func ProtoRequestWrapInfoToLogicalRequestWrapInfo(i *RequestWrapInfo) *logical.RequestWrapInfo + func ProtoResponseToLogicalResponse(r *Response) (*logical.Response, error) + func ProtoResponseWrapInfoToLogicalResponseWrapInfo(i *ResponseWrapInfo) (*wrapping.ResponseWrapInfo, error) + func ProtoSecretToLogicalSecret(s *Secret) (*logical.Secret, error) + func ProtoStorageEntryToLogicalStorageEntry(e *StorageEntry) *logical.StorageEntry + func RegisterBackendServer(s *grpc.Server, srv BackendServer) + func RegisterStorageServer(s *grpc.Server, srv StorageServer) + func RegisterSystemViewServer(s *grpc.Server, srv SystemViewServer) + type Alias struct + MountAccessor string + MountType string + Name string + func LogicalAliasToProtoAlias(a *logical.Alias) *Alias + func (*Alias) Descriptor() ([]byte, []int) + func (*Alias) ProtoMessage() + func (m *Alias) GetMountAccessor() string + func (m *Alias) GetMountType() string + func (m *Alias) GetName() string + func (m *Alias) Reset() + func (m *Alias) String() string + type Auth struct + Accessor string + Alias *Alias + ClientToken string + DisplayName string + EntityID string + GroupAliases []*Alias + InternalData string + LeaseOptions *LeaseOptions + Metadata map[string]string + NumUses int64 + Period int64 + Policies []string + func LogicalAuthToProtoAuth(a *logical.Auth) (*Auth, error) + func (*Auth) Descriptor() ([]byte, []int) + func (*Auth) ProtoMessage() + func (m *Auth) GetAccessor() string + func (m *Auth) GetAlias() *Alias + func (m *Auth) GetClientToken() string + func (m *Auth) GetDisplayName() string + func (m *Auth) GetEntityID() string + func (m *Auth) GetGroupAliases() []*Alias + func (m *Auth) GetInternalData() string + func (m *Auth) GetLeaseOptions() *LeaseOptions + func (m *Auth) GetMetadata() map[string]string + func (m *Auth) GetNumUses() int64 + func (m *Auth) GetPeriod() int64 + func (m *Auth) GetPolicies() []string + func (m *Auth) Reset() + func (m *Auth) String() string + type BackendClient interface + Cleanup func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) + HandleExistenceCheck func(ctx context.Context, in *HandleExistenceCheckArgs, opts ...grpc.CallOption) (*HandleExistenceCheckReply, error) + HandleRequest func(ctx context.Context, in *HandleRequestArgs, opts ...grpc.CallOption) (*HandleRequestReply, error) + InvalidateKey func(ctx context.Context, in *InvalidateKeyArgs, opts ...grpc.CallOption) (*Empty, error) + Setup func(ctx context.Context, in *SetupArgs, opts ...grpc.CallOption) (*SetupReply, error) + SpecialPaths func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SpecialPathsReply, error) + Type func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeReply, error) + func NewBackendClient(cc *grpc.ClientConn) BackendClient + type BackendServer interface + Cleanup func(context.Context, *Empty) (*Empty, error) + HandleExistenceCheck func(context.Context, *HandleExistenceCheckArgs) (*HandleExistenceCheckReply, error) + HandleRequest func(context.Context, *HandleRequestArgs) (*HandleRequestReply, error) + InvalidateKey func(context.Context, *InvalidateKeyArgs) (*Empty, error) + Setup func(context.Context, *SetupArgs) (*SetupReply, error) + SpecialPaths func(context.Context, *Empty) (*SpecialPathsReply, error) + Type func(context.Context, *Empty) (*TypeReply, error) + type CachingDisabledReply struct + Disabled bool + func (*CachingDisabledReply) Descriptor() ([]byte, []int) + func (*CachingDisabledReply) ProtoMessage() + func (m *CachingDisabledReply) GetDisabled() bool + func (m *CachingDisabledReply) Reset() + func (m *CachingDisabledReply) String() string + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (m *Empty) Reset() + func (m *Empty) String() string + type HandleExistenceCheckArgs struct + Request *Request + StorageID uint32 + func (*HandleExistenceCheckArgs) Descriptor() ([]byte, []int) + func (*HandleExistenceCheckArgs) ProtoMessage() + func (m *HandleExistenceCheckArgs) GetRequest() *Request + func (m *HandleExistenceCheckArgs) GetStorageID() uint32 + func (m *HandleExistenceCheckArgs) Reset() + func (m *HandleExistenceCheckArgs) String() string + type HandleExistenceCheckReply struct + CheckFound bool + Err *ProtoError + Exists bool + func (*HandleExistenceCheckReply) Descriptor() ([]byte, []int) + func (*HandleExistenceCheckReply) ProtoMessage() + func (m *HandleExistenceCheckReply) GetCheckFound() bool + func (m *HandleExistenceCheckReply) GetErr() *ProtoError + func (m *HandleExistenceCheckReply) GetExists() bool + func (m *HandleExistenceCheckReply) Reset() + func (m *HandleExistenceCheckReply) String() string + type HandleRequestArgs struct + Request *Request + StorageID uint32 + func (*HandleRequestArgs) Descriptor() ([]byte, []int) + func (*HandleRequestArgs) ProtoMessage() + func (m *HandleRequestArgs) GetRequest() *Request + func (m *HandleRequestArgs) GetStorageID() uint32 + func (m *HandleRequestArgs) Reset() + func (m *HandleRequestArgs) String() string + type HandleRequestReply struct + Err *ProtoError + Response *Response + func (*HandleRequestReply) Descriptor() ([]byte, []int) + func (*HandleRequestReply) ProtoMessage() + func (m *HandleRequestReply) GetErr() *ProtoError + func (m *HandleRequestReply) GetResponse() *Response + func (m *HandleRequestReply) Reset() + func (m *HandleRequestReply) String() string + type Header struct + Header []string + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (m *Header) GetHeader() []string + func (m *Header) Reset() + func (m *Header) String() string + type InvalidateKeyArgs struct + Key string + func (*InvalidateKeyArgs) Descriptor() ([]byte, []int) + func (*InvalidateKeyArgs) ProtoMessage() + func (m *InvalidateKeyArgs) GetKey() string + func (m *InvalidateKeyArgs) Reset() + func (m *InvalidateKeyArgs) String() string + type LeaseOptions struct + Increment int64 + IssueTime *google_protobuf.Timestamp + Renewable bool + TTL int64 + func LogicalLeaseOptionsToProtoLeaseOptions(l logical.LeaseOptions) (*LeaseOptions, error) + func (*LeaseOptions) Descriptor() ([]byte, []int) + func (*LeaseOptions) ProtoMessage() + func (m *LeaseOptions) GetIncrement() int64 + func (m *LeaseOptions) GetIssueTime() *google_protobuf.Timestamp + func (m *LeaseOptions) GetRenewable() bool + func (m *LeaseOptions) GetTTL() int64 + func (m *LeaseOptions) Reset() + func (m *LeaseOptions) String() string + type MlockEnabledReply struct + Enabled bool + func (*MlockEnabledReply) Descriptor() ([]byte, []int) + func (*MlockEnabledReply) ProtoMessage() + func (m *MlockEnabledReply) GetEnabled() bool + func (m *MlockEnabledReply) Reset() + func (m *MlockEnabledReply) String() string + type Paths struct + LocalStorage []string + Root []string + SealWrapStorage []string + Unauthenticated []string + func (*Paths) Descriptor() ([]byte, []int) + func (*Paths) ProtoMessage() + func (m *Paths) GetLocalStorage() []string + func (m *Paths) GetRoot() []string + func (m *Paths) GetSealWrapStorage() []string + func (m *Paths) GetUnauthenticated() []string + func (m *Paths) Reset() + func (m *Paths) String() string + type ProtoError struct + ErrCode int64 + ErrMsg string + ErrType uint32 + func ErrToProtoErr(e error) *ProtoError + func (*ProtoError) Descriptor() ([]byte, []int) + func (*ProtoError) ProtoMessage() + func (m *ProtoError) GetErrCode() int64 + func (m *ProtoError) GetErrMsg() string + func (m *ProtoError) GetErrType() uint32 + func (m *ProtoError) Reset() + func (m *ProtoError) String() string + type ReplicationStateReply struct + State int32 + func (*ReplicationStateReply) Descriptor() ([]byte, []int) + func (*ReplicationStateReply) ProtoMessage() + func (m *ReplicationStateReply) GetState() int32 + func (m *ReplicationStateReply) Reset() + func (m *ReplicationStateReply) String() string + type Request struct + Auth *Auth + ClientToken string + ClientTokenAccessor string + ClientTokenRemainingUses int64 + Data string + DisplayName string + EntityID string + Headers map[string]*Header + ID string + MountAccessor string + MountPoint string + MountType string + Operation string + Path string + PolicyOverride bool + ReplicationCluster string + Secret *Secret + Unauthenticated bool + WrapInfo *RequestWrapInfo + func LogicalRequestToProtoRequest(r *logical.Request) (*Request, error) + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (m *Request) GetAuth() *Auth + func (m *Request) GetClientToken() string + func (m *Request) GetClientTokenAccessor() string + func (m *Request) GetClientTokenRemainingUses() int64 + func (m *Request) GetData() string + func (m *Request) GetDisplayName() string + func (m *Request) GetEntityID() string + func (m *Request) GetHeaders() map[string]*Header + func (m *Request) GetID() string + func (m *Request) GetMountAccessor() string + func (m *Request) GetMountPoint() string + func (m *Request) GetMountType() string + func (m *Request) GetOperation() string + func (m *Request) GetPath() string + func (m *Request) GetPolicyOverride() bool + func (m *Request) GetReplicationCluster() string + func (m *Request) GetSecret() *Secret + func (m *Request) GetUnauthenticated() bool + func (m *Request) GetWrapInfo() *RequestWrapInfo + func (m *Request) Reset() + func (m *Request) String() string + type RequestWrapInfo struct + Format string + SealWrap bool + TTL int64 + func LogicalRequestWrapInfoToProtoRequestWrapInfo(i *logical.RequestWrapInfo) *RequestWrapInfo + func (*RequestWrapInfo) Descriptor() ([]byte, []int) + func (*RequestWrapInfo) ProtoMessage() + func (m *RequestWrapInfo) GetFormat() string + func (m *RequestWrapInfo) GetSealWrap() bool + func (m *RequestWrapInfo) GetTTL() int64 + func (m *RequestWrapInfo) Reset() + func (m *RequestWrapInfo) String() string + type Response struct + Auth *Auth + Data string + Redirect string + Secret *Secret + Warnings []string + WrapInfo *ResponseWrapInfo + func LogicalResponseToProtoResponse(r *logical.Response) (*Response, error) + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (m *Response) GetAuth() *Auth + func (m *Response) GetData() string + func (m *Response) GetRedirect() string + func (m *Response) GetSecret() *Secret + func (m *Response) GetWarnings() []string + func (m *Response) GetWrapInfo() *ResponseWrapInfo + func (m *Response) Reset() + func (m *Response) String() string + type ResponseWrapDataArgs struct + Data string + JWT bool + TTL int64 + func (*ResponseWrapDataArgs) Descriptor() ([]byte, []int) + func (*ResponseWrapDataArgs) ProtoMessage() + func (m *ResponseWrapDataArgs) GetData() string + func (m *ResponseWrapDataArgs) GetJWT() bool + func (m *ResponseWrapDataArgs) GetTTL() int64 + func (m *ResponseWrapDataArgs) Reset() + func (m *ResponseWrapDataArgs) String() string + type ResponseWrapDataReply struct + Err string + WrapInfo *ResponseWrapInfo + func (*ResponseWrapDataReply) Descriptor() ([]byte, []int) + func (*ResponseWrapDataReply) ProtoMessage() + func (m *ResponseWrapDataReply) GetErr() string + func (m *ResponseWrapDataReply) GetWrapInfo() *ResponseWrapInfo + func (m *ResponseWrapDataReply) Reset() + func (m *ResponseWrapDataReply) String() string + type ResponseWrapInfo struct + Accessor string + CreationPath string + CreationTime *google_protobuf.Timestamp + Format string + SealWrap bool + TTL int64 + Token string + WrappedAccessor string + WrappedEntityID string + func LogicalResponseWrapInfoToProtoResponseWrapInfo(i *wrapping.ResponseWrapInfo) (*ResponseWrapInfo, error) + func (*ResponseWrapInfo) Descriptor() ([]byte, []int) + func (*ResponseWrapInfo) ProtoMessage() + func (m *ResponseWrapInfo) GetAccessor() string + func (m *ResponseWrapInfo) GetCreationPath() string + func (m *ResponseWrapInfo) GetCreationTime() *google_protobuf.Timestamp + func (m *ResponseWrapInfo) GetFormat() string + func (m *ResponseWrapInfo) GetSealWrap() bool + func (m *ResponseWrapInfo) GetTTL() int64 + func (m *ResponseWrapInfo) GetToken() string + func (m *ResponseWrapInfo) GetWrappedAccessor() string + func (m *ResponseWrapInfo) GetWrappedEntityID() string + func (m *ResponseWrapInfo) Reset() + func (m *ResponseWrapInfo) String() string + type Secret struct + InternalData string + LeaseID string + LeaseOptions *LeaseOptions + func LogicalSecretToProtoSecret(s *logical.Secret) (*Secret, error) + func (*Secret) Descriptor() ([]byte, []int) + func (*Secret) ProtoMessage() + func (m *Secret) GetInternalData() string + func (m *Secret) GetLeaseID() string + func (m *Secret) GetLeaseOptions() *LeaseOptions + func (m *Secret) Reset() + func (m *Secret) String() string + type SetupArgs struct + BrokerID uint32 + Config map[string]string + func (*SetupArgs) Descriptor() ([]byte, []int) + func (*SetupArgs) ProtoMessage() + func (m *SetupArgs) GetBrokerID() uint32 + func (m *SetupArgs) GetConfig() map[string]string + func (m *SetupArgs) Reset() + func (m *SetupArgs) String() string + type SetupReply struct + Err string + func (*SetupReply) Descriptor() ([]byte, []int) + func (*SetupReply) ProtoMessage() + func (m *SetupReply) GetErr() string + func (m *SetupReply) Reset() + func (m *SetupReply) String() string + type SpecialPathsReply struct + Paths *Paths + func (*SpecialPathsReply) Descriptor() ([]byte, []int) + func (*SpecialPathsReply) ProtoMessage() + func (m *SpecialPathsReply) GetPaths() *Paths + func (m *SpecialPathsReply) Reset() + func (m *SpecialPathsReply) String() string + type StorageClient interface + Delete func(ctx context.Context, in *StorageDeleteArgs, opts ...grpc.CallOption) (*StorageDeleteReply, error) + Get func(ctx context.Context, in *StorageGetArgs, opts ...grpc.CallOption) (*StorageGetReply, error) + List func(ctx context.Context, in *StorageListArgs, opts ...grpc.CallOption) (*StorageListReply, error) + Put func(ctx context.Context, in *StoragePutArgs, opts ...grpc.CallOption) (*StoragePutReply, error) + func NewStorageClient(cc *grpc.ClientConn) StorageClient + type StorageDeleteArgs struct + Key string + func (*StorageDeleteArgs) Descriptor() ([]byte, []int) + func (*StorageDeleteArgs) ProtoMessage() + func (m *StorageDeleteArgs) GetKey() string + func (m *StorageDeleteArgs) Reset() + func (m *StorageDeleteArgs) String() string + type StorageDeleteReply struct + Err string + func (*StorageDeleteReply) Descriptor() ([]byte, []int) + func (*StorageDeleteReply) ProtoMessage() + func (m *StorageDeleteReply) GetErr() string + func (m *StorageDeleteReply) Reset() + func (m *StorageDeleteReply) String() string + type StorageEntry struct + Key string + SealWrap bool + Value []byte + func LogicalStorageEntryToProtoStorageEntry(e *logical.StorageEntry) *StorageEntry + func (*StorageEntry) Descriptor() ([]byte, []int) + func (*StorageEntry) ProtoMessage() + func (m *StorageEntry) GetKey() string + func (m *StorageEntry) GetSealWrap() bool + func (m *StorageEntry) GetValue() []byte + func (m *StorageEntry) Reset() + func (m *StorageEntry) String() string + type StorageGetArgs struct + Key string + func (*StorageGetArgs) Descriptor() ([]byte, []int) + func (*StorageGetArgs) ProtoMessage() + func (m *StorageGetArgs) GetKey() string + func (m *StorageGetArgs) Reset() + func (m *StorageGetArgs) String() string + type StorageGetReply struct + Entry *StorageEntry + Err string + func (*StorageGetReply) Descriptor() ([]byte, []int) + func (*StorageGetReply) ProtoMessage() + func (m *StorageGetReply) GetEntry() *StorageEntry + func (m *StorageGetReply) GetErr() string + func (m *StorageGetReply) Reset() + func (m *StorageGetReply) String() string + type StorageListArgs struct + Prefix string + func (*StorageListArgs) Descriptor() ([]byte, []int) + func (*StorageListArgs) ProtoMessage() + func (m *StorageListArgs) GetPrefix() string + func (m *StorageListArgs) Reset() + func (m *StorageListArgs) String() string + type StorageListReply struct + Err string + Keys []string + func (*StorageListReply) Descriptor() ([]byte, []int) + func (*StorageListReply) ProtoMessage() + func (m *StorageListReply) GetErr() string + func (m *StorageListReply) GetKeys() []string + func (m *StorageListReply) Reset() + func (m *StorageListReply) String() string + type StoragePutArgs struct + Entry *StorageEntry + func (*StoragePutArgs) Descriptor() ([]byte, []int) + func (*StoragePutArgs) ProtoMessage() + func (m *StoragePutArgs) GetEntry() *StorageEntry + func (m *StoragePutArgs) Reset() + func (m *StoragePutArgs) String() string + type StoragePutReply struct + Err string + func (*StoragePutReply) Descriptor() ([]byte, []int) + func (*StoragePutReply) ProtoMessage() + func (m *StoragePutReply) GetErr() string + func (m *StoragePutReply) Reset() + func (m *StoragePutReply) String() string + type StorageServer interface + Delete func(context.Context, *StorageDeleteArgs) (*StorageDeleteReply, error) + Get func(context.Context, *StorageGetArgs) (*StorageGetReply, error) + List func(context.Context, *StorageListArgs) (*StorageListReply, error) + Put func(context.Context, *StoragePutArgs) (*StoragePutReply, error) + type SudoPrivilegeArgs struct + Path string + Token string + func (*SudoPrivilegeArgs) Descriptor() ([]byte, []int) + func (*SudoPrivilegeArgs) ProtoMessage() + func (m *SudoPrivilegeArgs) GetPath() string + func (m *SudoPrivilegeArgs) GetToken() string + func (m *SudoPrivilegeArgs) Reset() + func (m *SudoPrivilegeArgs) String() string + type SudoPrivilegeReply struct + Sudo bool + func (*SudoPrivilegeReply) Descriptor() ([]byte, []int) + func (*SudoPrivilegeReply) ProtoMessage() + func (m *SudoPrivilegeReply) GetSudo() bool + func (m *SudoPrivilegeReply) Reset() + func (m *SudoPrivilegeReply) String() string + type SystemViewClient interface + CachingDisabled func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CachingDisabledReply, error) + DefaultLeaseTTL func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error) + MaxLeaseTTL func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error) + MlockEnabled func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MlockEnabledReply, error) + ReplicationState func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReplicationStateReply, error) + ResponseWrapData func(ctx context.Context, in *ResponseWrapDataArgs, opts ...grpc.CallOption) (*ResponseWrapDataReply, error) + SudoPrivilege func(ctx context.Context, in *SudoPrivilegeArgs, opts ...grpc.CallOption) (*SudoPrivilegeReply, error) + Tainted func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TaintedReply, error) + func NewSystemViewClient(cc *grpc.ClientConn) SystemViewClient + type SystemViewServer interface + CachingDisabled func(context.Context, *Empty) (*CachingDisabledReply, error) + DefaultLeaseTTL func(context.Context, *Empty) (*TTLReply, error) + MaxLeaseTTL func(context.Context, *Empty) (*TTLReply, error) + MlockEnabled func(context.Context, *Empty) (*MlockEnabledReply, error) + ReplicationState func(context.Context, *Empty) (*ReplicationStateReply, error) + ResponseWrapData func(context.Context, *ResponseWrapDataArgs) (*ResponseWrapDataReply, error) + SudoPrivilege func(context.Context, *SudoPrivilegeArgs) (*SudoPrivilegeReply, error) + Tainted func(context.Context, *Empty) (*TaintedReply, error) + type TTLReply struct + TTL int64 + func (*TTLReply) Descriptor() ([]byte, []int) + func (*TTLReply) ProtoMessage() + func (m *TTLReply) GetTTL() int64 + func (m *TTLReply) Reset() + func (m *TTLReply) String() string + type TaintedReply struct + Tainted bool + func (*TaintedReply) Descriptor() ([]byte, []int) + func (*TaintedReply) ProtoMessage() + func (m *TaintedReply) GetTainted() bool + func (m *TaintedReply) Reset() + func (m *TaintedReply) String() string + type TypeReply struct + Type uint32 + func (*TypeReply) Descriptor() ([]byte, []int) + func (*TypeReply) ProtoMessage() + func (m *TypeReply) GetType() uint32 + func (m *TypeReply) Reset() + func (m *TypeReply) String() string