pb

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ErrToString

func ErrToString(e error) string

func ProtoAuthToLogicalAuth

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

func ProtoConnectionToLogicalConnection added in v0.9.4

func ProtoConnectionToLogicalConnection(c *Connection) *logical.Connection

func ProtoErrToErr

func ProtoErrToErr(e *ProtoError) error

func ProtoLeaseOptionsToLogicalLeaseOptions

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

func ProtoRequestToLogicalRequest

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

func ProtoRequestWrapInfoToLogicalRequestWrapInfo

func ProtoRequestWrapInfoToLogicalRequestWrapInfo(i *RequestWrapInfo) *logical.RequestWrapInfo

func ProtoResponseToLogicalResponse

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

func ProtoResponseWrapInfoToLogicalResponseWrapInfo

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

func ProtoSecretToLogicalSecret

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

func ProtoStorageEntryToLogicalStorageEntry

func ProtoStorageEntryToLogicalStorageEntry(e *StorageEntry) *logical.StorageEntry

func ProtoTokenEntryToLogicalTokenEntry added in v0.11.2

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

func RegisterBackendServer

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

func RegisterStorageServer

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

func RegisterSystemViewServer

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

Types

type Auth

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 `` /* 169-byte string literal not displayed */
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func LogicalAuthToProtoAuth

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

func (*Auth) Descriptor

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

func (*Auth) GetAccessor

func (m *Auth) GetAccessor() string

func (*Auth) GetAlias

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

func (*Auth) GetBoundCIDRs added in v0.11.2

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

func (*Auth) GetClientToken

func (m *Auth) GetClientToken() string

func (*Auth) GetDisplayName

func (m *Auth) GetDisplayName() string

func (*Auth) GetEntityID

func (m *Auth) GetEntityID() string

func (*Auth) GetExplicitMaxTTL added in v0.11.2

func (m *Auth) GetExplicitMaxTTL() int64

func (*Auth) GetGroupAliases

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

func (*Auth) GetIdentityPolicies added in v0.11.2

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

func (*Auth) GetInternalData

func (m *Auth) GetInternalData() string

func (*Auth) GetLeaseOptions

func (m *Auth) GetLeaseOptions() *LeaseOptions

func (*Auth) GetMetadata

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

func (*Auth) GetNumUses

func (m *Auth) GetNumUses() int64

func (*Auth) GetPeriod

func (m *Auth) GetPeriod() int64

func (*Auth) GetPolicies

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

func (*Auth) GetTokenPolicies added in v0.11.2

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

func (*Auth) GetTokenType added in v1.0.0

func (m *Auth) GetTokenType() uint32

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) Reset

func (m *Auth) Reset()

func (*Auth) String

func (m *Auth) String() string

func (*Auth) XXX_DiscardUnknown added in v0.10.2

func (m *Auth) XXX_DiscardUnknown()

func (*Auth) XXX_Marshal added in v0.10.2

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

func (*Auth) XXX_Merge added in v0.10.2

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

func (*Auth) XXX_Size added in v0.10.2

func (m *Auth) XXX_Size() int

func (*Auth) XXX_Unmarshal added in v0.10.2

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

type BackendClient

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)
	// 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

func NewBackendClient(cc *grpc.ClientConn) BackendClient

type BackendServer

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)
	// Type returns the BackendType for the particular backend
	Type(context.Context, *Empty) (*TypeReply, error)
}

BackendServer is the server API for Backend service.

type CachingDisabledReply

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

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

func (*CachingDisabledReply) GetDisabled

func (m *CachingDisabledReply) GetDisabled() bool

func (*CachingDisabledReply) ProtoMessage

func (*CachingDisabledReply) ProtoMessage()

func (*CachingDisabledReply) Reset

func (m *CachingDisabledReply) Reset()

func (*CachingDisabledReply) String

func (m *CachingDisabledReply) String() string

func (*CachingDisabledReply) XXX_DiscardUnknown added in v0.10.2

func (m *CachingDisabledReply) XXX_DiscardUnknown()

func (*CachingDisabledReply) XXX_Marshal added in v0.10.2

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

func (*CachingDisabledReply) XXX_Merge added in v0.10.2

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

func (*CachingDisabledReply) XXX_Size added in v0.10.2

func (m *CachingDisabledReply) XXX_Size() int

func (*CachingDisabledReply) XXX_Unmarshal added in v0.10.2

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

type Connection added in v0.9.4

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 added in v0.9.4

func LogicalConnectionToProtoConnection(c *logical.Connection) *Connection

func (*Connection) Descriptor added in v0.9.4

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

func (*Connection) GetRemoteAddr added in v0.9.4

func (m *Connection) GetRemoteAddr() string

func (*Connection) ProtoMessage added in v0.9.4

func (*Connection) ProtoMessage()

func (*Connection) Reset added in v0.9.4

func (m *Connection) Reset()

func (*Connection) String added in v0.9.4

func (m *Connection) String() string

func (*Connection) XXX_DiscardUnknown added in v0.10.2

func (m *Connection) XXX_DiscardUnknown()

func (*Connection) XXX_Marshal added in v0.10.2

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

func (*Connection) XXX_Merge added in v0.10.2

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

func (*Connection) XXX_Size added in v0.10.2

func (m *Connection) XXX_Size() int

func (*Connection) XXX_Unmarshal added in v0.10.2

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

type Empty

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

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown added in v0.10.2

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal added in v0.10.2

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

func (*Empty) XXX_Merge added in v0.10.2

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

func (*Empty) XXX_Size added in v0.10.2

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal added in v0.10.2

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

type EntityInfoArgs added in v0.10.2

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 added in v0.10.2

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

func (*EntityInfoArgs) GetEntityID added in v0.10.2

func (m *EntityInfoArgs) GetEntityID() string

func (*EntityInfoArgs) ProtoMessage added in v0.10.2

func (*EntityInfoArgs) ProtoMessage()

func (*EntityInfoArgs) Reset added in v0.10.2

func (m *EntityInfoArgs) Reset()

func (*EntityInfoArgs) String added in v0.10.2

func (m *EntityInfoArgs) String() string

func (*EntityInfoArgs) XXX_DiscardUnknown added in v0.10.2

