vault: github.com/hashicorp/vault/sdk/plugin/pb Index | Files

package pb

import "github.com/hashicorp/vault/sdk/plugin/pb"

Index

Package Files

backend.pb.go translation.go

Constants

const (
    ErrTypeUnknown uint32 = iota
    ErrTypeUserError
    ErrTypeInternalError
    ErrTypeCodedError
    ErrTypeStatusBadRequest
    ErrTypeUnsupportedOperation
    ErrTypeUnsupportedPath
    ErrTypeInvalidRequest
    ErrTypePermissionDenied
    ErrTypeMultiAuthzPending
)

func ErrToString Uses

func ErrToString(e error) string

func ProtoAuthToLogicalAuth Uses

func ProtoAuthToLogicalAuth(a *Auth) (*logical.Auth, error)

func ProtoConnectionToLogicalConnection Uses

func ProtoConnectionToLogicalConnection(c *Connection) *logical.Connection

func ProtoErrToErr Uses

func ProtoErrToErr(e *ProtoError) error

func ProtoLeaseOptionsToLogicalLeaseOptions Uses

func ProtoLeaseOptionsToLogicalLeaseOptions(l *LeaseOptions) (logical.LeaseOptions, error)

func ProtoRequestToLogicalRequest Uses

func ProtoRequestToLogicalRequest(r *Request) (*logical.Request, error)

func ProtoRequestWrapInfoToLogicalRequestWrapInfo Uses

func ProtoRequestWrapInfoToLogicalRequestWrapInfo(i *RequestWrapInfo) *logical.RequestWrapInfo

func ProtoResponseToLogicalResponse Uses

func ProtoResponseToLogicalResponse(r *Response) (*logical.Response, error)

func ProtoResponseWrapInfoToLogicalResponseWrapInfo Uses

func ProtoResponseWrapInfoToLogicalResponseWrapInfo(i *ResponseWrapInfo) (*wrapping.ResponseWrapInfo, error)

func ProtoSecretToLogicalSecret Uses

func ProtoSecretToLogicalSecret(s *Secret) (*logical.Secret, error)

func ProtoStorageEntryToLogicalStorageEntry Uses

func ProtoStorageEntryToLogicalStorageEntry(e *StorageEntry) *logical.StorageEntry

func ProtoTokenEntryToLogicalTokenEntry Uses

func ProtoTokenEntryToLogicalTokenEntry(t *TokenEntry) (*logical.TokenEntry, error)

func RegisterBackendServer Uses

func RegisterBackendServer(s *grpc.Server, srv BackendServer)

func RegisterStorageServer Uses

func RegisterStorageServer(s *grpc.Server, srv StorageServer)

func RegisterSystemViewServer Uses

func RegisterSystemViewServer(s *grpc.Server, srv SystemViewServer)

type Auth Uses

type Auth struct {
    LeaseOptions *LeaseOptions `sentinel:"" protobuf:"bytes,1,opt,name=lease_options,json=leaseOptions,proto3" json:"lease_options,omitempty"`
    // InternalData is a JSON object that is stored with the auth struct.
    // This will be sent back during a Renew/Revoke for storing internal data
    // used for those operations.
    InternalData string `sentinel:"" protobuf:"bytes,2,opt,name=internal_data,json=internalData,proto3" json:"internal_data,omitempty"`
    // DisplayName is a non-security sensitive identifier that is
    // applicable to this Auth. It is used for logging and prefixing
    // of dynamic secrets. For example, DisplayName may be "armon" for
    // the github credential backend. If the client token is used to
    // generate a SQL credential, the user may be "github-armon-uuid".
    // This is to help identify the source without using audit tables.
    DisplayName string `sentinel:"" protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // Policies is the list of policies that the authenticated user
    // is associated with.
    Policies []string `sentinel:"" protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty"`
    // Metadata is used to attach arbitrary string-type metadata to
    // an authenticated user. This metadata will be outputted into the
    // audit log.
    Metadata map[string]string `sentinel:"" protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // ClientToken is the token that is generated for the authentication.
    // This will be filled in by Vault core when an auth structure is
    // returned. Setting this manually will have no effect.
    ClientToken string `sentinel:"" protobuf:"bytes,6,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"`
    // Accessor is the identifier for the ClientToken. This can be used
    // to perform management functionalities (especially revocation) when
    // ClientToken in the audit logs are obfuscated. Accessor can be used
    // to revoke a ClientToken and to lookup the capabilities of the ClientToken,
    // both without actually knowing the ClientToken.
    Accessor string `sentinel:"" protobuf:"bytes,7,opt,name=accessor,proto3" json:"accessor,omitempty"`
    // Period indicates that the token generated using this Auth object
    // should never expire. The token should be renewed within the duration
    // specified by this period.
    Period int64 `sentinel:"" protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`
    // Number of allowed uses of the issued token
    NumUses int64 `sentinel:"" protobuf:"varint,9,opt,name=num_uses,json=numUses,proto3" json:"num_uses,omitempty"`
    // EntityID is the identifier of the entity in identity store to which the
    // identity of the authenticating client belongs to.
    EntityID string `sentinel:"" protobuf:"bytes,10,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
    // Alias is the information about the authenticated client returned by
    // the auth backend
    Alias *logical.Alias `sentinel:"" protobuf:"bytes,11,opt,name=alias,proto3" json:"alias,omitempty"`
    // GroupAliases are the informational mappings of external groups which an
    // authenticated user belongs to. This is used to check if there are
    // mappings groups for the group aliases in identity store. For all the
    // matching groups, the entity ID of the user will be added.
    GroupAliases []*logical.Alias `sentinel:"" protobuf:"bytes,12,rep,name=group_aliases,json=groupAliases,proto3" json:"group_aliases,omitempty"`
    // If set, restricts usage of the certificates to client IPs falling within
    // the range of the specified CIDR(s).
    BoundCIDRs []string `sentinel:"" protobuf:"bytes,13,rep,name=bound_cidrs,json=boundCidrs,proto3" json:"bound_cidrs,omitempty"`
    // TokenPolicies and IdentityPolicies break down the list in Policies to
    // help determine where a policy was sourced
    TokenPolicies    []string `sentinel:"" protobuf:"bytes,14,rep,name=token_policies,json=tokenPolicies,proto3" json:"token_policies,omitempty"`
    IdentityPolicies []string `sentinel:"" protobuf:"bytes,15,rep,name=identity_policies,json=identityPolicies,proto3" json:"identity_policies,omitempty"`
    // Explicit maximum lifetime for the token. Unlike normal TTLs, the maximum
    // TTL is a hard limit and cannot be exceeded, also counts for periodic tokens.
    ExplicitMaxTTL int64 `sentinel:"" protobuf:"varint,16,opt,name=explicit_max_ttl,json=explicitMaxTtl,proto3" json:"explicit_max_ttl,omitempty"`
    // TokenType is the type of token being requested
    TokenType uint32 `sentinel:"" protobuf:"varint,17,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
    // Whether the default policy should be added automatically by core
    NoDefaultPolicy      bool     `sentinel:"" protobuf:"varint,18,opt,name=no_default_policy,json=noDefaultPolicy,proto3" json:"no_default_policy,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func LogicalAuthToProtoAuth Uses

func LogicalAuthToProtoAuth(a *logical.Auth) (*Auth, error)

func (*Auth) Descriptor Uses

func (*Auth) Descriptor() ([]byte, []int)

func (*Auth) GetAccessor Uses

func (m *Auth) GetAccessor() string

func (*Auth) GetAlias Uses

func (m *Auth) GetAlias() *logical.Alias

func (*Auth) GetBoundCIDRs Uses

func (m *Auth) GetBoundCIDRs() []string

func (*Auth) GetClientToken Uses

func (m *Auth) GetClientToken() string

func (*Auth) GetDisplayName Uses

func (m *Auth) GetDisplayName() string

func (*Auth) GetEntityID Uses

func (m *Auth) GetEntityID() string

func (*Auth) GetExplicitMaxTTL Uses

func (m *Auth) GetExplicitMaxTTL() int64

func (*Auth) GetGroupAliases Uses

func (m *Auth) GetGroupAliases() []*logical.Alias

func (*Auth) GetIdentityPolicies Uses

func (m *Auth) GetIdentityPolicies() []string

func (*Auth) GetInternalData Uses

func (m *Auth) GetInternalData() string

func (*Auth) GetLeaseOptions Uses

func (m *Auth) GetLeaseOptions() *LeaseOptions

func (*Auth) GetMetadata Uses

func (m *Auth) GetMetadata() map[string]string

func (*Auth) GetNoDefaultPolicy Uses

func (m *Auth) GetNoDefaultPolicy() bool

func (*Auth) GetNumUses Uses

func (m *Auth) GetNumUses() int64

func (*Auth) GetPeriod Uses

func (m *Auth) GetPeriod() int64

func (*Auth) GetPolicies Uses

func (m *Auth) GetPolicies() []string

func (*Auth) GetTokenPolicies Uses

func (m *Auth) GetTokenPolicies() []string

func (*Auth) GetTokenType Uses

func (m *Auth) GetTokenType() uint32

func (*Auth) ProtoMessage Uses

func (*Auth) ProtoMessage()

func (*Auth) Reset Uses

func (m *Auth) Reset()

func (*Auth) String Uses

func (m *Auth) String() string

func (*Auth) XXX_DiscardUnknown Uses

func (m *Auth) XXX_DiscardUnknown()

func (*Auth) XXX_Marshal Uses

func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Auth) XXX_Merge Uses

func (m *Auth) XXX_Merge(src proto.Message)

func (*Auth) XXX_Size Uses

func (m *Auth) XXX_Size() int

func (*Auth) XXX_Unmarshal Uses

func (m *Auth) XXX_Unmarshal(b []byte) error

type BackendClient Uses

type BackendClient interface {
    // HandleRequest is used to handle a request and generate a response.
    // The plugins must check the operation type and handle appropriately.
    HandleRequest(ctx context.Context, in *HandleRequestArgs, opts ...grpc.CallOption) (*HandleRequestReply, error)
    // SpecialPaths is a list of paths that are special in some way.
    // See PathType for the types of special paths. The key is the type
    // of the special path, and the value is a list of paths for this type.
    // This is not a regular expression but is an exact match. If the path
    // ends in '*' then it is a prefix-based match. The '*' can only appear
    // at the end.
    SpecialPaths(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SpecialPathsReply, error)
    // HandleExistenceCheck is used to handle a request and generate a response
    // indicating whether the given path exists or not; this is used to
    // understand whether the request must have a Create or Update capability
    // ACL applied. The first bool indicates whether an existence check
    // function was found for the backend; the second indicates whether, if an
    // existence check function was found, the item exists or not.
    HandleExistenceCheck(ctx context.Context, in *HandleExistenceCheckArgs, opts ...grpc.CallOption) (*HandleExistenceCheckReply, error)
    // Cleanup is invoked during an unmount of a backend to allow it to
    // handle any cleanup like connection closing or releasing of file handles.
    // Cleanup is called right before Vault closes the plugin process.
    Cleanup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
    // InvalidateKey may be invoked when an object is modified that belongs
    // to the backend. The backend can use this to clear any caches or reset
    // internal state as needed.
    InvalidateKey(ctx context.Context, in *InvalidateKeyArgs, opts ...grpc.CallOption) (*Empty, error)
    // Setup is used to set up the backend based on the provided backend
    // configuration. The plugin's setup implementation should use the provided
    // broker_id to create a connection back to Vault for use with the Storage
    // and SystemView clients.
    Setup(ctx context.Context, in *SetupArgs, opts ...grpc.CallOption) (*SetupReply, error)
    // Initialize is invoked just after mounting a backend to allow it to
    // handle any initialization tasks that need to be performed.
    Initialize(ctx context.Context, in *InitializeArgs, opts ...grpc.CallOption) (*InitializeReply, error)
    // Type returns the BackendType for the particular backend
    Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeReply, error)
}

BackendClient is the client API for Backend service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBackendClient Uses

func NewBackendClient(cc *grpc.ClientConn) BackendClient

