pb

package
v1.90.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Overview

Package pb includes protobufs for the badgerauth package.

Index

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

func Equal

func Equal(x, y proto.Message) bool

Equal is an alias for proto.Equal.

func Marshal

func Marshal(m proto.Message) ([]byte, error)

Marshal is an alias for proto.Marshal.

func Unmarshal

func Unmarshal(b []byte, m proto.Message) error

Unmarshal is an alias for proto.Unmarshal.

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetCreatedAtUnix

func (x *Record) GetCreatedAtUnix() int64

func (*Record) GetEncryptedAccessGrant

func (x *Record) GetEncryptedAccessGrant() []byte

func (*Record) GetEncryptedSecretKey

func (x *Record) GetEncryptedSecretKey() []byte

func (*Record) GetExpiresAtUnix

func (x *Record) GetExpiresAtUnix() int64

func (*Record) GetInvalidatedAtUnix

func (x *Record) GetInvalidatedAtUnix() int64

func (*Record) GetInvalidationReason

func (x *Record) GetInvalidationReason() string

func (*Record) GetMacaroonHead

func (x *Record) GetMacaroonHead() []byte

func (*Record) GetPublic

func (x *Record) GetPublic() bool

func (*Record) GetPublicProjectId added in v1.80.0

func (x *Record) GetPublicProjectId() []byte

func (*Record) GetSatelliteAddress

func (x *Record) GetSatelliteAddress() string

func (*Record) GetState

func (x *Record) GetState() Record_State

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type Record_State

type Record_State int32
const (
	Record_CREATED Record_State = 0
)

func (Record_State) Descriptor

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 (Record_State) String

func (x Record_State) String() string

func (Record_State) Type

Jump to

Keyboard shortcuts

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