func (m *EntityInfoArgs) XXX_DiscardUnknown()

func (*EntityInfoArgs) XXX_Marshal added in v0.10.2

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

func (*EntityInfoArgs) XXX_Merge added in v0.10.2

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

func (*EntityInfoArgs) XXX_Size added in v0.10.2

func (m *EntityInfoArgs) XXX_Size() int

func (*EntityInfoArgs) XXX_Unmarshal added in v0.10.2

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

type EntityInfoReply added in v0.10.2

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 added in v0.10.2

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

func (*EntityInfoReply) GetEntity added in v0.10.2

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

func (*EntityInfoReply) GetErr added in v0.10.2

func (m *EntityInfoReply) GetErr() string

func (*EntityInfoReply) ProtoMessage added in v0.10.2

func (*EntityInfoReply) ProtoMessage()

func (*EntityInfoReply) Reset added in v0.10.2

func (m *EntityInfoReply) Reset()

func (*EntityInfoReply) String added in v0.10.2

func (m *EntityInfoReply) String() string

func (*EntityInfoReply) XXX_DiscardUnknown added in v0.10.2

func (m *EntityInfoReply) XXX_DiscardUnknown()

func (*EntityInfoReply) XXX_Marshal added in v0.10.2

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

func (*EntityInfoReply) XXX_Merge added in v0.10.2

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

func (*EntityInfoReply) XXX_Size added in v0.10.2

func (m *EntityInfoReply) XXX_Size() int

func (*EntityInfoReply) XXX_Unmarshal added in v0.10.2

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

type HandleExistenceCheckArgs

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

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

func (*HandleExistenceCheckArgs) GetRequest

func (m *HandleExistenceCheckArgs) GetRequest() *Request

func (*HandleExistenceCheckArgs) GetStorageID

func (m *HandleExistenceCheckArgs) GetStorageID() uint32

func (*HandleExistenceCheckArgs) ProtoMessage

func (*HandleExistenceCheckArgs) ProtoMessage()

func (*HandleExistenceCheckArgs) Reset

func (m *HandleExistenceCheckArgs) Reset()

func (*HandleExistenceCheckArgs) String

func (m *HandleExistenceCheckArgs) String() string

func (*HandleExistenceCheckArgs) XXX_DiscardUnknown added in v0.10.2

func (m *HandleExistenceCheckArgs) XXX_DiscardUnknown()

func (*HandleExistenceCheckArgs) XXX_Marshal added in v0.10.2

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

func (*HandleExistenceCheckArgs) XXX_Merge added in v0.10.2

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

func (*HandleExistenceCheckArgs) XXX_Size added in v0.10.2

func (m *HandleExistenceCheckArgs) XXX_Size() int

func (*HandleExistenceCheckArgs) XXX_Unmarshal added in v0.10.2

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

type HandleExistenceCheckReply

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

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

func (*HandleExistenceCheckReply) GetCheckFound

func (m *HandleExistenceCheckReply) GetCheckFound() bool

func (*HandleExistenceCheckReply) GetErr

func (*HandleExistenceCheckReply) GetExists

func (m *HandleExistenceCheckReply) GetExists() bool

func (*HandleExistenceCheckReply) ProtoMessage

func (*HandleExistenceCheckReply) ProtoMessage()

func (*HandleExistenceCheckReply) Reset

func (m *HandleExistenceCheckReply) Reset()

func (*HandleExistenceCheckReply) String

func (m *HandleExistenceCheckReply) String() string

func (*HandleExistenceCheckReply) XXX_DiscardUnknown added in v0.10.2

func (m *HandleExistenceCheckReply) XXX_DiscardUnknown()

func (*HandleExistenceCheckReply) XXX_Marshal added in v0.10.2

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

func (*HandleExistenceCheckReply) XXX_Merge added in v0.10.2

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

func (*HandleExistenceCheckReply) XXX_Size added in v0.10.2

func (m *HandleExistenceCheckReply) XXX_Size() int

func (*HandleExistenceCheckReply) XXX_Unmarshal added in v0.10.2

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

type HandleRequestArgs

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

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

func (*HandleRequestArgs) GetRequest

func (m *HandleRequestArgs) GetRequest() *Request

func (*HandleRequestArgs) GetStorageID

func (m *HandleRequestArgs) GetStorageID() uint32

func (*HandleRequestArgs) ProtoMessage

func (*HandleRequestArgs) ProtoMessage()

func (*HandleRequestArgs) Reset

func (m *HandleRequestArgs) Reset()

func (*HandleRequestArgs) String

func (m *HandleRequestArgs) String() string

func (*HandleRequestArgs) XXX_DiscardUnknown added in v0.10.2

func (m *HandleRequestArgs) XXX_DiscardUnknown()

func (*HandleRequestArgs) XXX_Marshal added in v0.10.2

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

func (*HandleRequestArgs) XXX_Merge added in v0.10.2

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

func (*HandleRequestArgs) XXX_Size added in v0.10.2

func (m *HandleRequestArgs) XXX_Size() int

func (*HandleRequestArgs) XXX_Unmarshal added in v0.10.2

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

type HandleRequestReply

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

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

func (*HandleRequestReply) GetErr

func (m *HandleRequestReply) GetErr() *ProtoError

func (*HandleRequestReply) GetResponse

func (m *HandleRequestReply) GetResponse() *Response

func (*HandleRequestReply) ProtoMessage

func (*HandleRequestReply) ProtoMessage()

func (*HandleRequestReply) Reset

func (m *HandleRequestReply) Reset()

func (*HandleRequestReply) String

func (m *HandleRequestReply) String() string

func (*HandleRequestReply) XXX_DiscardUnknown added in v0.10.2

func (m *HandleRequestReply) XXX_DiscardUnknown()

func (*HandleRequestReply) XXX_Marshal added in v0.10.2

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

func (*HandleRequestReply) XXX_Merge added in v0.10.2

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

func (*HandleRequestReply) XXX_Size added in v0.10.2

func (m *HandleRequestReply) XXX_Size() int

func (*HandleRequestReply) XXX_Unmarshal added in v0.10.2

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

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

func (*Header) GetHeader

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

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown added in v0.10.2

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal added in v0.10.2

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

func (*Header) XXX_Merge added in v0.10.2

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