type BackendServer Uses

type BackendServer interface {
    // HandleRequest is used to handle a request and generate a response.
    // The plugins must check the operation type and handle appropriately.
    HandleRequest(context.Context, *HandleRequestArgs) (*HandleRequestReply, error)
    // SpecialPaths is a list of paths that are special in some way.
    // See PathType for the types of special paths. The key is the type
    // of the special path, and the value is a list of paths for this type.
    // This is not a regular expression but is an exact match. If the path
    // ends in '*' then it is a prefix-based match. The '*' can only appear
    // at the end.
    SpecialPaths(context.Context, *Empty) (*SpecialPathsReply, error)
    // HandleExistenceCheck is used to handle a request and generate a response
    // indicating whether the given path exists or not; this is used to
    // understand whether the request must have a Create or Update capability
    // ACL applied. The first bool indicates whether an existence check
    // function was found for the backend; the second indicates whether, if an
    // existence check function was found, the item exists or not.
    HandleExistenceCheck(context.Context, *HandleExistenceCheckArgs) (*HandleExistenceCheckReply, error)
    // Cleanup is invoked during an unmount of a backend to allow it to
    // handle any cleanup like connection closing or releasing of file handles.
    // Cleanup is called right before Vault closes the plugin process.
    Cleanup(context.Context, *Empty) (*Empty, error)
    // InvalidateKey may be invoked when an object is modified that belongs
    // to the backend. The backend can use this to clear any caches or reset
    // internal state as needed.
    InvalidateKey(context.Context, *InvalidateKeyArgs) (*Empty, error)
    // Setup is used to set up the backend based on the provided backend
    // configuration. The plugin's setup implementation should use the provided
    // broker_id to create a connection back to Vault for use with the Storage
    // and SystemView clients.
    Setup(context.Context, *SetupArgs) (*SetupReply, error)
    // Initialize is invoked just after mounting a backend to allow it to
    // handle any initialization tasks that need to be performed.
    Initialize(context.Context, *InitializeArgs) (*InitializeReply, error)
    // Type returns the BackendType for the particular backend
    Type(context.Context, *Empty) (*TypeReply, error)
}

BackendServer is the server API for Backend service.

type CachingDisabledReply Uses

type CachingDisabledReply struct {
    Disabled             bool     `sentinel:"" protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CachingDisabledReply) Descriptor Uses

func (*CachingDisabledReply) Descriptor() ([]byte, []int)

func (*CachingDisabledReply) GetDisabled Uses

func (m *CachingDisabledReply) GetDisabled() bool

func (*CachingDisabledReply) ProtoMessage Uses

func (*CachingDisabledReply) ProtoMessage()

func (*CachingDisabledReply) Reset Uses

func (m *CachingDisabledReply) Reset()

func (*CachingDisabledReply) String Uses

func (m *CachingDisabledReply) String() string

func (*CachingDisabledReply) XXX_DiscardUnknown Uses

func (m *CachingDisabledReply) XXX_DiscardUnknown()

func (*CachingDisabledReply) XXX_Marshal Uses

func (m *CachingDisabledReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CachingDisabledReply) XXX_Merge Uses

func (m *CachingDisabledReply) XXX_Merge(src proto.Message)

func (*CachingDisabledReply) XXX_Size Uses

func (m *CachingDisabledReply) XXX_Size() int

func (*CachingDisabledReply) XXX_Unmarshal Uses

func (m *CachingDisabledReply) XXX_Unmarshal(b []byte) error

type Connection Uses

type Connection struct {
    // RemoteAddr is the network address that sent the request.
    RemoteAddr           string   `sentinel:"" protobuf:"bytes,1,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func LogicalConnectionToProtoConnection Uses

func LogicalConnectionToProtoConnection(c *logical.Connection) *Connection

func (*Connection) Descriptor Uses

func (*Connection) Descriptor() ([]byte, []int)

func (*Connection) GetRemoteAddr Uses

func (m *Connection) GetRemoteAddr() string

func (*Connection) ProtoMessage Uses

func (*Connection) ProtoMessage()

func (*Connection) Reset Uses

func (m *Connection) Reset()

func (*Connection) String Uses

func (m *Connection) String() string

func (*Connection) XXX_DiscardUnknown Uses

func (m *Connection) XXX_DiscardUnknown()

func (*Connection) XXX_Marshal Uses

func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Connection) XXX_Merge Uses

func (m *Connection) XXX_Merge(src proto.Message)

func (*Connection) XXX_Size Uses

func (m *Connection) XXX_Size() int

func (*Connection) XXX_Unmarshal Uses

func (m *Connection) XXX_Unmarshal(b []byte) error

type Empty Uses

type Empty struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor Uses

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) Reset Uses

func (m *Empty) Reset()

func (*Empty) String Uses

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown Uses

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal Uses

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge Uses

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size Uses

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal Uses

func (m *Empty) XXX_Unmarshal(b []byte) error

type EntityInfoArgs Uses

