Documentation ¶
Index ¶
- Variables
- type SignedToken
- func (*SignedToken) Descriptor() ([]byte, []int)deprecated
- func (x *SignedToken) GetHmac() []byte
- func (x *SignedToken) GetToken() []byte
- func (x *SignedToken) GetTokenVersion() uint64
- func (*SignedToken) ProtoMessage()
- func (x *SignedToken) ProtoReflect() protoreflect.Message
- func (x *SignedToken) Reset()
- func (x *SignedToken) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetIndexEpoch() uint32
- func (x *Token) GetLocalIndex() uint64
- func (x *Token) GetRandom() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_vault_tokens_token_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SignedToken ¶
type SignedToken struct { TokenVersion uint64 `protobuf:"varint,1,opt,name=token_version,json=tokenVersion,proto3" json:"token_version,omitempty"` // always 1 for now Hmac []byte `protobuf:"bytes,2,opt,name=hmac,proto3" json:"hmac,omitempty"` // HMAC of token Token []byte `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // protobuf-marshalled Token message // contains filtered or unexported fields }
SignedToken
func (*SignedToken) Descriptor
deprecated
func (*SignedToken) Descriptor() ([]byte, []int)
Deprecated: Use SignedToken.ProtoReflect.Descriptor instead.
func (*SignedToken) GetHmac ¶
func (x *SignedToken) GetHmac() []byte
func (*SignedToken) GetToken ¶
func (x *SignedToken) GetToken() []byte
func (*SignedToken) GetTokenVersion ¶
func (x *SignedToken) GetTokenVersion() uint64
func (*SignedToken) ProtoMessage ¶
func (*SignedToken) ProtoMessage()
func (*SignedToken) ProtoReflect ¶
func (x *SignedToken) ProtoReflect() protoreflect.Message
func (*SignedToken) Reset ¶
func (x *SignedToken) Reset()
func (*SignedToken) String ¶
func (x *SignedToken) String() string
type Token ¶
type Token struct { Random string `protobuf:"bytes,1,opt,name=random,proto3" json:"random,omitempty"` // unencoded equiv of former $randbase62 LocalIndex uint64 `protobuf:"varint,2,opt,name=local_index,json=localIndex,proto3" json:"local_index,omitempty"` // required storage state to have this token IndexEpoch uint32 `protobuf:"varint,3,opt,name=index_epoch,json=indexEpoch,proto3" json:"index_epoch,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetIndexEpoch ¶
func (*Token) GetLocalIndex ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.