func (*Header) XXX_Size added in v0.10.2

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal added in v0.10.2

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

type InvalidateKeyArgs

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

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

func (*InvalidateKeyArgs) GetKey

func (m *InvalidateKeyArgs) GetKey() string

func (*InvalidateKeyArgs) ProtoMessage

func (*InvalidateKeyArgs) ProtoMessage()

func (*InvalidateKeyArgs) Reset

func (m *InvalidateKeyArgs) Reset()

func (*InvalidateKeyArgs) String

func (m *InvalidateKeyArgs) String() string

func (*InvalidateKeyArgs) XXX_DiscardUnknown added in v0.10.2

func (m *InvalidateKeyArgs) XXX_DiscardUnknown()

func (*InvalidateKeyArgs) XXX_Marshal added in v0.10.2

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

func (*InvalidateKeyArgs) XXX_Merge added in v0.10.2

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

func (*InvalidateKeyArgs) XXX_Size added in v0.10.2

func (m *InvalidateKeyArgs) XXX_Size() int

func (*InvalidateKeyArgs) XXX_Unmarshal added in v0.10.2

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

type LeaseOptions

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

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

func (*LeaseOptions) Descriptor

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

func (*LeaseOptions) GetIncrement

func (m *LeaseOptions) GetIncrement() int64

func (*LeaseOptions) GetIssueTime

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

func (*LeaseOptions) GetMaxTTL added in v0.10.0

func (m *LeaseOptions) GetMaxTTL() int64

func (*LeaseOptions) GetRenewable

func (m *LeaseOptions) GetRenewable() bool

func (*LeaseOptions) GetTTL

func (m *LeaseOptions) GetTTL() int64

func (*LeaseOptions) ProtoMessage

func (*LeaseOptions) ProtoMessage()

func (*LeaseOptions) Reset

func (m *LeaseOptions) Reset()

func (*LeaseOptions) String

func (m *LeaseOptions) String() string

func (*LeaseOptions) XXX_DiscardUnknown added in v0.10.2

func (m *LeaseOptions) XXX_DiscardUnknown()

func (*LeaseOptions) XXX_Marshal added in v0.10.2

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

func (*LeaseOptions) XXX_Merge added in v0.10.2

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

func (*LeaseOptions) XXX_Size added in v0.10.2

func (m *LeaseOptions) XXX_Size() int

func (*LeaseOptions) XXX_Unmarshal added in v0.10.2

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

type LocalMountReply added in v0.9.4

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 added in v0.9.4

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

func (*LocalMountReply) GetLocal added in v0.9.4

func (m *LocalMountReply) GetLocal() bool

func (*LocalMountReply) ProtoMessage added in v0.9.4

func (*LocalMountReply) ProtoMessage()

func (*LocalMountReply) Reset added in v0.9.4

func (m *LocalMountReply) Reset()

func (*LocalMountReply) String added in v0.9.4

func (m *LocalMountReply) String() string

func (*LocalMountReply) XXX_DiscardUnknown added in v0.10.2

func (m *LocalMountReply) XXX_DiscardUnknown()

func (*LocalMountReply) XXX_Marshal added in v0.10.2

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

func (*LocalMountReply) XXX_Merge added in v0.10.2

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

func (*LocalMountReply) XXX_Size added in v0.10.2

func (m *LocalMountReply) XXX_Size() int

func (*LocalMountReply) XXX_Unmarshal added in v0.10.2

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

type MlockEnabledReply

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

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

func (*MlockEnabledReply) GetEnabled

func (m *MlockEnabledReply) GetEnabled() bool

func (*MlockEnabledReply) ProtoMessage

func (*MlockEnabledReply) ProtoMessage()

func (*MlockEnabledReply) Reset

func (m *MlockEnabledReply) Reset()

func (*MlockEnabledReply) String

func (m *MlockEnabledReply) String() string

func (*MlockEnabledReply) XXX_DiscardUnknown added in v0.10.2

func (m *MlockEnabledReply) XXX_DiscardUnknown()

func (*MlockEnabledReply) XXX_Marshal added in v0.10.2

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

func (*MlockEnabledReply) XXX_Merge added in v0.10.2

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

func (*MlockEnabledReply) XXX_Size added in v0.10.2

func (m *MlockEnabledReply) XXX_Size() int

func (*MlockEnabledReply) XXX_Unmarshal added in v0.10.2

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

type Paths

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

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

func (*Paths) GetLocalStorage

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

func (*Paths) GetRoot

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

func (*Paths) GetSealWrapStorage

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

func (*Paths) GetUnauthenticated

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

func (*Paths) ProtoMessage

func (*Paths) ProtoMessage()

func (*Paths) Reset

func (m *Paths) Reset()

func (*Paths) String

func (m *Paths) String() string

func (*Paths) XXX_DiscardUnknown added in v0.10.2

func (m *Paths) XXX_DiscardUnknown()

func (*Paths) XXX_Marshal added in v0.10.2

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

func (*Paths) XXX_Merge added in v0.10.2

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

func (*Paths) XXX_Size added in v0.10.2

func (m *Paths) XXX_Size() int

func (*Paths) XXX_Unmarshal added in v0.10.2

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

type PluginEnvReply added in v0.11.0

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 added in v0.11.0

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

func (*PluginEnvReply) GetErr added in v0.11.0

func (m *PluginEnvReply) GetErr() string

func (*PluginEnvReply) GetPluginEnvironment added in v0.11.0

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

func (*PluginEnvReply) ProtoMessage added in v0.11.0

func (*PluginEnvReply) ProtoMessage()

func (*PluginEnvReply) Reset added in v0.11.0

func (m *PluginEnvReply) Reset()

func (*PluginEnvReply) String added in v0.11.0

func (m *PluginEnvReply) String() string

func (*PluginEnvReply) XXX_DiscardUnknown added in v0.11.0

func (m *PluginEnvReply) XXX_DiscardUnknown()

func (*PluginEnvReply) XXX_Marshal added in v0.11.0

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

func (*PluginEnvReply) XXX_Merge added in v0.11.0

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

func (*PluginEnvReply) XXX_Size added in v0.11.0

func (m *PluginEnvReply) XXX_Size() int

