macaroonpb

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

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

func (*Op) ProtoMessage

func (*Op) ProtoMessage()

func (*Op) Reset

func (m *Op) Reset()

func (*Op) String

func (m *Op) String() string

Jump to

Keyboard shortcuts

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