tokens

package
v1.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetIndexEpoch

func (x *Token) GetIndexEpoch() uint32

func (*Token) GetLocalIndex

func (x *Token) GetLocalIndex() uint64

func (*Token) GetRandom

func (x *Token) GetRandom() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

Jump to

Keyboard shortcuts

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