func (*PluginEnvReply) XXX_Unmarshal added in v0.11.0

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

type ProtoError

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

func ErrToProtoErr(e error) *ProtoError

func (*ProtoError) Descriptor

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

func (*ProtoError) GetErrCode

func (m *ProtoError) GetErrCode() int64

func (*ProtoError) GetErrMsg

func (m *ProtoError) GetErrMsg() string

func (*ProtoError) GetErrType

func (m *ProtoError) GetErrType() uint32

func (*ProtoError) ProtoMessage

func (*ProtoError) ProtoMessage()

func (*ProtoError) Reset

func (m *ProtoError) Reset()

func (*ProtoError) String

func (m *ProtoError) String() string

func (*ProtoError) XXX_DiscardUnknown added in v0.10.2

func (m *ProtoError) XXX_DiscardUnknown()

func (*ProtoError) XXX_Marshal added in v0.10.2

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

func (*ProtoError) XXX_Merge added in v0.10.2

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

func (*ProtoError) XXX_Size added in v0.10.2

func (m *ProtoError) XXX_Size() int

func (*ProtoError) XXX_Unmarshal added in v0.10.2

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

type ReplicationStateReply

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

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

func (*ReplicationStateReply) GetState

func (m *ReplicationStateReply) GetState() int32

func (*ReplicationStateReply) ProtoMessage

func (*ReplicationStateReply) ProtoMessage()

func (*ReplicationStateReply) Reset

func (m *ReplicationStateReply) Reset()

func (*ReplicationStateReply) String

func (m *ReplicationStateReply) String() string

func (*ReplicationStateReply) XXX_DiscardUnknown added in v0.10.2

func (m *ReplicationStateReply) XXX_DiscardUnknown()

func (*ReplicationStateReply) XXX_Marshal added in v0.10.2

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

func (*ReplicationStateReply) XXX_Merge added in v0.10.2

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

func (*ReplicationStateReply) XXX_Size added in v0.10.2

func (m *ReplicationStateReply) XXX_Size() int

func (*ReplicationStateReply) XXX_Unmarshal added in v0.10.2

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

type Request

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 `` /* 167-byte string literal not displayed */
	// 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 `` /* 133-byte string literal not displayed */
	// 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 `` /* 151-byte string literal not displayed */
	// 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

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

func (*Request) Descriptor

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

func (*Request) GetAuth

func (m *Request) GetAuth() *Auth

func (*Request) GetClientToken

func (m *Request) GetClientToken() string

func (*Request) GetClientTokenAccessor

func (m *Request) GetClientTokenAccessor() string

func (*Request) GetClientTokenRemainingUses

func (m *Request) GetClientTokenRemainingUses() int64

func (*Request) GetConnection added in v0.9.4

func (m *Request) GetConnection() *Connection

func (*Request) GetData

func (m *Request) GetData() string

func (*Request) GetDisplayName

func (m *Request) GetDisplayName() string

func (*Request) GetEntityID

func (m *Request) GetEntityID() string

func (*Request) GetHeaders

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

func (*Request) GetID

func (m *Request) GetID() string

func (*Request) GetMountAccessor

func (m *Request) GetMountAccessor() string

func (*Request) GetMountPoint

func (m *Request) GetMountPoint() string

func (*Request) GetMountType

func (m *Request) GetMountType() string

func (*Request) GetOperation

func (m *Request) GetOperation() string

func (*Request) GetPath

func (m *Request) GetPath() string

func (*Request) GetPolicyOverride

func (m *Request) GetPolicyOverride() bool

func (*Request) GetReplicationCluster

func (m *Request) GetReplicationCluster() string

func (*Request) GetSecret

func (m *Request) GetSecret() *Secret

func (*Request) GetUnauthenticated

func (m *Request) GetUnauthenticated() bool

func (*Request) GetWrapInfo

func (m *Request) GetWrapInfo() *RequestWrapInfo

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown added in v0.10.2

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal added in v0.10.2

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

func (*Request) XXX_Merge added in v0.10.2

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

func (*Request) XXX_Size added in v0.10.2

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal added in v0.10.2

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

type RequestWrapInfo

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

func LogicalRequestWrapInfoToProtoRequestWrapInfo(i *logical.RequestWrapInfo) *RequestWrapInfo

func (*RequestWrapInfo) Descriptor

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

func (*RequestWrapInfo) GetFormat

func (m *RequestWrapInfo) GetFormat() string

func (*RequestWrapInfo) GetSealWrap

func (m *RequestWrapInfo) GetSealWrap() bool

func (*RequestWrapInfo) GetTTL

func (m *RequestWrapInfo) GetTTL() int64

func (*RequestWrapInfo) ProtoMessage

func (*RequestWrapInfo) ProtoMessage()

func (*RequestWrapInfo) Reset

func (m *RequestWrapInfo) Reset()

func (*RequestWrapInfo) String

func (m *RequestWrapInfo) String() string

func (*RequestWrapInfo) XXX_DiscardUnknown added in v0.10.2

func (m *RequestWrapInfo) XXX_DiscardUnknown()

func (*RequestWrapInfo) XXX_Marshal added in v0.10.2

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

func (*RequestWrapInfo) XXX_Merge added in v0.10.2

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

func (*RequestWrapInfo) XXX_Size added in v0.10.2

func (m *RequestWrapInfo) XXX_Size() int

func (*RequestWrapInfo) XXX_Unmarshal added in v0.10.2

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

