Documentation ¶
Overview ¶
Package macaroonpb is an internal package that allows us to hide the internal serialization details of macaroon ids.
Package macaroonpb is a generated protocol buffer package.
It is generated from these files:
id.proto
It has these top-level messages:
MacaroonId Op
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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" json:"ops,omitempty"` }
func (*MacaroonId) Descriptor ¶
func (*MacaroonId) Descriptor() ([]byte, []int)
func (*MacaroonId) GetOps ¶
func (m *MacaroonId) GetOps() []*Op
func (*MacaroonId) MarshalBinary ¶
func (id *MacaroonId) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshal.
func (*MacaroonId) ProtoMessage ¶
func (*MacaroonId) ProtoMessage()
func (*MacaroonId) Reset ¶
func (m *MacaroonId) Reset()
func (*MacaroonId) String ¶
func (m *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" json:"entity,omitempty"` Actions []string `protobuf:"bytes,2,rep,name=actions" json:"actions,omitempty"` }
func (*Op) Descriptor ¶
func (*Op) ProtoMessage ¶
func (*Op) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.