Documentation ¶
Overview ¶
Package macaroonpb defines the serialization details of macaroon ids used in the macaroon-bakery.
Index ¶
- Variables
- type MacaroonId
- func (*MacaroonId) Descriptor() ([]byte, []int)deprecated
- func (x *MacaroonId) GetNonce() []byte
- func (x *MacaroonId) GetOps() []*Op
- func (x *MacaroonId) GetStorageId() []byte
- func (id *MacaroonId) MarshalBinary() ([]byte, error)
- func (*MacaroonId) ProtoMessage()
- func (x *MacaroonId) ProtoReflect() protoreflect.Message
- func (x *MacaroonId) Reset()
- func (x *MacaroonId) String() string
- func (id *MacaroonId) UnmarshalBinary(data []byte) error
- type Op
Constants ¶
This section is empty.
Variables ¶
View Source
var File_id_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MacaroonId ¶
type MacaroonId struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` StorageId []byte `protobuf:"bytes,2,opt,name=storageId,proto3" json:"storageId,omitempty"` Ops []*Op `protobuf:"bytes,3,rep,name=ops,proto3" json:"ops,omitempty"` // contains filtered or unexported fields }
func (*MacaroonId) Descriptor
deprecated
func (*MacaroonId) Descriptor() ([]byte, []int)
Deprecated: Use MacaroonId.ProtoReflect.Descriptor instead.
func (*MacaroonId) GetNonce ¶
func (x *MacaroonId) GetNonce() []byte
func (*MacaroonId) GetOps ¶
func (x *MacaroonId) GetOps() []*Op
func (*MacaroonId) GetStorageId ¶
func (x *MacaroonId) GetStorageId() []byte
func (*MacaroonId) MarshalBinary ¶
func (id *MacaroonId) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshal.
func (*MacaroonId) ProtoMessage ¶
func (*MacaroonId) ProtoMessage()
func (*MacaroonId) ProtoReflect ¶
func (x *MacaroonId) ProtoReflect() protoreflect.Message
func (*MacaroonId) Reset ¶
func (x *MacaroonId) Reset()
func (*MacaroonId) String ¶
func (x *MacaroonId) String() string
func (*MacaroonId) UnmarshalBinary ¶
func (id *MacaroonId) UnmarshalBinary(data []byte) error
UnmarshalBinary implements encoding.UnmarshalBinary.
type Op ¶
type Op struct { Entity string `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Actions []string `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*Op) Descriptor
deprecated
func (*Op) GetActions ¶
func (*Op) ProtoMessage ¶
func (*Op) ProtoMessage()
func (*Op) ProtoReflect ¶
func (x *Op) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.