type Response

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 `` /* 167-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func LogicalResponseToProtoResponse

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

func (*Response) Descriptor

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

func (*Response) GetAuth

func (m *Response) GetAuth() *Auth

func (*Response) GetData

func (m *Response) GetData() string

func (*Response) GetHeaders added in v1.0.3

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

func (*Response) GetRedirect

func (m *Response) GetRedirect() string

func (*Response) GetSecret

func (m *Response) GetSecret() *Secret

func (*Response) GetWarnings

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

func (*Response) GetWrapInfo

func (m *Response) GetWrapInfo() *ResponseWrapInfo

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown added in v0.10.2

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal added in v0.10.2

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

func (*Response) XXX_Merge added in v0.10.2

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

func (*Response) XXX_Size added in v0.10.2

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal added in v0.10.2

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

type ResponseWrapDataArgs

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

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

func (*ResponseWrapDataArgs) GetData

func (m *ResponseWrapDataArgs) GetData() string

func (*ResponseWrapDataArgs) GetJWT

func (m *ResponseWrapDataArgs) GetJWT() bool

func (*ResponseWrapDataArgs) GetTTL

func (m *ResponseWrapDataArgs) GetTTL() int64

func (*ResponseWrapDataArgs) ProtoMessage

func (*ResponseWrapDataArgs) ProtoMessage()

func (*ResponseWrapDataArgs) Reset

func (m *ResponseWrapDataArgs) Reset()

func (*ResponseWrapDataArgs) String

func (m *ResponseWrapDataArgs) String() string

func (*ResponseWrapDataArgs) XXX_DiscardUnknown added in v0.10.2

func (m *ResponseWrapDataArgs) XXX_DiscardUnknown()

func (*ResponseWrapDataArgs) XXX_Marshal added in v0.10.2

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

func (*ResponseWrapDataArgs) XXX_Merge added in v0.10.2

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

func (*ResponseWrapDataArgs) XXX_Size added in v0.10.2

func (m *ResponseWrapDataArgs) XXX_Size() int

func (*ResponseWrapDataArgs) XXX_Unmarshal added in v0.10.2

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

type ResponseWrapDataReply

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

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

func (*ResponseWrapDataReply) GetErr

func (m *ResponseWrapDataReply) GetErr() string

func (*ResponseWrapDataReply) GetWrapInfo

func (m *ResponseWrapDataReply) GetWrapInfo() *ResponseWrapInfo

func (*ResponseWrapDataReply) ProtoMessage

func (*ResponseWrapDataReply) ProtoMessage()

func (*ResponseWrapDataReply) Reset

func (m *ResponseWrapDataReply) Reset()

func (*ResponseWrapDataReply) String

func (m *ResponseWrapDataReply) String() string

func (*ResponseWrapDataReply) XXX_DiscardUnknown added in v0.10.2

func (m *ResponseWrapDataReply) XXX_DiscardUnknown()

func (*ResponseWrapDataReply) XXX_Marshal added in v0.10.2

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

func (*ResponseWrapDataReply) XXX_Merge added in v0.10.2

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

func (*ResponseWrapDataReply) XXX_Size added in v0.10.2

func (m *ResponseWrapDataReply) XXX_Size() int

func (*ResponseWrapDataReply) XXX_Unmarshal added in v0.10.2

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

type ResponseWrapInfo

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

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

func (*ResponseWrapInfo) Descriptor

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

func (*ResponseWrapInfo) GetAccessor

func (m *ResponseWrapInfo) GetAccessor() string

func (*ResponseWrapInfo) GetCreationPath

func (m *ResponseWrapInfo) GetCreationPath() string

func (*ResponseWrapInfo) GetCreationTime

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

func (*ResponseWrapInfo) GetFormat

func (m *ResponseWrapInfo) GetFormat() string

func (*ResponseWrapInfo) GetSealWrap

func (m *ResponseWrapInfo) GetSealWrap() bool

func (*ResponseWrapInfo) GetTTL

func (m *ResponseWrapInfo) GetTTL() int64

func (*ResponseWrapInfo) GetToken

func (m *ResponseWrapInfo) GetToken() string

func (*ResponseWrapInfo) GetWrappedAccessor

func (m *ResponseWrapInfo) GetWrappedAccessor() string

func (*ResponseWrapInfo) GetWrappedEntityID

func (m *ResponseWrapInfo) GetWrappedEntityID() string

func (*ResponseWrapInfo) ProtoMessage

func (*ResponseWrapInfo) ProtoMessage()

func (*ResponseWrapInfo) Reset

func (m *ResponseWrapInfo) Reset()

func (*ResponseWrapInfo) String

func (m *ResponseWrapInfo) String() string

func (*ResponseWrapInfo) XXX_DiscardUnknown added in v0.10.2

func (m *ResponseWrapInfo) XXX_DiscardUnknown()

func (*ResponseWrapInfo) XXX_Marshal added in v0.10.2

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

func (*ResponseWrapInfo) XXX_Merge added in v0.10.2

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

func (*ResponseWrapInfo) XXX_Size added in v0.10.2

func (m *ResponseWrapInfo) XXX_Size() int

func (*ResponseWrapInfo) XXX_Unmarshal added in v0.10.2

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

type Secret

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

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

func (*Secret) Descriptor

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

func (*Secret) GetInternalData

func (m *Secret) GetInternalData() string

func (*Secret) GetLeaseID

func (m *Secret) GetLeaseID() string

func (*Secret) GetLeaseOptions

func (m *Secret) GetLeaseOptions() *LeaseOptions

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) String

func (m *Secret) String() string

func (*Secret) XXX_DiscardUnknown added in v0.10.2

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal added in v0.10.2

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

func (*Secret) XXX_Merge added in v0.10.2

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

func (*Secret) XXX_Size added in v0.10.2

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal added in v0.10.2

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

type SetupArgs

type SetupArgs struct {
	BrokerID             uint32            `sentinel:"" protobuf:"varint,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	Config               map[string]string `` /* 165-byte string literal not displayed */
	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

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

func (*SetupArgs) GetBackendUUID added in v0.10.0

func (m *SetupArgs) GetBackendUUID() string

func (*SetupArgs) GetBrokerID

func (m *SetupArgs) GetBrokerID() uint32

func (*SetupArgs) GetConfig

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

func (*SetupArgs) ProtoMessage

func (*SetupArgs) ProtoMessage()

func (*SetupArgs) Reset

func (m *SetupArgs) Reset()

func (*SetupArgs) String

func (m *SetupArgs) String() string

func (*SetupArgs) XXX_DiscardUnknown added in v0.10.2

func (m *SetupArgs) XXX_DiscardUnknown()

func (*SetupArgs) XXX_Marshal added in v0.10.2

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

func (*SetupArgs) XXX_Merge added in v0.10.2

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

func (*SetupArgs) XXX_Size added in v0.10.2

func (m *SetupArgs) XXX_Size() int

func (*SetupArgs) XXX_Unmarshal added in v0.10.2

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

type SetupReply

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

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