type EntityInfoArgs struct {
    EntityID             string   `sentinel:"" protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*EntityInfoArgs) Descriptor Uses

func (*EntityInfoArgs) Descriptor() ([]byte, []int)

func (*EntityInfoArgs) GetEntityID Uses

func (m *EntityInfoArgs) GetEntityID() string

func (*EntityInfoArgs) ProtoMessage Uses

func (*EntityInfoArgs) ProtoMessage()

func (*EntityInfoArgs) Reset Uses

func (m *EntityInfoArgs) Reset()

func (*EntityInfoArgs) String Uses

func (m *EntityInfoArgs) String() string

func (*EntityInfoArgs) XXX_DiscardUnknown Uses

func (m *EntityInfoArgs) XXX_DiscardUnknown()

func (*EntityInfoArgs) XXX_Marshal Uses

func (m *EntityInfoArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityInfoArgs) XXX_Merge Uses

func (m *EntityInfoArgs) XXX_Merge(src proto.Message)

func (*EntityInfoArgs) XXX_Size Uses

func (m *EntityInfoArgs) XXX_Size() int

func (*EntityInfoArgs) XXX_Unmarshal Uses

func (m *EntityInfoArgs) XXX_Unmarshal(b []byte) error

type EntityInfoReply Uses

type EntityInfoReply struct {
    Entity               *logical.Entity `sentinel:"" protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
    Err                  string          `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

func (*EntityInfoReply) Descriptor Uses

func (*EntityInfoReply) Descriptor() ([]byte, []int)

func (*EntityInfoReply) GetEntity Uses

func (m *EntityInfoReply) GetEntity() *logical.Entity

func (*EntityInfoReply) GetErr Uses

func (m *EntityInfoReply) GetErr() string

func (*EntityInfoReply) ProtoMessage Uses

func (*EntityInfoReply) ProtoMessage()

func (*EntityInfoReply) Reset Uses

func (m *EntityInfoReply) Reset()

func (*EntityInfoReply) String Uses

func (m *EntityInfoReply) String() string

func (*EntityInfoReply) XXX_DiscardUnknown Uses

func (m *EntityInfoReply) XXX_DiscardUnknown()

func (*EntityInfoReply) XXX_Marshal Uses

func (m *EntityInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityInfoReply) XXX_Merge Uses

func (m *EntityInfoReply) XXX_Merge(src proto.Message)

func (*EntityInfoReply) XXX_Size Uses

func (m *EntityInfoReply) XXX_Size() int

func (*EntityInfoReply) XXX_Unmarshal Uses

func (m *EntityInfoReply) XXX_Unmarshal(b []byte) error

type HandleExistenceCheckArgs Uses

type HandleExistenceCheckArgs struct {
    StorageID            uint32   `sentinel:"" protobuf:"varint,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
    Request              *Request `sentinel:"" protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

HandleExistenceCheckArgs is the args for HandleExistenceCheck method.

func (*HandleExistenceCheckArgs) Descriptor Uses

func (*HandleExistenceCheckArgs) Descriptor() ([]byte, []int)

func (*HandleExistenceCheckArgs) GetRequest Uses

func (m *HandleExistenceCheckArgs) GetRequest() *Request

func (*HandleExistenceCheckArgs) GetStorageID Uses

func (m *HandleExistenceCheckArgs) GetStorageID() uint32

func (*HandleExistenceCheckArgs) ProtoMessage Uses

func (*HandleExistenceCheckArgs) ProtoMessage()

func (*HandleExistenceCheckArgs) Reset Uses

func (m *HandleExistenceCheckArgs) Reset()

func (*HandleExistenceCheckArgs) String Uses

func (m *HandleExistenceCheckArgs) String() string

func (*HandleExistenceCheckArgs) XXX_DiscardUnknown Uses

func (m *HandleExistenceCheckArgs) XXX_DiscardUnknown()

func (*HandleExistenceCheckArgs) XXX_Marshal Uses

func (m *HandleExistenceCheckArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleExistenceCheckArgs) XXX_Merge Uses

func (m *HandleExistenceCheckArgs) XXX_Merge(src proto.Message)

func (*HandleExistenceCheckArgs) XXX_Size Uses

func (m *HandleExistenceCheckArgs) XXX_Size() int

func (*HandleExistenceCheckArgs) XXX_Unmarshal Uses

func (m *HandleExistenceCheckArgs) XXX_Unmarshal(b []byte) error

type HandleExistenceCheckReply Uses

type HandleExistenceCheckReply struct {
    CheckFound           bool        `sentinel:"" protobuf:"varint,1,opt,name=check_found,json=checkFound,proto3" json:"check_found,omitempty"`
    Exists               bool        `sentinel:"" protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
    Err                  *ProtoError `sentinel:"" protobuf:"bytes,3,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

HandleExistenceCheckReply is the reply for HandleExistenceCheck method.

func (*HandleExistenceCheckReply) Descriptor Uses

func (*HandleExistenceCheckReply) Descriptor() ([]byte, []int)

func (*HandleExistenceCheckReply) GetCheckFound Uses

func (m *HandleExistenceCheckReply) GetCheckFound() bool

func (*HandleExistenceCheckReply) GetErr Uses

func (m *HandleExistenceCheckReply) GetErr() *ProtoError

func (*HandleExistenceCheckReply) GetExists Uses

func (m *HandleExistenceCheckReply) GetExists() bool

func (*HandleExistenceCheckReply) ProtoMessage Uses

func (*HandleExistenceCheckReply) ProtoMessage()

func (*HandleExistenceCheckReply) Reset Uses

func (m *HandleExistenceCheckReply) Reset()

func (*HandleExistenceCheckReply) String Uses

func (m *HandleExistenceCheckReply) String() string

func (*HandleExistenceCheckReply) XXX_DiscardUnknown Uses

func (m *HandleExistenceCheckReply) XXX_DiscardUnknown()

func (*HandleExistenceCheckReply) XXX_Marshal Uses

func (m *HandleExistenceCheckReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleExistenceCheckReply) XXX_Merge Uses

func (m *HandleExistenceCheckReply) XXX_Merge(src proto.Message)

func (*HandleExistenceCheckReply) XXX_Size Uses

func (m *HandleExistenceCheckReply) XXX_Size() int

func (*HandleExistenceCheckReply) XXX_Unmarshal Uses

func (m *HandleExistenceCheckReply) XXX_Unmarshal(b []byte) error

type HandleRequestArgs Uses

type HandleRequestArgs struct {
    StorageID            uint32   `sentinel:"" protobuf:"varint,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"`
    Request              *Request `sentinel:"" protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

HandleRequestArgs is the args for HandleRequest method.

func (*HandleRequestArgs) Descriptor Uses

func (*HandleRequestArgs) Descriptor() ([]byte, []int)

func (*HandleRequestArgs) GetRequest Uses

func (m *HandleRequestArgs) GetRequest() *Request

func (*HandleRequestArgs) GetStorageID Uses

func (m *HandleRequestArgs) GetStorageID() uint32

func (*HandleRequestArgs) ProtoMessage Uses

func (*HandleRequestArgs) ProtoMessage()

func (*HandleRequestArgs) Reset Uses

func (m *HandleRequestArgs) Reset()

func (*HandleRequestArgs) String Uses

func (m *HandleRequestArgs) String() string

func (*HandleRequestArgs) XXX_DiscardUnknown Uses

func (m *HandleRequestArgs) XXX_DiscardUnknown()

func (*HandleRequestArgs) XXX_Marshal Uses

func (m *HandleRequestArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleRequestArgs) XXX_Merge Uses

func (m *HandleRequestArgs) XXX_Merge(src proto.Message)

func (*HandleRequestArgs) XXX_Size Uses

func (m *HandleRequestArgs) XXX_Size() int

func (*HandleRequestArgs) XXX_Unmarshal Uses

func (m *HandleRequestArgs) XXX_Unmarshal(b []byte) error

type HandleRequestReply Uses

type HandleRequestReply struct {
    Response             *Response   `sentinel:"" protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
    Err                  *ProtoError `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

HandleRequestReply is the reply for HandleRequest method.

func (*HandleRequestReply) Descriptor Uses

func (*HandleRequestReply) Descriptor() ([]byte, []int)

func (*HandleRequestReply) GetErr Uses

func (m *HandleRequestReply) GetErr() *ProtoError

func (*HandleRequestReply) GetResponse Uses

func (m *HandleRequestReply) GetResponse() *Response

func (*HandleRequestReply) ProtoMessage Uses

func (*HandleRequestReply) ProtoMessage()

func (*HandleRequestReply) Reset Uses

func (m *HandleRequestReply) Reset()

func (*HandleRequestReply) String Uses

func (m *HandleRequestReply) String() string

func (*HandleRequestReply) XXX_DiscardUnknown Uses

func (m *HandleRequestReply) XXX_DiscardUnknown()

func (*HandleRequestReply) XXX_Marshal Uses

func (m *HandleRequestReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleRequestReply) XXX_Merge Uses

func (m *HandleRequestReply) XXX_Merge(src proto.Message)

func (*HandleRequestReply) XXX_Size Uses

func (m *HandleRequestReply) XXX_Size() int

func (*HandleRequestReply) XXX_Unmarshal Uses

func (m *HandleRequestReply) XXX_Unmarshal(b []byte) error
type Header struct {
    Header               []string `sentinel:"" protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Header) Descriptor Uses

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetHeader Uses

func (m *Header) GetHeader() []string

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) Reset Uses

func (m *Header) Reset()

func (*Header) String Uses

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown Uses

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal Uses

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge Uses

func (m *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size Uses

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal Uses

func (m *Header) XXX_Unmarshal(b []byte) error

type InitializeArgs Uses

type InitializeArgs struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

InitializeArgs is the args for Initialize method.

func (*InitializeArgs) Descriptor Uses

func (*InitializeArgs) Descriptor() ([]byte, []int)

func (*InitializeArgs) ProtoMessage Uses

func (*InitializeArgs) ProtoMessage()

func (*InitializeArgs) Reset Uses

func (m *InitializeArgs) Reset()

func (*InitializeArgs) String Uses

func (m *InitializeArgs) String() string

func (*InitializeArgs) XXX_DiscardUnknown Uses

func (m *InitializeArgs) XXX_DiscardUnknown()

func (*InitializeArgs) XXX_Marshal Uses

func (m *InitializeArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitializeArgs) XXX_Merge Uses

func (m *InitializeArgs) XXX_Merge(src proto.Message)

func (*InitializeArgs) XXX_Size Uses

func (m *InitializeArgs) XXX_Size() int

func (*InitializeArgs) XXX_Unmarshal Uses

func (m *InitializeArgs) XXX_Unmarshal(b []byte) error

type InitializeReply Uses

type InitializeReply struct {
    Err                  *ProtoError `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

InitializeReply is the reply for Initialize method.

func (*InitializeReply) Descriptor Uses

func (*InitializeReply) Descriptor() ([]byte, []int)

func (*InitializeReply) GetErr Uses

func (m *InitializeReply) GetErr() *ProtoError

func (*InitializeReply) ProtoMessage Uses

func (*InitializeReply) ProtoMessage()

func (*InitializeReply) Reset Uses

func (m *InitializeReply) Reset()

func (*InitializeReply) String Uses

func (m *InitializeReply) String() string

func (*InitializeReply) XXX_DiscardUnknown Uses

func (m *InitializeReply) XXX_DiscardUnknown()

func (*InitializeReply) XXX_Marshal Uses

func (m *InitializeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitializeReply) XXX_Merge Uses

func (m *InitializeReply) XXX_Merge(src proto.Message)

func (*InitializeReply) XXX_Size Uses

func (m *InitializeReply) XXX_Size() int

func (*InitializeReply) XXX_Unmarshal Uses

func (m *InitializeReply) XXX_Unmarshal(b []byte) error

type InvalidateKeyArgs Uses

type InvalidateKeyArgs struct {
    Key                  string   `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*InvalidateKeyArgs) Descriptor Uses

func (*InvalidateKeyArgs) Descriptor() ([]byte, []int)

func (*InvalidateKeyArgs) GetKey Uses

func (m *InvalidateKeyArgs) GetKey() string

func (*InvalidateKeyArgs) ProtoMessage Uses

func (*InvalidateKeyArgs) ProtoMessage()

func (*InvalidateKeyArgs) Reset Uses

func (m *InvalidateKeyArgs) Reset()

func (*InvalidateKeyArgs) String Uses

func (m *InvalidateKeyArgs) String() string

func (*InvalidateKeyArgs) XXX_DiscardUnknown Uses

func (m *InvalidateKeyArgs) XXX_DiscardUnknown()

func (*InvalidateKeyArgs) XXX_Marshal Uses

func (m *InvalidateKeyArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvalidateKeyArgs) XXX_Merge Uses

func (m *InvalidateKeyArgs) XXX_Merge(src proto.Message)

func (*InvalidateKeyArgs) XXX_Size Uses

func (m *InvalidateKeyArgs) XXX_Size() int

func (*InvalidateKeyArgs) XXX_Unmarshal Uses

func (m *InvalidateKeyArgs) XXX_Unmarshal(b []byte) error

type LeaseOptions Uses

type LeaseOptions struct {
    TTL                  int64                `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
    Renewable            bool                 `sentinel:"" protobuf:"varint,2,opt,name=renewable,proto3" json:"renewable,omitempty"`
    Increment            int64                `sentinel:"" protobuf:"varint,3,opt,name=increment,proto3" json:"increment,omitempty"`
    IssueTime            *timestamp.Timestamp `sentinel:"" protobuf:"bytes,4,opt,name=issue_time,json=issueTime,proto3" json:"issue_time,omitempty"`
    MaxTTL               int64                `sentinel:"" protobuf:"varint,5,opt,name=MaxTTL,proto3" json:"MaxTTL,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

func LogicalLeaseOptionsToProtoLeaseOptions Uses

func LogicalLeaseOptionsToProtoLeaseOptions(l logical.LeaseOptions) (*LeaseOptions, error)

func (*LeaseOptions) Descriptor Uses

func (*LeaseOptions) Descriptor() ([]byte, []int)

func (*LeaseOptions) GetIncrement Uses

func (m *LeaseOptions) GetIncrement() int64

func (*LeaseOptions) GetIssueTime Uses

func (m *LeaseOptions) GetIssueTime() *timestamp.Timestamp

func (*LeaseOptions) GetMaxTTL Uses

func (m *LeaseOptions) GetMaxTTL() int64

func (*LeaseOptions) GetRenewable Uses

func (m *LeaseOptions) GetRenewable() bool

func (*LeaseOptions) GetTTL Uses

func (m *LeaseOptions) GetTTL() int64

func (*LeaseOptions) ProtoMessage Uses

func (*LeaseOptions) ProtoMessage()

func (*LeaseOptions) Reset Uses

func (m *LeaseOptions) Reset()

func (*LeaseOptions) String Uses

func (m *LeaseOptions) String() string

func (*LeaseOptions) XXX_DiscardUnknown Uses

func (m *LeaseOptions) XXX_DiscardUnknown()

func (*LeaseOptions) XXX_Marshal Uses

func (m *LeaseOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseOptions) XXX_Merge Uses

func (m *LeaseOptions) XXX_Merge(src proto.Message)

func (*LeaseOptions) XXX_Size Uses

func (m *LeaseOptions) XXX_Size() int

func (*LeaseOptions) XXX_Unmarshal Uses

func (m *LeaseOptions) XXX_Unmarshal(b []byte) error

type LocalMountReply Uses

type LocalMountReply struct {
    Local                bool     `sentinel:"" protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*LocalMountReply) Descriptor Uses

func (*LocalMountReply) Descriptor() ([]byte, []int)

func (*LocalMountReply) GetLocal Uses

func (m *LocalMountReply) GetLocal() bool

func (*LocalMountReply) ProtoMessage Uses

func (*LocalMountReply) ProtoMessage()

func (*LocalMountReply) Reset Uses

func (m *LocalMountReply) Reset()

func (*LocalMountReply) String Uses

func (m *LocalMountReply) String() string

func (*LocalMountReply) XXX_DiscardUnknown Uses

func (m *LocalMountReply) XXX_DiscardUnknown()

func (*LocalMountReply) XXX_Marshal Uses

func (m *LocalMountReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalMountReply) XXX_Merge Uses

func (m *LocalMountReply) XXX_Merge(src proto.Message)

func (*LocalMountReply) XXX_Size Uses

func (m *LocalMountReply) XXX_Size() int

func (*LocalMountReply) XXX_Unmarshal Uses

func (m *LocalMountReply) XXX_Unmarshal(b []byte) error

type MlockEnabledReply Uses

type MlockEnabledReply struct {
    Enabled              bool     `sentinel:"" protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*MlockEnabledReply) Descriptor Uses

func (*MlockEnabledReply) Descriptor() ([]byte, []int)

func (*MlockEnabledReply) GetEnabled Uses

func (m *MlockEnabledReply) GetEnabled() bool

func (*MlockEnabledReply) ProtoMessage Uses

func (*MlockEnabledReply) ProtoMessage()

func (*MlockEnabledReply) Reset Uses

func (m *MlockEnabledReply) Reset()

func (*MlockEnabledReply) String Uses

func (m *MlockEnabledReply) String() string

func (*MlockEnabledReply) XXX_DiscardUnknown Uses

func (m *MlockEnabledReply) XXX_DiscardUnknown()

func (*MlockEnabledReply) XXX_Marshal Uses

func (m *MlockEnabledReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MlockEnabledReply) XXX_Merge Uses

func (m *MlockEnabledReply) XXX_Merge(src proto.Message)

func (*MlockEnabledReply) XXX_Size Uses

func (m *MlockEnabledReply) XXX_Size() int

func (*MlockEnabledReply) XXX_Unmarshal Uses

func (m *MlockEnabledReply) XXX_Unmarshal(b []byte) error

type Paths Uses

type Paths struct {
    // Root are the paths that require a root token to access
    Root []string `sentinel:"" protobuf:"bytes,1,rep,name=root,proto3" json:"root,omitempty"`
    // Unauthenticated are the paths that can be accessed without any auth.
    Unauthenticated []string `sentinel:"" protobuf:"bytes,2,rep,name=unauthenticated,proto3" json:"unauthenticated,omitempty"`
    // LocalStorage are paths (prefixes) that are local to this instance; this
    // indicates that these paths should not be replicated
    LocalStorage []string `sentinel:"" protobuf:"bytes,3,rep,name=local_storage,json=localStorage,proto3" json:"local_storage,omitempty"`
    // SealWrapStorage are storage paths that, when using a capable seal,
    // should be seal wrapped with extra encryption. It is exact matching
    // unless it ends with '/' in which case it will be treated as a prefix.
    SealWrapStorage      []string `sentinel:"" protobuf:"bytes,4,rep,name=seal_wrap_storage,json=sealWrapStorage,proto3" json:"seal_wrap_storage,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Paths is the structure of special paths that is used for SpecialPaths.

func (*Paths) Descriptor Uses

func (*Paths) Descriptor() ([]byte, []int)

func (*Paths) GetLocalStorage Uses

func (m *Paths) GetLocalStorage() []string

func (*Paths) GetRoot Uses

func (m *Paths) GetRoot() []string

func (*Paths) GetSealWrapStorage Uses

func (m *Paths) GetSealWrapStorage() []string

func (*Paths) GetUnauthenticated Uses

func (m *Paths) GetUnauthenticated() []string

func (*Paths) ProtoMessage Uses

func (*Paths) ProtoMessage()

func (*Paths) Reset Uses

func (m *Paths) Reset()

func (*Paths) String Uses

func (m *Paths) String() string

func (*Paths) XXX_DiscardUnknown Uses

func (m *Paths) XXX_DiscardUnknown()

func (*Paths) XXX_Marshal Uses

func (m *Paths) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Paths) XXX_Merge Uses

func (m *Paths) XXX_Merge(src proto.Message)

func (*Paths) XXX_Size Uses

func (m *Paths) XXX_Size() int

func (*Paths) XXX_Unmarshal Uses

func (m *Paths) XXX_Unmarshal(b []byte) error

type PluginEnvReply Uses

type PluginEnvReply struct {
    PluginEnvironment    *logical.PluginEnvironment `sentinel:"" protobuf:"bytes,1,opt,name=plugin_environment,json=pluginEnvironment,proto3" json:"plugin_environment,omitempty"`
    Err                  string                     `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    XXX_unrecognized     []byte                     `json:"-"`
    XXX_sizecache        int32                      `json:"-"`
}

func (*PluginEnvReply) Descriptor Uses

func (*PluginEnvReply) Descriptor() ([]byte, []int)

func (*PluginEnvReply) GetErr Uses

func (m *PluginEnvReply) GetErr() string

func (*PluginEnvReply) GetPluginEnvironment Uses

func (m *PluginEnvReply) GetPluginEnvironment() *logical.PluginEnvironment

func (*PluginEnvReply) ProtoMessage Uses

func (*PluginEnvReply) ProtoMessage()

func (*PluginEnvReply) Reset Uses

func (m *PluginEnvReply) Reset()

func (*PluginEnvReply) String Uses

func (m *PluginEnvReply) String() string

func (*PluginEnvReply) XXX_DiscardUnknown Uses

func (m *PluginEnvReply) XXX_DiscardUnknown()

func (*PluginEnvReply) XXX_Marshal Uses

func (m *PluginEnvReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PluginEnvReply) XXX_Merge Uses

func (m *PluginEnvReply) XXX_Merge(src proto.Message)

func (*PluginEnvReply) XXX_Size Uses

func (m *PluginEnvReply) XXX_Size() int

func (*PluginEnvReply) XXX_Unmarshal Uses

func (m *PluginEnvReply) XXX_Unmarshal(b []byte) error

type ProtoError Uses

type ProtoError struct {
    // Error type can be one of:
    // ErrTypeUnknown uint32 = iota
    // ErrTypeUserError
    // ErrTypeInternalError
    // ErrTypeCodedError
    // ErrTypeStatusBadRequest
    // ErrTypeUnsupportedOperation
    // ErrTypeUnsupportedPath
    // ErrTypeInvalidRequest
    // ErrTypePermissionDenied
    // ErrTypeMultiAuthzPending
    ErrType              uint32   `sentinel:"" protobuf:"varint,1,opt,name=err_type,json=errType,proto3" json:"err_type,omitempty"`
    ErrMsg               string   `sentinel:"" protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
    ErrCode              int64    `sentinel:"" protobuf:"varint,3,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func ErrToProtoErr Uses

func ErrToProtoErr(e error) *ProtoError

func (*ProtoError) Descriptor Uses

func (*ProtoError) Descriptor() ([]byte, []int)

func (*ProtoError) GetErrCode Uses

func (m *ProtoError) GetErrCode() int64

func (*ProtoError) GetErrMsg Uses

func (m *ProtoError) GetErrMsg() string

func (*ProtoError) GetErrType Uses

func (m *ProtoError) GetErrType() uint32

func (*ProtoError) ProtoMessage Uses

func (*ProtoError) ProtoMessage()

func (*ProtoError) Reset Uses

func (m *ProtoError) Reset()

func (*ProtoError) String Uses

func (m *ProtoError) String() string

func (*ProtoError) XXX_DiscardUnknown Uses

func (m *ProtoError) XXX_DiscardUnknown()

func (*ProtoError) XXX_Marshal Uses

func (m *ProtoError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProtoError) XXX_Merge Uses

func (m *ProtoError) XXX_Merge(src proto.Message)

func (*ProtoError) XXX_Size Uses

func (m *ProtoError) XXX_Size() int

func (*ProtoError) XXX_Unmarshal Uses

func (m *ProtoError) XXX_Unmarshal(b []byte) error

type ReplicationStateReply Uses

type ReplicationStateReply struct {
    State                int32    `sentinel:"" protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ReplicationStateReply) Descriptor Uses

func (*ReplicationStateReply) Descriptor() ([]byte, []int)

func (*ReplicationStateReply) GetState Uses

func (m *ReplicationStateReply) GetState() int32

func (*ReplicationStateReply) ProtoMessage Uses

func (*ReplicationStateReply) ProtoMessage()

func (*ReplicationStateReply) Reset Uses

func (m *ReplicationStateReply) Reset()

func (*ReplicationStateReply) String Uses

func (m *ReplicationStateReply) String() string

func (*ReplicationStateReply) XXX_DiscardUnknown Uses

func (m *ReplicationStateReply) XXX_DiscardUnknown()

func (*ReplicationStateReply) XXX_Marshal Uses

func (m *ReplicationStateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplicationStateReply) XXX_Merge Uses

func (m *ReplicationStateReply) XXX_Merge(src proto.Message)

func (*ReplicationStateReply) XXX_Size Uses

func (m *ReplicationStateReply) XXX_Size() int

func (*ReplicationStateReply) XXX_Unmarshal Uses

func (m *ReplicationStateReply) XXX_Unmarshal(b []byte) error

type Request Uses

type Request struct {
    // ID is the uuid associated with each request
    ID  string `sentinel:"" protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // If set, the name given to the replication secondary where this request
    // originated
    ReplicationCluster string `sentinel:"" protobuf:"bytes,2,opt,name=ReplicationCluster,proto3" json:"ReplicationCluster,omitempty"`
    // Operation is the requested operation type
    Operation string `sentinel:"" protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
    // Path is the part of the request path not consumed by the
    // routing. As an example, if the original request path is "prod/aws/foo"
    // and the AWS logical backend is mounted at "prod/aws/", then the
    // final path is "foo" since the mount prefix is trimmed.
    Path string `sentinel:"" protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
    // Request data is a JSON object that must have keys with string type.
    Data string `sentinel:"" protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
    // Secret will be non-nil only for Revoke and Renew operations
    // to represent the secret that was returned prior.
    Secret *Secret `sentinel:"" protobuf:"bytes,6,opt,name=secret,proto3" json:"secret,omitempty"`
    // Auth will be non-nil only for Renew operations
    // to represent the auth that was returned prior.
    Auth *Auth `sentinel:"" protobuf:"bytes,7,opt,name=auth,proto3" json:"auth,omitempty"`
    // Headers will contain the http headers from the request. This value will
    // be used in the audit broker to ensure we are auditing only the allowed
    // headers.
    Headers map[string]*Header `sentinel:"" protobuf:"bytes,8,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // ClientToken is provided to the core so that the identity
    // can be verified and ACLs applied. This value is passed
    // through to the logical backends but after being salted and
    // hashed.
    ClientToken string `sentinel:"" protobuf:"bytes,9,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"`
    // ClientTokenAccessor is provided to the core so that the it can get
    // logged as part of request audit logging.
    ClientTokenAccessor string `sentinel:"" protobuf:"bytes,10,opt,name=client_token_accessor,json=clientTokenAccessor,proto3" json:"client_token_accessor,omitempty"`
    // DisplayName is provided to the logical backend to help associate
    // dynamic secrets with the source entity. This is not a sensitive
    // name, but is useful for operators.
    DisplayName string `sentinel:"" protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // MountPoint is provided so that a logical backend can generate
    // paths relative to itself. The `Path` is effectively the client
    // request path with the MountPoint trimmed off.
    MountPoint string `sentinel:"" protobuf:"bytes,12,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
    // MountType is provided so that a logical backend can make decisions
    // based on the specific mount type (e.g., if a mount type has different
    // aliases, generating different defaults depending on the alias)
    MountType string `sentinel:"" protobuf:"bytes,13,opt,name=mount_type,json=mountType,proto3" json:"mount_type,omitempty"`
    // MountAccessor is provided so that identities returned by the authentication
    // backends can be tied to the mount it belongs to.
    MountAccessor string `sentinel:"" protobuf:"bytes,14,opt,name=mount_accessor,json=mountAccessor,proto3" json:"mount_accessor,omitempty"`
    // WrapInfo contains requested response wrapping parameters
    WrapInfo *RequestWrapInfo `sentinel:"" protobuf:"bytes,15,opt,name=wrap_info,json=wrapInfo,proto3" json:"wrap_info,omitempty"`
    // ClientTokenRemainingUses represents the allowed number of uses left on the
    // token supplied
    ClientTokenRemainingUses int64 `sentinel:"" protobuf:"varint,16,opt,name=client_token_remaining_uses,json=clientTokenRemainingUses,proto3" json:"client_token_remaining_uses,omitempty"`
    // EntityID is the identity of the caller extracted out of the token used
    // to make this request
    EntityID string `sentinel:"" protobuf:"bytes,17,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
    // PolicyOverride indicates that the requestor wishes to override
    // soft-mandatory Sentinel policies
    PolicyOverride bool `sentinel:"" protobuf:"varint,18,opt,name=policy_override,json=policyOverride,proto3" json:"policy_override,omitempty"`
    // Whether the request is unauthenticated, as in, had no client token
    // attached. Useful in some situations where the client token is not made
    // accessible.
    Unauthenticated bool `sentinel:"" protobuf:"varint,19,opt,name=unauthenticated,proto3" json:"unauthenticated,omitempty"`
    // Connection will be non-nil only for credential providers to
    // inspect the connection information and potentially use it for
    // authentication/protection.
    Connection           *Connection `sentinel:"" protobuf:"bytes,20,opt,name=connection,proto3" json:"connection,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func LogicalRequestToProtoRequest Uses

func LogicalRequestToProtoRequest(r *logical.Request) (*Request, error)

func (*Request) Descriptor Uses

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetAuth Uses

func (m *Request) GetAuth() *Auth

func (*Request) GetClientToken Uses

func (m *Request) GetClientToken() string

func (*Request) GetClientTokenAccessor Uses

func (m *Request) GetClientTokenAccessor() string

func (*Request) GetClientTokenRemainingUses Uses

func (m *Request) GetClientTokenRemainingUses() int64

func (*Request) GetConnection Uses

func (m *Request) GetConnection() *Connection

func (*Request) GetData Uses

func (m *Request) GetData() string

func (*Request) GetDisplayName Uses

func (m *Request) GetDisplayName() string

func (*Request) GetEntityID Uses

func (m *Request) GetEntityID() string

func (*Request) GetHeaders Uses

func (m *Request) GetHeaders() map[string]*Header

func (*Request) GetID Uses

func (m *Request) GetID() string

func (*Request) GetMountAccessor Uses

func (m *Request) GetMountAccessor() string

func (*Request) GetMountPoint Uses

func (m *Request) GetMountPoint() string

func (*Request) GetMountType Uses

func (m *Request) GetMountType() string

func (*Request) GetOperation Uses

func (m *Request) GetOperation() string

func (*Request) GetPath Uses

func (m *Request) GetPath() string

func (*Request) GetPolicyOverride Uses

func (m *Request) GetPolicyOverride() bool

func (*Request) GetReplicationCluster Uses

func (m *Request) GetReplicationCluster() string

func (*Request) GetSecret Uses

func (m *Request) GetSecret() *Secret

func (*Request) GetUnauthenticated Uses

func (m *Request) GetUnauthenticated() bool

func (*Request) GetWrapInfo Uses

func (m *Request) GetWrapInfo() *RequestWrapInfo

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) String Uses

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown Uses

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal Uses

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge Uses

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size Uses

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal Uses

func (m *Request) XXX_Unmarshal(b []byte) error

type RequestWrapInfo Uses

type RequestWrapInfo struct {
    // Setting to non-zero specifies that the response should be wrapped.
    // Specifies the desired TTL of the wrapping token.
    TTL int64 `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
    // The format to use for the wrapped response; if not specified it's a bare
    // token
    Format string `sentinel:"" protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
    // A flag to conforming backends that data for a given request should be
    // seal wrapped
    SealWrap             bool     `sentinel:"" protobuf:"varint,3,opt,name=seal_wrap,json=sealWrap,proto3" json:"seal_wrap,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func LogicalRequestWrapInfoToProtoRequestWrapInfo Uses

func LogicalRequestWrapInfoToProtoRequestWrapInfo(i *logical.RequestWrapInfo) *RequestWrapInfo

func (*RequestWrapInfo) Descriptor Uses

func (*RequestWrapInfo) Descriptor() ([]byte, []int)

func (*RequestWrapInfo) GetFormat Uses

func (m *RequestWrapInfo) GetFormat() string

func (*RequestWrapInfo) GetSealWrap Uses

func (m *RequestWrapInfo) GetSealWrap() bool

func (*RequestWrapInfo) GetTTL Uses

func (m *RequestWrapInfo) GetTTL() int64

func (*RequestWrapInfo) ProtoMessage Uses

func (*RequestWrapInfo) ProtoMessage()

func (*RequestWrapInfo) Reset Uses

func (m *RequestWrapInfo) Reset()

func (*RequestWrapInfo) String Uses

func (m *RequestWrapInfo) String() string

func (*RequestWrapInfo) XXX_DiscardUnknown Uses

func (m *RequestWrapInfo) XXX_DiscardUnknown()

func (*RequestWrapInfo) XXX_Marshal Uses

func (m *RequestWrapInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestWrapInfo) XXX_Merge Uses

func (m *RequestWrapInfo) XXX_Merge(src proto.Message)

func (*RequestWrapInfo) XXX_Size Uses

func (m *RequestWrapInfo) XXX_Size() int

func (*RequestWrapInfo) XXX_Unmarshal Uses

func (m *RequestWrapInfo) XXX_Unmarshal(b []byte) error

type Response Uses

type Response struct {
    // Secret, if not nil, denotes that this response represents a secret.
    Secret *Secret `sentinel:"" protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
    // Auth, if not nil, contains the authentication information for
    // this response. This is only checked and means something for
    // credential backends.
    Auth *Auth `sentinel:"" protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
    // Response data is a JSON object that must have string keys. For
    // secrets, this data is sent down to the user as-is. To store internal
    // data that you don't want the user to see, store it in
    // Secret.InternalData.
    Data string `sentinel:"" protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
    // Redirect is an HTTP URL to redirect to for further authentication.
    // This is only valid for credential backends. This will be blanked
    // for any logical backend and ignored.
    Redirect string `sentinel:"" protobuf:"bytes,4,opt,name=redirect,proto3" json:"redirect,omitempty"`
    // Warnings allow operations or backends to return warnings in response
    // to user actions without failing the action outright.
    Warnings []string `sentinel:"" protobuf:"bytes,5,rep,name=warnings,proto3" json:"warnings,omitempty"`
    // Information for wrapping the response in a cubbyhole
    WrapInfo *ResponseWrapInfo `sentinel:"" protobuf:"bytes,6,opt,name=wrap_info,json=wrapInfo,proto3" json:"wrap_info,omitempty"`
    // Headers will contain the http headers from the response. This value will
    // be used in the audit broker to ensure we are auditing only the allowed
    // headers.
    Headers              map[string]*Header `sentinel:"" protobuf:"bytes,7,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

func LogicalResponseToProtoResponse Uses

func LogicalResponseToProtoResponse(r *logical.Response) (*Response, error)

func (*Response) Descriptor Uses

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetAuth Uses

func (m *Response) GetAuth() *Auth

func (*Response) GetData Uses

func (m *Response) GetData() string

func (*Response) GetHeaders Uses

func (m *Response) GetHeaders() map[string]*Header

func (*Response) GetRedirect Uses

func (m *Response) GetRedirect() string

func (*Response) GetSecret Uses

func (m *Response) GetSecret() *Secret

func (*Response) GetWarnings Uses

func (m *Response) GetWarnings() []string

func (*Response) GetWrapInfo Uses

func (m *Response) GetWrapInfo() *ResponseWrapInfo

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown Uses

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal Uses

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge Uses

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size Uses

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal Uses

func (m *Response) XXX_Unmarshal(b []byte) error

type ResponseWrapDataArgs Uses

type ResponseWrapDataArgs struct {
    Data                 string   `sentinel:"" protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    TTL                  int64    `sentinel:"" protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"`
    JWT                  bool     `sentinel:"" protobuf:"varint,3,opt,name=JWT,proto3" json:"JWT,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ResponseWrapDataArgs) Descriptor Uses

func (*ResponseWrapDataArgs) Descriptor() ([]byte, []int)

func (*ResponseWrapDataArgs) GetData Uses

func (m *ResponseWrapDataArgs) GetData() string

func (*ResponseWrapDataArgs) GetJWT Uses

func (m *ResponseWrapDataArgs) GetJWT() bool

func (*ResponseWrapDataArgs) GetTTL Uses

func (m *ResponseWrapDataArgs) GetTTL() int64

func (*ResponseWrapDataArgs) ProtoMessage Uses

func (*ResponseWrapDataArgs) ProtoMessage()

func (*ResponseWrapDataArgs) Reset Uses

func (m *ResponseWrapDataArgs) Reset()

func (*ResponseWrapDataArgs) String Uses

func (m *ResponseWrapDataArgs) String() string

func (*ResponseWrapDataArgs) XXX_DiscardUnknown Uses

func (m *ResponseWrapDataArgs) XXX_DiscardUnknown()

func (*ResponseWrapDataArgs) XXX_Marshal Uses

func (m *ResponseWrapDataArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseWrapDataArgs) XXX_Merge Uses

func (m *ResponseWrapDataArgs) XXX_Merge(src proto.Message)

func (*ResponseWrapDataArgs) XXX_Size Uses

func (m *ResponseWrapDataArgs) XXX_Size() int

func (*ResponseWrapDataArgs) XXX_Unmarshal Uses

func (m *ResponseWrapDataArgs) XXX_Unmarshal(b []byte) error

type ResponseWrapDataReply Uses

type ResponseWrapDataReply struct {
    WrapInfo             *ResponseWrapInfo `sentinel:"" protobuf:"bytes,1,opt,name=wrap_info,json=wrapInfo,proto3" json:"wrap_info,omitempty"`
    Err                  string            `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*ResponseWrapDataReply) Descriptor Uses

func (*ResponseWrapDataReply) Descriptor() ([]byte, []int)

func (*ResponseWrapDataReply) GetErr Uses

func (m *ResponseWrapDataReply) GetErr() string

func (*ResponseWrapDataReply) GetWrapInfo Uses

func (m *ResponseWrapDataReply) GetWrapInfo() *ResponseWrapInfo

func (*ResponseWrapDataReply) ProtoMessage Uses

func (*ResponseWrapDataReply) ProtoMessage()

func (*ResponseWrapDataReply) Reset Uses

func (m *ResponseWrapDataReply) Reset()

func (*ResponseWrapDataReply) String Uses

func (m *ResponseWrapDataReply) String() string

func (*ResponseWrapDataReply) XXX_DiscardUnknown Uses

func (m *ResponseWrapDataReply) XXX_DiscardUnknown()

func (*ResponseWrapDataReply) XXX_Marshal Uses

func (m *ResponseWrapDataReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseWrapDataReply) XXX_Merge Uses

func (m *ResponseWrapDataReply) XXX_Merge(src proto.Message)

func (*ResponseWrapDataReply) XXX_Size Uses

func (m *ResponseWrapDataReply) XXX_Size() int

func (*ResponseWrapDataReply) XXX_Unmarshal Uses

func (m *ResponseWrapDataReply) XXX_Unmarshal(b []byte) error

type ResponseWrapInfo Uses

type ResponseWrapInfo struct {
    // Setting to non-zero specifies that the response should be wrapped.
    // Specifies the desired TTL of the wrapping token.
    TTL int64 `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
    // The token containing the wrapped response
    Token string `sentinel:"" protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
    // The token accessor for the wrapped response token
    Accessor string `sentinel:"" protobuf:"bytes,3,opt,name=accessor,proto3" json:"accessor,omitempty"`
    // The creation time. This can be used with the TTL to figure out an
    // expected expiration.
    CreationTime *timestamp.Timestamp `sentinel:"" protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
    // If the contained response is the output of a token creation call, the
    // created token's accessor will be accessible here
    WrappedAccessor string `sentinel:"" protobuf:"bytes,5,opt,name=wrapped_accessor,json=wrappedAccessor,proto3" json:"wrapped_accessor,omitempty"`
    // WrappedEntityID is the entity identifier of the caller who initiated the
    // wrapping request
    WrappedEntityID string `sentinel:"" protobuf:"bytes,6,opt,name=wrapped_entity_id,json=wrappedEntityID,proto3" json:"wrapped_entity_id,omitempty"`
    // The format to use. This doesn't get returned, it's only internal.
    Format string `sentinel:"" protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"`
    // CreationPath is the original request path that was used to create
    // the wrapped response.
    CreationPath string `sentinel:"" protobuf:"bytes,8,opt,name=creation_path,json=creationPath,proto3" json:"creation_path,omitempty"`
    // Controls seal wrapping behavior downstream for specific use cases
    SealWrap             bool     `sentinel:"" protobuf:"varint,9,opt,name=seal_wrap,json=sealWrap,proto3" json:"seal_wrap,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func LogicalResponseWrapInfoToProtoResponseWrapInfo Uses

func LogicalResponseWrapInfoToProtoResponseWrapInfo(i *wrapping.ResponseWrapInfo) (*ResponseWrapInfo, error)

func (*ResponseWrapInfo) Descriptor Uses

func (*ResponseWrapInfo) Descriptor() ([]byte, []int)

func (*ResponseWrapInfo) GetAccessor Uses

func (m *ResponseWrapInfo) GetAccessor() string

func (*ResponseWrapInfo) GetCreationPath Uses

func (m *ResponseWrapInfo) GetCreationPath() string

func (*ResponseWrapInfo) GetCreationTime Uses

func (m *ResponseWrapInfo) GetCreationTime() *timestamp.Timestamp

func (*ResponseWrapInfo) GetFormat Uses

func (m *ResponseWrapInfo) GetFormat() string

func (*ResponseWrapInfo) GetSealWrap Uses

func (m *ResponseWrapInfo) GetSealWrap() bool

func (*ResponseWrapInfo) GetTTL Uses

func (m *ResponseWrapInfo) GetTTL() int64

func (*ResponseWrapInfo) GetToken Uses

func (m *ResponseWrapInfo) GetToken() string

func (*ResponseWrapInfo) GetWrappedAccessor Uses

func (m *ResponseWrapInfo) GetWrappedAccessor() string

func (*ResponseWrapInfo) GetWrappedEntityID Uses

func (m *ResponseWrapInfo) GetWrappedEntityID() string

func (*ResponseWrapInfo) ProtoMessage Uses

func (*ResponseWrapInfo) ProtoMessage()

func (*ResponseWrapInfo) Reset Uses

func (m *ResponseWrapInfo) Reset()

func (*ResponseWrapInfo) String Uses

func (m *ResponseWrapInfo) String() string

func (*ResponseWrapInfo) XXX_DiscardUnknown Uses

func (m *ResponseWrapInfo) XXX_DiscardUnknown()

func (*ResponseWrapInfo) XXX_Marshal Uses

func (m *ResponseWrapInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseWrapInfo) XXX_Merge Uses

func (m *ResponseWrapInfo) XXX_Merge(src proto.Message)

func (*ResponseWrapInfo) XXX_Size Uses

func (m *ResponseWrapInfo) XXX_Size() int

func (*ResponseWrapInfo) XXX_Unmarshal Uses

func (m *ResponseWrapInfo) XXX_Unmarshal(b []byte) error

type Secret Uses

type Secret struct {
    LeaseOptions *LeaseOptions `sentinel:"" protobuf:"bytes,1,opt,name=lease_options,json=leaseOptions,proto3" json:"lease_options,omitempty"`
    // InternalData is a JSON object that is stored with the secret.
    // This will be sent back during a Renew/Revoke for storing internal data
    // used for those operations.
    InternalData string `sentinel:"" protobuf:"bytes,2,opt,name=internal_data,json=internalData,proto3" json:"internal_data,omitempty"`
    // LeaseID is the ID returned to the user to manage this secret.
    // This is generated by Vault core. Any set value will be ignored.
    // For requests, this will always be blank.
    LeaseID              string   `sentinel:"" protobuf:"bytes,3,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func LogicalSecretToProtoSecret Uses

func LogicalSecretToProtoSecret(s *logical.Secret) (*Secret, error)

func (*Secret) Descriptor Uses

func (*Secret) Descriptor() ([]byte, []int)

func (*Secret) GetInternalData Uses

func (m *Secret) GetInternalData() string

func (*Secret) GetLeaseID Uses

func (m *Secret) GetLeaseID() string

func (*Secret) GetLeaseOptions Uses

func (m *Secret) GetLeaseOptions() *LeaseOptions

func (*Secret) ProtoMessage Uses

func (*Secret) ProtoMessage()

func (*Secret) Reset Uses

func (m *Secret) Reset()

func (*Secret) String Uses

func (m *Secret) String() string

func (*Secret) XXX_DiscardUnknown Uses

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal Uses

func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Secret) XXX_Merge Uses

func (m *Secret) XXX_Merge(src proto.Message)

func (*Secret) XXX_Size Uses

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal Uses

func (m *Secret) XXX_Unmarshal(b []byte) error

type SetupArgs Uses

type SetupArgs struct {
    BrokerID             uint32            `sentinel:"" protobuf:"varint,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
    Config               map[string]string `sentinel:"" protobuf:"bytes,2,rep,name=Config,proto3" json:"Config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    BackendUUID          string            `sentinel:"" protobuf:"bytes,3,opt,name=backendUUID,proto3" json:"backendUUID,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

SetupArgs is the args for Setup method.

func (*SetupArgs) Descriptor Uses

func (*SetupArgs) Descriptor() ([]byte, []int)

func (*SetupArgs) GetBackendUUID Uses

func (m *SetupArgs) GetBackendUUID() string

func (*SetupArgs) GetBrokerID Uses

func (m *SetupArgs) GetBrokerID() uint32

func (*SetupArgs) GetConfig Uses

func (m *SetupArgs) GetConfig() map[string]string

func (*SetupArgs) ProtoMessage Uses

func (*SetupArgs) ProtoMessage()

func (*SetupArgs) Reset Uses

func (m *SetupArgs) Reset()

func (*SetupArgs) String Uses

func (m *SetupArgs) String() string

func (*SetupArgs) XXX_DiscardUnknown Uses

func (m *SetupArgs) XXX_DiscardUnknown()

func (*SetupArgs) XXX_Marshal Uses

func (m *SetupArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetupArgs) XXX_Merge Uses

func (m *SetupArgs) XXX_Merge(src proto.Message)

func (*SetupArgs) XXX_Size Uses

func (m *SetupArgs) XXX_Size() int

func (*SetupArgs) XXX_Unmarshal Uses

func (m *SetupArgs) XXX_Unmarshal(b []byte) error

type SetupReply Uses

type SetupReply struct {
    Err                  string   `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

SetupReply is the reply for Setup method.

func (*SetupReply) Descriptor Uses

func (*SetupReply) Descriptor() ([]byte, []int)

func (*SetupReply) GetErr Uses

func (m *SetupReply) GetErr() string

func (*SetupReply) ProtoMessage Uses

func (*SetupReply) ProtoMessage()

func (*SetupReply) Reset Uses

func (m *SetupReply) Reset()

func (*SetupReply) String Uses

func (m *SetupReply) String() string

func (*SetupReply) XXX_DiscardUnknown Uses

func (m *SetupReply) XXX_DiscardUnknown()

func (*SetupReply) XXX_Marshal Uses

func (m *SetupReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetupReply) XXX_Merge Uses

func (m *SetupReply) XXX_Merge(src proto.Message)

func (*SetupReply) XXX_Size Uses

func (m *SetupReply) XXX_Size() int

func (*SetupReply) XXX_Unmarshal Uses

func (m *SetupReply) XXX_Unmarshal(b []byte) error

type SpecialPathsReply Uses

type SpecialPathsReply struct {
    Paths                *Paths   `sentinel:"" protobuf:"bytes,1,opt,name=paths,proto3" json:"paths,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

SpecialPathsReply is the reply for SpecialPaths method.

func (*SpecialPathsReply) Descriptor Uses

func (*SpecialPathsReply) Descriptor() ([]byte, []int)

func (*SpecialPathsReply) GetPaths Uses

func (m *SpecialPathsReply) GetPaths() *Paths

func (*SpecialPathsReply) ProtoMessage Uses

func (*SpecialPathsReply) ProtoMessage()

func (*SpecialPathsReply) Reset Uses

func (m *SpecialPathsReply) Reset()

func (*SpecialPathsReply) String Uses

func (m *SpecialPathsReply) String() string

func (*SpecialPathsReply) XXX_DiscardUnknown Uses

func (m *SpecialPathsReply) XXX_DiscardUnknown()

func (*SpecialPathsReply) XXX_Marshal Uses

func (m *SpecialPathsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SpecialPathsReply) XXX_Merge Uses

func (m *SpecialPathsReply) XXX_Merge(src proto.Message)

func (*SpecialPathsReply) XXX_Size Uses

func (m *SpecialPathsReply) XXX_Size() int

func (*SpecialPathsReply) XXX_Unmarshal Uses

func (m *SpecialPathsReply) XXX_Unmarshal(b []byte) error

type StorageClient Uses

type StorageClient interface {
    List(ctx context.Context, in *StorageListArgs, opts ...grpc.CallOption) (*StorageListReply, error)
    Get(ctx context.Context, in *StorageGetArgs, opts ...grpc.CallOption) (*StorageGetReply, error)
    Put(ctx context.Context, in *StoragePutArgs, opts ...grpc.CallOption) (*StoragePutReply, error)
    Delete(ctx context.Context, in *StorageDeleteArgs, opts ...grpc.CallOption) (*StorageDeleteReply, error)
}

StorageClient is the client API for Storage service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStorageClient Uses

func NewStorageClient(cc *grpc.ClientConn) StorageClient

type StorageDeleteArgs Uses

type StorageDeleteArgs struct {
    Key                  string   `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StorageDeleteArgs) Descriptor Uses

func (*StorageDeleteArgs) Descriptor() ([]byte, []int)

func (*StorageDeleteArgs) GetKey Uses

func (m *StorageDeleteArgs) GetKey() string

func (*StorageDeleteArgs) ProtoMessage Uses

func (*StorageDeleteArgs) ProtoMessage()

func (*StorageDeleteArgs) Reset Uses

func (m *StorageDeleteArgs) Reset()

func (*StorageDeleteArgs) String Uses

func (m *StorageDeleteArgs) String() string

func (*StorageDeleteArgs) XXX_DiscardUnknown Uses

func (m *StorageDeleteArgs) XXX_DiscardUnknown()

func (*StorageDeleteArgs) XXX_Marshal Uses

func (m *StorageDeleteArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageDeleteArgs) XXX_Merge Uses

func (m *StorageDeleteArgs) XXX_Merge(src proto.Message)

func (*StorageDeleteArgs) XXX_Size Uses

func (m *StorageDeleteArgs) XXX_Size() int

func (*StorageDeleteArgs) XXX_Unmarshal Uses

func (m *StorageDeleteArgs) XXX_Unmarshal(b []byte) error

type StorageDeleteReply Uses

type StorageDeleteReply struct {
    Err                  string   `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StorageDeleteReply) Descriptor Uses

func (*StorageDeleteReply) Descriptor() ([]byte, []int)

func (*StorageDeleteReply) GetErr Uses

func (m *StorageDeleteReply) GetErr() string

func (*StorageDeleteReply) ProtoMessage Uses

func (*StorageDeleteReply) ProtoMessage()

func (*StorageDeleteReply) Reset Uses

func (m *StorageDeleteReply) Reset()

func (*StorageDeleteReply) String Uses

func (m *StorageDeleteReply) String() string

func (*StorageDeleteReply) XXX_DiscardUnknown Uses

func (m *StorageDeleteReply) XXX_DiscardUnknown()

func (*StorageDeleteReply) XXX_Marshal Uses

func (m *StorageDeleteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageDeleteReply) XXX_Merge Uses

func (m *StorageDeleteReply) XXX_Merge(src proto.Message)

func (*StorageDeleteReply) XXX_Size Uses

func (m *StorageDeleteReply) XXX_Size() int

func (*StorageDeleteReply) XXX_Unmarshal Uses

func (m *StorageDeleteReply) XXX_Unmarshal(b []byte) error

type StorageEntry Uses

type StorageEntry struct {
    Key                  string   `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Value                []byte   `sentinel:"" protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    SealWrap             bool     `sentinel:"" protobuf:"varint,3,opt,name=seal_wrap,json=sealWrap,proto3" json:"seal_wrap,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func LogicalStorageEntryToProtoStorageEntry Uses

func LogicalStorageEntryToProtoStorageEntry(e *logical.StorageEntry) *StorageEntry

func (*StorageEntry) Descriptor Uses

func (*StorageEntry) Descriptor() ([]byte, []int)

func (*StorageEntry) GetKey Uses

func (m *StorageEntry) GetKey() string

func (*StorageEntry) GetSealWrap Uses

func (m *StorageEntry) GetSealWrap() bool

func (*StorageEntry) GetValue Uses

func (m *StorageEntry) GetValue() []byte

func (*StorageEntry) ProtoMessage Uses

func (*StorageEntry) ProtoMessage()

func (*StorageEntry) Reset Uses

func (m *StorageEntry) Reset()

func (*StorageEntry) String Uses

func (m *StorageEntry) String() string

func (*StorageEntry) XXX_DiscardUnknown Uses

func (m *StorageEntry) XXX_DiscardUnknown()

func (*StorageEntry) XXX_Marshal Uses

func (m *StorageEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageEntry) XXX_Merge Uses

func (m *StorageEntry) XXX_Merge(src proto.Message)

func (*StorageEntry) XXX_Size Uses

func (m *StorageEntry) XXX_Size() int

func (*StorageEntry) XXX_Unmarshal Uses

func (m *StorageEntry) XXX_Unmarshal(b []byte) error

type StorageGetArgs Uses

type StorageGetArgs struct {
    Key                  string   `sentinel:"" protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StorageGetArgs) Descriptor Uses

func (*StorageGetArgs) Descriptor() ([]byte, []int)

func (*StorageGetArgs) GetKey Uses

func (m *StorageGetArgs) GetKey() string

func (*StorageGetArgs) ProtoMessage Uses

func (*StorageGetArgs) ProtoMessage()

func (*StorageGetArgs) Reset Uses

func (m *StorageGetArgs) Reset()

func (*StorageGetArgs) String Uses

func (m *StorageGetArgs) String() string

func (*StorageGetArgs) XXX_DiscardUnknown Uses

func (m *StorageGetArgs) XXX_DiscardUnknown()

func (*StorageGetArgs) XXX_Marshal Uses

func (m *StorageGetArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageGetArgs) XXX_Merge Uses

func (m *StorageGetArgs) XXX_Merge(src proto.Message)

func (*StorageGetArgs) XXX_Size Uses

func (m *StorageGetArgs) XXX_Size() int

func (*StorageGetArgs) XXX_Unmarshal Uses

func (m *StorageGetArgs) XXX_Unmarshal(b []byte) error

type StorageGetReply Uses

type StorageGetReply struct {
    Entry                *StorageEntry `sentinel:"" protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
    Err                  string        `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*StorageGetReply) Descriptor Uses

func (*StorageGetReply) Descriptor() ([]byte, []int)

func (*StorageGetReply) GetEntry Uses

func (m *StorageGetReply) GetEntry() *StorageEntry

func (*StorageGetReply) GetErr Uses

func (m *StorageGetReply) GetErr() string

func (*StorageGetReply) ProtoMessage Uses

func (*StorageGetReply) ProtoMessage()

func (*StorageGetReply) Reset Uses

func (m *StorageGetReply) Reset()

func (*StorageGetReply) String Uses

func (m *StorageGetReply) String() string

func (*StorageGetReply) XXX_DiscardUnknown Uses

func (m *StorageGetReply) XXX_DiscardUnknown()

func (*StorageGetReply) XXX_Marshal Uses

func (m *StorageGetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageGetReply) XXX_Merge Uses

func (m *StorageGetReply) XXX_Merge(src proto.Message)

func (*StorageGetReply) XXX_Size Uses

func (m *StorageGetReply) XXX_Size() int

func (*StorageGetReply) XXX_Unmarshal Uses

func (m *StorageGetReply) XXX_Unmarshal(b []byte) error

type StorageListArgs Uses

type StorageListArgs struct {
    Prefix               string   `sentinel:"" protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StorageListArgs) Descriptor Uses

func (*StorageListArgs) Descriptor() ([]byte, []int)

func (*StorageListArgs) GetPrefix Uses

func (m *StorageListArgs) GetPrefix() string

func (*StorageListArgs) ProtoMessage Uses

func (*StorageListArgs) ProtoMessage()

func (*StorageListArgs) Reset Uses

func (m *StorageListArgs) Reset()

func (*StorageListArgs) String Uses

func (m *StorageListArgs) String() string

func (*StorageListArgs) XXX_DiscardUnknown Uses

func (m *StorageListArgs) XXX_DiscardUnknown()

func (*StorageListArgs) XXX_Marshal Uses

func (m *StorageListArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageListArgs) XXX_Merge Uses

func (m *StorageListArgs) XXX_Merge(src proto.Message)

func (*StorageListArgs) XXX_Size Uses

func (m *StorageListArgs) XXX_Size() int

func (*StorageListArgs) XXX_Unmarshal Uses

func (m *StorageListArgs) XXX_Unmarshal(b []byte) error

type StorageListReply Uses

type StorageListReply struct {
    Keys                 []string `sentinel:"" protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
    Err                  string   `sentinel:"" protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StorageListReply) Descriptor Uses

func (*StorageListReply) Descriptor() ([]byte, []int)

func (*StorageListReply) GetErr Uses

func (m *StorageListReply) GetErr() string

func (*StorageListReply) GetKeys Uses

func (m *StorageListReply) GetKeys() []string

func (*StorageListReply) ProtoMessage Uses

func (*StorageListReply) ProtoMessage()

func (*StorageListReply) Reset Uses

func (m *StorageListReply) Reset()

func (*StorageListReply) String Uses

func (m *StorageListReply) String() string

func (*StorageListReply) XXX_DiscardUnknown Uses

func (m *StorageListReply) XXX_DiscardUnknown()

func (*StorageListReply) XXX_Marshal Uses

func (m *StorageListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageListReply) XXX_Merge Uses

func (m *StorageListReply) XXX_Merge(src proto.Message)

func (*StorageListReply) XXX_Size Uses

func (m *StorageListReply) XXX_Size() int

func (*StorageListReply) XXX_Unmarshal Uses

func (m *StorageListReply) XXX_Unmarshal(b []byte) error

type StoragePutArgs Uses

type StoragePutArgs struct {
    Entry                *StorageEntry `sentinel:"" protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*StoragePutArgs) Descriptor Uses

func (*StoragePutArgs) Descriptor() ([]byte, []int)

func (*StoragePutArgs) GetEntry Uses

func (m *StoragePutArgs) GetEntry() *StorageEntry

func (*StoragePutArgs) ProtoMessage Uses

func (*StoragePutArgs) ProtoMessage()

func (*StoragePutArgs) Reset Uses

func (m *StoragePutArgs) Reset()

func (*StoragePutArgs) String Uses

func (m *StoragePutArgs) String() string

func (*StoragePutArgs) XXX_DiscardUnknown Uses

func (m *StoragePutArgs) XXX_DiscardUnknown()

func (*StoragePutArgs) XXX_Marshal Uses

func (m *StoragePutArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoragePutArgs) XXX_Merge Uses

func (m *StoragePutArgs) XXX_Merge(src proto.Message)

func (*StoragePutArgs) XXX_Size Uses

func (m *StoragePutArgs) XXX_Size() int

func (*StoragePutArgs) XXX_Unmarshal Uses

func (m *StoragePutArgs) XXX_Unmarshal(b []byte) error

type StoragePutReply Uses

type StoragePutReply struct {
    Err                  string   `sentinel:"" protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StoragePutReply) Descriptor Uses

func (*StoragePutReply) Descriptor() ([]byte, []int)

func (*StoragePutReply) GetErr Uses

func (m *StoragePutReply) GetErr() string

func (*StoragePutReply) ProtoMessage Uses

func (*StoragePutReply) ProtoMessage()

func (*StoragePutReply) Reset Uses

func (m *StoragePutReply) Reset()

func (*StoragePutReply) String Uses

func (m *StoragePutReply) String() string

func (*StoragePutReply) XXX_DiscardUnknown Uses

func (m *StoragePutReply) XXX_DiscardUnknown()

func (*StoragePutReply) XXX_Marshal Uses

func (m *StoragePutReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoragePutReply) XXX_Merge Uses

func (m *StoragePutReply) XXX_Merge(src proto.Message)

func (*StoragePutReply) XXX_Size Uses

func (m *StoragePutReply) XXX_Size() int

func (*StoragePutReply) XXX_Unmarshal Uses

func (m *StoragePutReply) XXX_Unmarshal(b []byte) error

type StorageServer Uses

type StorageServer interface {
    List(context.Context, *StorageListArgs) (*StorageListReply, error)
    Get(context.Context, *StorageGetArgs) (*StorageGetReply, error)
    Put(context.Context, *StoragePutArgs) (*StoragePutReply, error)
    Delete(context.Context, *StorageDeleteArgs) (*StorageDeleteReply, error)
}

StorageServer is the server API for Storage service.

type SystemViewClient Uses

type SystemViewClient interface {
    // DefaultLeaseTTL returns the default lease TTL set in Vault configuration
    DefaultLeaseTTL(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error)
    // MaxLeaseTTL returns the max lease TTL set in Vault configuration; backend
    // authors should take care not to issue credentials that last longer than
    // this value, as Vault will revoke them
    MaxLeaseTTL(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TTLReply, error)
    // Tainted, returns true if the mount is tainted. A mount is tainted if it is in the
    // process of being unmounted. This should only be used in special
    // circumstances; a primary use-case is as a guard in revocation functions.
    // If revocation of a backend's leases fails it can keep the unmounting
    // process from being successful. If the reason for this failure is not
    // relevant when the mount is tainted (for instance, saving a CRL to disk
    // when the stored CRL will be removed during the unmounting process
    // anyways), we can ignore the errors to allow unmounting to complete.
    Tainted(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TaintedReply, error)
    // CachingDisabled returns true if caching is disabled. If true, no caches
    // should be used, despite known slowdowns.
    CachingDisabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CachingDisabledReply, error)
    // ReplicationState indicates the state of cluster replication
    ReplicationState(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReplicationStateReply, error)
    // ResponseWrapData wraps the given data in a cubbyhole and returns the
    // token used to unwrap.
    ResponseWrapData(ctx context.Context, in *ResponseWrapDataArgs, opts ...grpc.CallOption) (*ResponseWrapDataReply, error)
    // MlockEnabled returns the configuration setting for enabling mlock on
    // plugins.
    MlockEnabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MlockEnabledReply, error)
    // LocalMount, when run from a system view attached to a request, indicates
    // whether the request is affecting a local mount or not
    LocalMount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LocalMountReply, error)
    // EntityInfo returns the basic entity information for the given entity id
    EntityInfo(ctx context.Context, in *EntityInfoArgs, opts ...grpc.CallOption) (*EntityInfoReply, error)
    // PluginEnv returns Vault environment information used by plugins
    PluginEnv(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PluginEnvReply, error)
}

SystemViewClient is the client API for SystemView service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSystemViewClient Uses

func NewSystemViewClient(cc *grpc.ClientConn) SystemViewClient

type SystemViewServer Uses

type SystemViewServer interface {
    // DefaultLeaseTTL returns the default lease TTL set in Vault configuration
    DefaultLeaseTTL(context.Context, *Empty) (*TTLReply, error)
    // MaxLeaseTTL returns the max lease TTL set in Vault configuration; backend
    // authors should take care not to issue credentials that last longer than
    // this value, as Vault will revoke them
    MaxLeaseTTL(context.Context, *Empty) (*TTLReply, error)
    // Tainted, returns true if the mount is tainted. A mount is tainted if it is in the
    // process of being unmounted. This should only be used in special
    // circumstances; a primary use-case is as a guard in revocation functions.
    // If revocation of a backend's leases fails it can keep the unmounting
    // process from being successful. If the reason for this failure is not
    // relevant when the mount is tainted (for instance, saving a CRL to disk
    // when the stored CRL will be removed during the unmounting process
    // anyways), we can ignore the errors to allow unmounting to complete.
    Tainted(context.Context, *Empty) (*TaintedReply, error)
    // CachingDisabled returns true if caching is disabled. If true, no caches
    // should be used, despite known slowdowns.
    CachingDisabled(context.Context, *Empty) (*CachingDisabledReply, error)
    // ReplicationState indicates the state of cluster replication
    ReplicationState(context.Context, *Empty) (*ReplicationStateReply, error)
    // ResponseWrapData wraps the given data in a cubbyhole and returns the
    // token used to unwrap.
    ResponseWrapData(context.Context, *ResponseWrapDataArgs) (*ResponseWrapDataReply, error)
    // MlockEnabled returns the configuration setting for enabling mlock on
    // plugins.
    MlockEnabled(context.Context, *Empty) (*MlockEnabledReply, error)
    // LocalMount, when run from a system view attached to a request, indicates
    // whether the request is affecting a local mount or not
    LocalMount(context.Context, *Empty) (*LocalMountReply, error)
    // EntityInfo returns the basic entity information for the given entity id
    EntityInfo(context.Context, *EntityInfoArgs) (*EntityInfoReply, error)
    // PluginEnv returns Vault environment information used by plugins
    PluginEnv(context.Context, *Empty) (*PluginEnvReply, error)
}

SystemViewServer is the server API for SystemView service.

type TTLReply Uses

type TTLReply struct {
    TTL                  int64    `sentinel:"" protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*TTLReply) Descriptor Uses

func (*TTLReply) Descriptor() ([]byte, []int)

func (*TTLReply) GetTTL Uses

func (m *TTLReply) GetTTL() int64

func (*TTLReply) ProtoMessage Uses

func (*TTLReply) ProtoMessage()

func (*TTLReply) Reset Uses

func (m *TTLReply) Reset()

func (*TTLReply) String Uses

func (m *TTLReply) String() string

func (*TTLReply) XXX_DiscardUnknown Uses

func (m *TTLReply) XXX_DiscardUnknown()

func (*TTLReply) XXX_Marshal Uses

func (m *TTLReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TTLReply) XXX_Merge Uses

func (m *TTLReply) XXX_Merge(src proto.Message)

func (*TTLReply) XXX_Size Uses

func (m *TTLReply) XXX_Size() int

func (*TTLReply) XXX_Unmarshal Uses

func (m *TTLReply) XXX_Unmarshal(b []byte) error

type TaintedReply Uses

type TaintedReply struct {
    Tainted              bool     `sentinel:"" protobuf:"varint,1,opt,name=tainted,proto3" json:"tainted,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*TaintedReply) Descriptor Uses

func (*TaintedReply) Descriptor() ([]byte, []int)

func (*TaintedReply) GetTainted Uses

func (m *TaintedReply) GetTainted() bool

func (*TaintedReply) ProtoMessage Uses

func (*TaintedReply) ProtoMessage()

func (*TaintedReply) Reset Uses

func (m *TaintedReply) Reset()

func (*TaintedReply) String Uses

func (m *TaintedReply) String() string

func (*TaintedReply) XXX_DiscardUnknown Uses

func (m *TaintedReply) XXX_DiscardUnknown()

func (*TaintedReply) XXX_Marshal Uses

func (m *TaintedReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaintedReply) XXX_Merge Uses

func (m *TaintedReply) XXX_Merge(src proto.Message)

func (*TaintedReply) XXX_Size Uses

func (m *TaintedReply) XXX_Size() int

func (*TaintedReply) XXX_Unmarshal Uses

func (m *TaintedReply) XXX_Unmarshal(b []byte) error

type TokenEntry Uses

type TokenEntry struct {
    ID                   string            `sentinel:"" protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Accessor             string            `sentinel:"" protobuf:"bytes,2,opt,name=accessor,proto3" json:"accessor,omitempty"`
    Parent               string            `sentinel:"" protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
    Policies             []string          `sentinel:"" protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty"`
    Path                 string            `sentinel:"" protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
    Meta                 map[string]string `sentinel:"" protobuf:"bytes,6,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    DisplayName          string            `sentinel:"" protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    NumUses              int64             `sentinel:"" protobuf:"varint,8,opt,name=num_uses,json=numUses,proto3" json:"num_uses,omitempty"`
    CreationTime         int64             `sentinel:"" protobuf:"varint,9,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
    TTL                  int64             `sentinel:"" protobuf:"varint,10,opt,name=ttl,proto3" json:"ttl,omitempty"`
    ExplicitMaxTTL       int64             `sentinel:"" protobuf:"varint,11,opt,name=explicit_max_ttl,json=explicitMaxTtl,proto3" json:"explicit_max_ttl,omitempty"`
    Role                 string            `sentinel:"" protobuf:"bytes,12,opt,name=role,proto3" json:"role,omitempty"`
    Period               int64             `sentinel:"" protobuf:"varint,13,opt,name=period,proto3" json:"period,omitempty"`
    EntityID             string            `sentinel:"" protobuf:"bytes,14,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
    BoundCIDRs           []string          `sentinel:"" protobuf:"bytes,15,rep,name=bound_cidrs,json=boundCidrs,proto3" json:"bound_cidrs,omitempty"`
    NamespaceID          string            `sentinel:"" protobuf:"bytes,16,opt,name=namespace_id,json=namespaceID,proto3" json:"namespace_id,omitempty"`
    CubbyholeID          string            `sentinel:"" protobuf:"bytes,17,opt,name=cubbyhole_id,json=cubbyholeId,proto3" json:"cubbyhole_id,omitempty"`
    Type                 uint32            `sentinel:"" protobuf:"varint,18,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func LogicalTokenEntryToProtoTokenEntry Uses

func LogicalTokenEntryToProtoTokenEntry(t *logical.TokenEntry) *TokenEntry

func (*TokenEntry) Descriptor Uses

func (*TokenEntry) Descriptor() ([]byte, []int)

func (*TokenEntry) GetAccessor Uses

func (m *TokenEntry) GetAccessor() string

func (*TokenEntry) GetBoundCIDRs Uses

func (m *TokenEntry) GetBoundCIDRs() []string

func (*TokenEntry) GetCreationTime Uses

func (m *TokenEntry) GetCreationTime() int64

func (*TokenEntry) GetCubbyholeID Uses

func (m *TokenEntry) GetCubbyholeID() string

func (*TokenEntry) GetDisplayName Uses

func (m *TokenEntry) GetDisplayName() string

func (*TokenEntry) GetEntityID Uses

func (m *TokenEntry) GetEntityID() string

func (*TokenEntry) GetExplicitMaxTTL Uses

func (m *TokenEntry) GetExplicitMaxTTL() int64

func (*TokenEntry) GetID Uses

func (m *TokenEntry) GetID() string

func (*TokenEntry) GetMeta Uses

func (m *TokenEntry) GetMeta() map[string]string

func (*TokenEntry) GetNamespaceID Uses

func (m *TokenEntry) GetNamespaceID() string

func (*TokenEntry) GetNumUses Uses

func (m *TokenEntry) GetNumUses() int64

func (*TokenEntry) GetParent Uses

func (m *TokenEntry) GetParent() string

func (*TokenEntry) GetPath Uses

func (m *TokenEntry) GetPath() string

func (*TokenEntry) GetPeriod Uses

func (m *TokenEntry) GetPeriod() int64

func (*TokenEntry) GetPolicies Uses

func (m *TokenEntry) GetPolicies() []string

func (*TokenEntry) GetRole Uses

func (m *TokenEntry) GetRole() string

func (*TokenEntry) GetTTL Uses

func (m *TokenEntry) GetTTL() int64

func (*TokenEntry) GetType Uses

func (m *TokenEntry) GetType() uint32

func (*TokenEntry) ProtoMessage Uses

func (*TokenEntry) ProtoMessage()

func (*TokenEntry) Reset Uses

func (m *TokenEntry) Reset()

func (*TokenEntry) String Uses

func (m *TokenEntry) String() string

func (*TokenEntry) XXX_DiscardUnknown Uses

func (m *TokenEntry) XXX_DiscardUnknown()

func (*TokenEntry) XXX_Marshal Uses

func (m *TokenEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenEntry) XXX_Merge Uses

func (m *TokenEntry) XXX_Merge(src proto.Message)

func (*TokenEntry) XXX_Size Uses

func (m *TokenEntry) XXX_Size() int

func (*TokenEntry) XXX_Unmarshal Uses

func (m *TokenEntry) XXX_Unmarshal(b []byte) error

type TypeReply Uses

type TypeReply struct {
    Type                 uint32   `sentinel:"" protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

TypeReply is the reply for the Type method.

func (*TypeReply) Descriptor Uses

func (*TypeReply) Descriptor() ([]byte, []int)

func (*TypeReply) GetType Uses

func (m *TypeReply) GetType() uint32

func (*TypeReply) ProtoMessage Uses

func (*TypeReply) ProtoMessage()

func (*TypeReply) Reset Uses

func (m *TypeReply) Reset()

func (*TypeReply) String Uses

func (m *TypeReply) String() string

func (*TypeReply) XXX_DiscardUnknown Uses

func (m *TypeReply) XXX_DiscardUnknown()

func (*TypeReply) XXX_Marshal Uses

func (m *TypeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TypeReply) XXX_Merge Uses

func (m *TypeReply) XXX_Merge(src proto.Message)

func (*TypeReply) XXX_Size Uses

func (m *TypeReply) XXX_Size() int

func (*TypeReply) XXX_Unmarshal Uses

func (m *TypeReply) XXX_Unmarshal(b []byte) error

type UnimplementedBackendServer Uses

type UnimplementedBackendServer struct {
}

UnimplementedBackendServer can be embedded to have forward compatible implementations.

func (*UnimplementedBackendServer) Cleanup Uses

func (*UnimplementedBackendServer) Cleanup(ctx context.Context, req *Empty) (*Empty, error)

func (*UnimplementedBackendServer) HandleExistenceCheck Uses

func (*UnimplementedBackendServer) HandleExistenceCheck(ctx context.Context, req *HandleExistenceCheckArgs) (*HandleExistenceCheckReply, error)

func (*UnimplementedBackendServer) HandleRequest Uses

func (*UnimplementedBackendServer) HandleRequest(ctx context.Context, req *HandleRequestArgs) (*HandleRequestReply, error)

func (*UnimplementedBackendServer) Initialize Uses

func (*UnimplementedBackendServer) Initialize(ctx context.Context, req *InitializeArgs) (*InitializeReply, error)

func (*UnimplementedBackendServer) InvalidateKey Uses

func (*UnimplementedBackendServer) InvalidateKey(ctx context.Context, req *InvalidateKeyArgs) (*Empty, error)

func (*UnimplementedBackendServer) Setup Uses

func (*UnimplementedBackendServer) Setup(ctx context.Context, req *SetupArgs) (*SetupReply, error)

func (*UnimplementedBackendServer) SpecialPaths Uses

func (*UnimplementedBackendServer) SpecialPaths(ctx context.Context, req *Empty) (*SpecialPathsReply, error)

func (*UnimplementedBackendServer) Type Uses

func (*UnimplementedBackendServer) Type(ctx context.Context, req *Empty) (*TypeReply, error)

type UnimplementedStorageServer Uses

type UnimplementedStorageServer struct {
}

UnimplementedStorageServer can be embedded to have forward compatible implementations.

func (*UnimplementedStorageServer) Delete Uses

func (*UnimplementedStorageServer) Delete(ctx context.Context, req *StorageDeleteArgs) (*StorageDeleteReply, error)

func (*UnimplementedStorageServer) Get Uses

func (*UnimplementedStorageServer) Get(ctx context.Context, req *StorageGetArgs) (*StorageGetReply, error)

func (*UnimplementedStorageServer) List Uses

func (*UnimplementedStorageServer) List(ctx context.Context, req *StorageListArgs) (*StorageListReply, error)

func (*UnimplementedStorageServer) Put Uses

func (*UnimplementedStorageServer) Put(ctx context.Context, req *StoragePutArgs) (*StoragePutReply, error)

type UnimplementedSystemViewServer Uses

type UnimplementedSystemViewServer struct {
}

UnimplementedSystemViewServer can be embedded to have forward compatible implementations.

func (*UnimplementedSystemViewServer) CachingDisabled Uses

func (*UnimplementedSystemViewServer) CachingDisabled(ctx context.Context, req *Empty) (*CachingDisabledReply, error)

func (*UnimplementedSystemViewServer) DefaultLeaseTTL Uses

func (*UnimplementedSystemViewServer) DefaultLeaseTTL(ctx context.Context, req *Empty) (*TTLReply, error)

func (*UnimplementedSystemViewServer) EntityInfo Uses

func (*UnimplementedSystemViewServer) EntityInfo(ctx context.Context, req *EntityInfoArgs) (*EntityInfoReply, error)

func (*UnimplementedSystemViewServer) LocalMount Uses

func (*UnimplementedSystemViewServer) LocalMount(ctx context.Context, req *Empty) (*LocalMountReply, error)

func (*UnimplementedSystemViewServer) MaxLeaseTTL Uses

func (*UnimplementedSystemViewServer) MaxLeaseTTL(ctx context.Context, req *Empty) (*TTLReply, error)

func (*UnimplementedSystemViewServer) MlockEnabled Uses

func (*UnimplementedSystemViewServer) MlockEnabled(ctx context.Context, req *Empty) (*MlockEnabledReply, error)

func (*UnimplementedSystemViewServer) PluginEnv Uses

func (*UnimplementedSystemViewServer) PluginEnv(ctx context.Context, req *Empty) (*PluginEnvReply, error)

func (*UnimplementedSystemViewServer) ReplicationState Uses

func (*UnimplementedSystemViewServer) ReplicationState(ctx context.Context, req *Empty) (*ReplicationStateReply, error)

func (*UnimplementedSystemViewServer) ResponseWrapData Uses

func (*UnimplementedSystemViewServer) ResponseWrapData(ctx context.Context, req *ResponseWrapDataArgs) (*ResponseWrapDataReply, error)

func (*UnimplementedSystemViewServer) Tainted Uses

func (*UnimplementedSystemViewServer) Tainted(ctx context.Context, req *Empty) (*TaintedReply, error)

Package pb imports 16 packages (graph) and is imported by 4 packages. Updated 2019-08-26. Refresh now. Tools for package owners.