Documentation ¶
Overview ¶
Package pb includes protobufs for the badgerauth package.
Index ¶
- Variables
- func Equal(x, y proto.Message) bool
- func Marshal(m proto.Message) ([]byte, error)
- func Unmarshal(b []byte, m proto.Message) error
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetCreatedAtUnix() int64
- func (x *Record) GetEncryptedAccessGrant() []byte
- func (x *Record) GetEncryptedSecretKey() []byte
- func (x *Record) GetExpiresAtUnix() int64
- func (x *Record) GetInvalidatedAtUnix() int64
- func (x *Record) GetInvalidationReason() string
- func (x *Record) GetMacaroonHead() []byte
- func (x *Record) GetPublic() bool
- func (x *Record) GetPublicProjectId() []byte
- func (x *Record) GetSatelliteAddress() string
- func (x *Record) GetState() Record_State
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type Record_State
- func (Record_State) Descriptor() protoreflect.EnumDescriptor
- func (x Record_State) Enum() *Record_State
- func (Record_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Record_State) Number() protoreflect.EnumNumber
- func (x Record_State) String() string
- func (Record_State) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Record_State_name = map[int32]string{ 0: "CREATED", } Record_State_value = map[string]int32{ "CREATED": 0, } )
Enum value maps for Record_State.
View Source
var File_badgerauth_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Record ¶
type Record struct { // record data CreatedAtUnix int64 `protobuf:"varint,1,opt,name=created_at_unix,json=createdAtUnix,proto3" json:"created_at_unix,omitempty"` Public bool `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"` // denormalized information from access grant SatelliteAddress string `protobuf:"bytes,3,opt,name=satellite_address,json=satelliteAddress,proto3" json:"satellite_address,omitempty"` PublicProjectId []byte `protobuf:"bytes,11,opt,name=public_project_id,json=publicProjectId,proto3" json:"public_project_id,omitempty"` MacaroonHead []byte `protobuf:"bytes,4,opt,name=macaroon_head,json=macaroonHead,proto3" json:"macaroon_head,omitempty"` ExpiresAtUnix int64 `protobuf:"varint,5,opt,name=expires_at_unix,json=expiresAtUnix,proto3" json:"expires_at_unix,omitempty"` // sensitive data EncryptedSecretKey []byte `protobuf:"bytes,6,opt,name=encrypted_secret_key,json=encryptedSecretKey,proto3" json:"encrypted_secret_key,omitempty"` EncryptedAccessGrant []byte `protobuf:"bytes,7,opt,name=encrypted_access_grant,json=encryptedAccessGrant,proto3" json:"encrypted_access_grant,omitempty"` // invalidation tracking InvalidationReason string `protobuf:"bytes,8,opt,name=invalidation_reason,json=invalidationReason,proto3" json:"invalidation_reason,omitempty"` InvalidatedAtUnix int64 `protobuf:"varint,9,opt,name=invalidated_at_unix,json=invalidatedAtUnix,proto3" json:"invalidated_at_unix,omitempty"` // deprecated synchronization-related data State Record_State `protobuf:"varint,10,opt,name=state,proto3,enum=badgerauth.Record_State" json:"state,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetCreatedAtUnix ¶
func (*Record) GetEncryptedAccessGrant ¶
func (*Record) GetEncryptedSecretKey ¶
func (*Record) GetExpiresAtUnix ¶
func (*Record) GetInvalidatedAtUnix ¶
func (*Record) GetInvalidationReason ¶
func (*Record) GetMacaroonHead ¶
func (*Record) GetPublicProjectId ¶ added in v1.80.0
func (*Record) GetSatelliteAddress ¶
func (*Record) GetState ¶
func (x *Record) GetState() Record_State
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Record_State ¶
type Record_State int32
const (
Record_CREATED Record_State = 0
)
func (Record_State) Descriptor ¶
func (Record_State) Descriptor() protoreflect.EnumDescriptor
func (Record_State) Enum ¶
func (x Record_State) Enum() *Record_State
func (Record_State) EnumDescriptor
deprecated
func (Record_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Record_State.Descriptor instead.
func (Record_State) Number ¶
func (x Record_State) Number() protoreflect.EnumNumber
func (Record_State) String ¶
func (x Record_State) String() string
func (Record_State) Type ¶
func (Record_State) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.