func (*SetupReply) GetErr

func (m *SetupReply) GetErr() string

func (*SetupReply) ProtoMessage

func (*SetupReply) ProtoMessage()

func (*SetupReply) Reset

func (m *SetupReply) Reset()

func (*SetupReply) String

func (m *SetupReply) String() string

func (*SetupReply) XXX_DiscardUnknown added in v0.10.2

func (m *SetupReply) XXX_DiscardUnknown()

func (*SetupReply) XXX_Marshal added in v0.10.2

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

func (*SetupReply) XXX_Merge added in v0.10.2

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

func (*SetupReply) XXX_Size added in v0.10.2

func (m *SetupReply) XXX_Size() int

func (*SetupReply) XXX_Unmarshal added in v0.10.2

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

type SpecialPathsReply

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

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

func (*SpecialPathsReply) GetPaths

func (m *SpecialPathsReply) GetPaths() *Paths

func (*SpecialPathsReply) ProtoMessage

func (*SpecialPathsReply) ProtoMessage()

func (*SpecialPathsReply) Reset

func (m *SpecialPathsReply) Reset()

func (*SpecialPathsReply) String

func (m *SpecialPathsReply) String() string

func (*SpecialPathsReply) XXX_DiscardUnknown added in v0.10.2

func (m *SpecialPathsReply) XXX_DiscardUnknown()

func (*SpecialPathsReply) XXX_Marshal added in v0.10.2

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

func (*SpecialPathsReply) XXX_Merge added in v0.10.2

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

func (*SpecialPathsReply) XXX_Size added in v0.10.2

func (m *SpecialPathsReply) XXX_Size() int

func (*SpecialPathsReply) XXX_Unmarshal added in v0.10.2

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

type StorageClient

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

func NewStorageClient(cc *grpc.ClientConn) StorageClient

type StorageDeleteArgs

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

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

func (*StorageDeleteArgs) GetKey

func (m *StorageDeleteArgs) GetKey() string

func (*StorageDeleteArgs) ProtoMessage

func (*StorageDeleteArgs) ProtoMessage()

func (*StorageDeleteArgs) Reset

func (m *StorageDeleteArgs) Reset()

func (*StorageDeleteArgs) String

func (m *StorageDeleteArgs) String() string

func (*StorageDeleteArgs) XXX_DiscardUnknown added in v0.10.2

func (m *StorageDeleteArgs) XXX_DiscardUnknown()

func (*StorageDeleteArgs) XXX_Marshal added in v0.10.2

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

func (*StorageDeleteArgs) XXX_Merge added in v0.10.2

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

func (*StorageDeleteArgs) XXX_Size added in v0.10.2

func (m *StorageDeleteArgs) XXX_Size() int

func (*StorageDeleteArgs) XXX_Unmarshal added in v0.10.2

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

type StorageDeleteReply

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

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

func (*StorageDeleteReply) GetErr

func (m *StorageDeleteReply) GetErr() string

func (*StorageDeleteReply) ProtoMessage

func (*StorageDeleteReply) ProtoMessage()

func (*StorageDeleteReply) Reset

func (m *StorageDeleteReply) Reset()

func (*StorageDeleteReply) String

func (m *StorageDeleteReply) String() string

func (*StorageDeleteReply) XXX_DiscardUnknown added in v0.10.2

func (m *StorageDeleteReply) XXX_DiscardUnknown()

func (*StorageDeleteReply) XXX_Marshal added in v0.10.2

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

func (*StorageDeleteReply) XXX_Merge added in v0.10.2

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

func (*StorageDeleteReply) XXX_Size added in v0.10.2

func (m *StorageDeleteReply) XXX_Size() int

func (*StorageDeleteReply) XXX_Unmarshal added in v0.10.2

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

type StorageEntry

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

func LogicalStorageEntryToProtoStorageEntry(e *logical.StorageEntry) *StorageEntry

func (*StorageEntry) Descriptor

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

func (*StorageEntry) GetKey

func (m *StorageEntry) GetKey() string

func (*StorageEntry) GetSealWrap

func (m *StorageEntry) GetSealWrap() bool

func (*StorageEntry) GetValue

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

func (*StorageEntry) ProtoMessage

func (*StorageEntry) ProtoMessage()

func (*StorageEntry) Reset

func (m *StorageEntry) Reset()

func (*StorageEntry) String

func (m *StorageEntry) String() string

func (*StorageEntry) XXX_DiscardUnknown added in v0.10.2

func (m *StorageEntry) XXX_DiscardUnknown()

func (*StorageEntry) XXX_Marshal added in v0.10.2

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

func (*StorageEntry) XXX_Merge added in v0.10.2

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

func (*StorageEntry) XXX_Size added in v0.10.2

func (m *StorageEntry) XXX_Size() int

func (*StorageEntry) XXX_Unmarshal added in v0.10.2

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

type StorageGetArgs

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

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

func (*StorageGetArgs) GetKey

func (m *StorageGetArgs) GetKey() string

func (*StorageGetArgs) ProtoMessage

func (*StorageGetArgs) ProtoMessage()

func (*StorageGetArgs) Reset

func (m *StorageGetArgs) Reset()

func (*StorageGetArgs) String

func (m *StorageGetArgs) String() string

func (*StorageGetArgs) XXX_DiscardUnknown added in v0.10.2

func (m *StorageGetArgs) XXX_DiscardUnknown()

func (*StorageGetArgs) XXX_Marshal added in v0.10.2

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

func (*StorageGetArgs) XXX_Merge added in v0.10.2

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

func (*StorageGetArgs) XXX_Size added in v0.10.2

func (m *StorageGetArgs) XXX_Size() int

func (*StorageGetArgs) XXX_Unmarshal added in v0.10.2

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

type StorageGetReply

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

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

func (*StorageGetReply) GetEntry

func (m *StorageGetReply) GetEntry() *StorageEntry

func (*StorageGetReply) GetErr

func (m *StorageGetReply) GetErr() string

func (*StorageGetReply) ProtoMessage

func (*StorageGetReply) ProtoMessage()

func (*StorageGetReply) Reset

func (m *StorageGetReply) Reset()

func (*StorageGetReply) String

func (m *StorageGetReply) String() string

func (*StorageGetReply) XXX_DiscardUnknown added in v0.10.2

func (m *StorageGetReply) XXX_DiscardUnknown()

func (*StorageGetReply) XXX_Marshal added in v0.10.2

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

func (*StorageGetReply) XXX_Merge added in v0.10.2

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

func (*StorageGetReply) XXX_Size added in v0.10.2

func (m *StorageGetReply) XXX_Size() int

func (*StorageGetReply) XXX_Unmarshal added in v0.10.2

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

type StorageListArgs

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

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

func (*StorageListArgs) GetPrefix

func (m *StorageListArgs) GetPrefix() string

func (*StorageListArgs) ProtoMessage

func (*StorageListArgs) ProtoMessage()

func (*StorageListArgs) Reset

func (m *StorageListArgs) Reset()

func (*StorageListArgs) String

func (m *StorageListArgs) String() string

func (*StorageListArgs) XXX_DiscardUnknown added in v0.10.2

func (m *StorageListArgs) XXX_DiscardUnknown()

func (*StorageListArgs) XXX_Marshal added in v0.10.2

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

func (*StorageListArgs) XXX_Merge added in v0.10.2

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

func (*StorageListArgs) XXX_Size added in v0.10.2

func (m *StorageListArgs) XXX_Size() int

func (*StorageListArgs) XXX_Unmarshal added in v0.10.2

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

type StorageListReply

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

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

func (*StorageListReply) GetErr

func (m *StorageListReply) GetErr() string

func (*StorageListReply) GetKeys

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

func (*StorageListReply) ProtoMessage

func (*StorageListReply) ProtoMessage()

func (*StorageListReply) Reset

func (m *StorageListReply) Reset()

func (*StorageListReply) String

func (m *StorageListReply) String() string

func (*StorageListReply) XXX_DiscardUnknown added in v0.10.2

func (m *StorageListReply) XXX_DiscardUnknown()

func (*StorageListReply) XXX_Marshal added in v0.10.2

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

func (*StorageListReply) XXX_Merge added in v0.10.2

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

func (*StorageListReply) XXX_Size added in v0.10.2

func (m *StorageListReply) XXX_Size() int

func (*StorageListReply) XXX_Unmarshal added in v0.10.2

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

type StoragePutArgs

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

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

func (*StoragePutArgs) GetEntry

func (m *StoragePutArgs) GetEntry() *StorageEntry

func (*StoragePutArgs) ProtoMessage

func (*StoragePutArgs) ProtoMessage()

func (*StoragePutArgs) Reset

func (m *StoragePutArgs) Reset()

func (*StoragePutArgs) String

func (m *StoragePutArgs) String() string

func (*StoragePutArgs) XXX_DiscardUnknown added in v0.10.2

func (m *StoragePutArgs) XXX_DiscardUnknown()

func (*StoragePutArgs) XXX_Marshal added in v0.10.2

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

func (*StoragePutArgs) XXX_Merge added in v0.10.2

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

func (*StoragePutArgs) XXX_Size added in v0.10.2

func (m *StoragePutArgs) XXX_Size() int

func (*StoragePutArgs) XXX_Unmarshal added in v0.10.2

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

type StoragePutReply

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

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

func (*StoragePutReply) GetErr

func (m *StoragePutReply) GetErr() string

func (*StoragePutReply) ProtoMessage

func (*StoragePutReply) ProtoMessage()

func (*StoragePutReply) Reset

func (m *StoragePutReply) Reset()

func (*StoragePutReply) String

func (m *StoragePutReply) String() string

func (*StoragePutReply) XXX_DiscardUnknown added in v0.10.2

func (m *StoragePutReply) XXX_DiscardUnknown()

func (*StoragePutReply) XXX_Marshal added in v0.10.2

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

func (*StoragePutReply) XXX_Merge added in v0.10.2

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

func (*StoragePutReply) XXX_Size added in v0.10.2

func (m *StoragePutReply) XXX_Size() int

func (*StoragePutReply) XXX_Unmarshal added in v0.10.2

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

type StorageServer

StorageServer is the server API for Storage service.

type SudoPrivilegeArgs

type SudoPrivilegeArgs struct {
	Path                 string   `sentinel:"" protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Token                string   `sentinel:"" protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SudoPrivilegeArgs) Descriptor

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

func (*SudoPrivilegeArgs) GetPath

func (m *SudoPrivilegeArgs) GetPath() string

func (*SudoPrivilegeArgs) GetToken

func (m *SudoPrivilegeArgs) GetToken() string

func (*SudoPrivilegeArgs) ProtoMessage

func (*SudoPrivilegeArgs) ProtoMessage()

func (*SudoPrivilegeArgs) Reset

func (m *SudoPrivilegeArgs) Reset()

func (*SudoPrivilegeArgs) String

func (m *SudoPrivilegeArgs) String() string

func (*SudoPrivilegeArgs) XXX_DiscardUnknown added in v0.10.2

func (m *SudoPrivilegeArgs) XXX_DiscardUnknown()

func (*SudoPrivilegeArgs) XXX_Marshal added in v0.10.2

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

func (*SudoPrivilegeArgs) XXX_Merge added in v0.10.2

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

func (*SudoPrivilegeArgs) XXX_Size added in v0.10.2

func (m *SudoPrivilegeArgs) XXX_Size() int

func (*SudoPrivilegeArgs) XXX_Unmarshal added in v0.10.2

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

type SudoPrivilegeReply

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

func (*SudoPrivilegeReply) Descriptor

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

func (*SudoPrivilegeReply) GetSudo

func (m *SudoPrivilegeReply) GetSudo() bool

func (*SudoPrivilegeReply) ProtoMessage

func (*SudoPrivilegeReply) ProtoMessage()

func (*SudoPrivilegeReply) Reset

func (m *SudoPrivilegeReply) Reset()

func (*SudoPrivilegeReply) String

func (m *SudoPrivilegeReply) String() string

func (*SudoPrivilegeReply) XXX_DiscardUnknown added in v0.10.2

func (m *SudoPrivilegeReply) XXX_DiscardUnknown()

func (*SudoPrivilegeReply) XXX_Marshal added in v0.10.2

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

func (*SudoPrivilegeReply) XXX_Merge added in v0.10.2

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

func (*SudoPrivilegeReply) XXX_Size added in v0.10.2

func (m *SudoPrivilegeReply) XXX_Size() int

func (*SudoPrivilegeReply) XXX_Unmarshal added in v0.10.2

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

type SystemViewClient

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)
	// SudoPrivilege returns true if given path has sudo privileges
	// for the given client token
	SudoPrivilege(ctx context.Context, in *SudoPrivilegeArgs, opts ...grpc.CallOption) (*SudoPrivilegeReply, 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

func NewSystemViewClient(cc *grpc.ClientConn) SystemViewClient

type SystemViewServer

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)
	// SudoPrivilege returns true if given path has sudo privileges
	// for the given client token
	SudoPrivilege(context.Context, *SudoPrivilegeArgs) (*SudoPrivilegeReply, 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

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

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

func (*TTLReply) GetTTL

func (m *TTLReply) GetTTL() int64

func (*TTLReply) ProtoMessage

func (*TTLReply) ProtoMessage()

func (*TTLReply) Reset

func (m *TTLReply) Reset()

func (*TTLReply) String

func (m *TTLReply) String() string

func (*TTLReply) XXX_DiscardUnknown added in v0.10.2

func (m *TTLReply) XXX_DiscardUnknown()

func (*TTLReply) XXX_Marshal added in v0.10.2

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

func (*TTLReply) XXX_Merge added in v0.10.2

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

func (*TTLReply) XXX_Size added in v0.10.2

func (m *TTLReply) XXX_Size() int

func (*TTLReply) XXX_Unmarshal added in v0.10.2

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

type TaintedReply

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

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

func (*TaintedReply) GetTainted

func (m *TaintedReply) GetTainted() bool

func (*TaintedReply) ProtoMessage

func (*TaintedReply) ProtoMessage()

func (*TaintedReply) Reset

func (m *TaintedReply) Reset()

func (*TaintedReply) String

func (m *TaintedReply) String() string

func (*TaintedReply) XXX_DiscardUnknown added in v0.10.2

func (m *TaintedReply) XXX_DiscardUnknown()

func (*TaintedReply) XXX_Marshal added in v0.10.2

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

func (*TaintedReply) XXX_Merge added in v0.10.2

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

func (*TaintedReply) XXX_Size added in v0.10.2

func (m *TaintedReply) XXX_Size() int

func (*TaintedReply) XXX_Unmarshal added in v0.10.2

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

type TokenEntry added in v0.11.2

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 `` /* 161-byte string literal not displayed */
	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 added in v0.11.2

func LogicalTokenEntryToProtoTokenEntry(t *logical.TokenEntry) *TokenEntry

func (*TokenEntry) Descriptor added in v0.11.2

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

func (*TokenEntry) GetAccessor added in v0.11.2

func (m *TokenEntry) GetAccessor() string

func (*TokenEntry) GetBoundCIDRs added in v0.11.2

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

func (*TokenEntry) GetCreationTime added in v0.11.2

func (m *TokenEntry) GetCreationTime() int64

func (*TokenEntry) GetCubbyholeID added in v0.11.2

func (m *TokenEntry) GetCubbyholeID() string

func (*TokenEntry) GetDisplayName added in v0.11.2

func (m *TokenEntry) GetDisplayName() string

func (*TokenEntry) GetEntityID added in v0.11.2

func (m *TokenEntry) GetEntityID() string

func (*TokenEntry) GetExplicitMaxTTL added in v0.11.2

func (m *TokenEntry) GetExplicitMaxTTL() int64

func (*TokenEntry) GetID added in v0.11.2

func (m *TokenEntry) GetID() string

func (*TokenEntry) GetMeta added in v0.11.2

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

func (*TokenEntry) GetNamespaceID added in v0.11.2

func (m *TokenEntry) GetNamespaceID() string

func (*TokenEntry) GetNumUses added in v0.11.2

func (m *TokenEntry) GetNumUses() int64

func (*TokenEntry) GetParent added in v0.11.2

func (m *TokenEntry) GetParent() string

func (*TokenEntry) GetPath added in v0.11.2

func (m *TokenEntry) GetPath() string

func (*TokenEntry) GetPeriod added in v0.11.2

func (m *TokenEntry) GetPeriod() int64

func (*TokenEntry) GetPolicies added in v0.11.2

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

func (*TokenEntry) GetRole added in v0.11.2

func (m *TokenEntry) GetRole() string

func (*TokenEntry) GetTTL added in v0.11.2

func (m *TokenEntry) GetTTL() int64

func (*TokenEntry) GetType added in v1.0.0

func (m *TokenEntry) GetType() uint32

func (*TokenEntry) ProtoMessage added in v0.11.2

func (*TokenEntry) ProtoMessage()

func (*TokenEntry) Reset added in v0.11.2

func (m *TokenEntry) Reset()

func (*TokenEntry) String added in v0.11.2

func (m *TokenEntry) String() string

func (*TokenEntry) XXX_DiscardUnknown added in v0.11.2

func (m *TokenEntry) XXX_DiscardUnknown()

func (*TokenEntry) XXX_Marshal added in v0.11.2

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

func (*TokenEntry) XXX_Merge added in v0.11.2

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

func (*TokenEntry) XXX_Size added in v0.11.2

func (m *TokenEntry) XXX_Size() int

func (*TokenEntry) XXX_Unmarshal added in v0.11.2

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

type TypeReply

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

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

func (*TypeReply) GetType

func (m *TypeReply) GetType() uint32

func (*TypeReply) ProtoMessage

func (*TypeReply) ProtoMessage()

func (*TypeReply) Reset

func (m *TypeReply) Reset()

func (*TypeReply) String

func (m *TypeReply) String() string

func (*TypeReply) XXX_DiscardUnknown added in v0.10.2

func (m *TypeReply) XXX_DiscardUnknown()

func (*TypeReply) XXX_Marshal added in v0.10.2

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

func (*TypeReply) XXX_Merge added in v0.10.2

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

func (*TypeReply) XXX_Size added in v0.10.2

func (m *TypeReply) XXX_Size() int

func (*TypeReply) XXX_Unmarshal added in v0.10.2

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

Jump to

Keyboard shortcuts

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