pbold

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BandwidthAction_name = map[int32]string{
	0: "PUT",
	1: "GET",
	2: "GET_AUDIT",
	3: "GET_REPAIR",
	4: "PUT_REPAIR",
}
View Source
var BandwidthAction_value = map[string]int32{
	"PUT":        0,
	"GET":        1,
	"GET_AUDIT":  2,
	"GET_REPAIR": 3,
	"PUT_REPAIR": 4,
}

Functions

This section is empty.

Types

type BandwidthAction

type BandwidthAction int32
const (
	BandwidthAction_PUT        BandwidthAction = 0
	BandwidthAction_GET        BandwidthAction = 1
	BandwidthAction_GET_AUDIT  BandwidthAction = 2
	BandwidthAction_GET_REPAIR BandwidthAction = 3
	BandwidthAction_PUT_REPAIR BandwidthAction = 4
)

func (BandwidthAction) EnumDescriptor

func (BandwidthAction) EnumDescriptor() ([]byte, []int)

func (BandwidthAction) String

func (x BandwidthAction) String() string

type Order

Order aliases RenterBandwidthAllocation

type OrderLimit

type OrderLimit = PayerBandwidthAllocation

OrderLimit aliases PayerBandwidthAllocation

type PayerBandwidthAllocation

type PayerBandwidthAllocation struct {
	SatelliteId          pb.NodeID       `protobuf:"bytes,1,opt,name=satellite_id,json=satelliteId,proto3,customtype=NodeID" json:"satellite_id"`
	UplinkId             pb.NodeID       `protobuf:"bytes,2,opt,name=uplink_id,json=uplinkId,proto3,customtype=NodeID" json:"uplink_id"`
	MaxSize              int64           `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
	ExpirationUnixSec    int64           `protobuf:"varint,4,opt,name=expiration_unix_sec,json=expirationUnixSec,proto3" json:"expiration_unix_sec,omitempty"`
	SerialNumber         string          `protobuf:"bytes,5,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	Action               BandwidthAction `protobuf:"varint,6,opt,name=action,proto3,enum=piecestoreroutes.BandwidthAction" json:"action,omitempty"`
	CreatedUnixSec       int64           `protobuf:"varint,7,opt,name=created_unix_sec,json=createdUnixSec,proto3" json:"created_unix_sec,omitempty"`
	Certs                [][]byte        `protobuf:"bytes,8,rep,name=certs,proto3" json:"certs,omitempty"`
	Signature            []byte          `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*PayerBandwidthAllocation) Descriptor

func (*PayerBandwidthAllocation) Descriptor() ([]byte, []int)

func (*PayerBandwidthAllocation) GetAction

func (*PayerBandwidthAllocation) GetCerts

func (m *PayerBandwidthAllocation) GetCerts() [][]byte

func (*PayerBandwidthAllocation) GetCreatedUnixSec

func (m *PayerBandwidthAllocation) GetCreatedUnixSec() int64

func (*PayerBandwidthAllocation) GetExpirationUnixSec

func (m *PayerBandwidthAllocation) GetExpirationUnixSec() int64

func (*PayerBandwidthAllocation) GetMaxSize

func (m *PayerBandwidthAllocation) GetMaxSize() int64

func (*PayerBandwidthAllocation) GetSerialNumber

func (m *PayerBandwidthAllocation) GetSerialNumber() string

func (*PayerBandwidthAllocation) GetSignature

func (m *PayerBandwidthAllocation) GetSignature() []byte

func (*PayerBandwidthAllocation) ProtoMessage

func (*PayerBandwidthAllocation) ProtoMessage()

func (*PayerBandwidthAllocation) Reset

func (m *PayerBandwidthAllocation) Reset()

func (*PayerBandwidthAllocation) String

func (m *PayerBandwidthAllocation) String() string

func (*PayerBandwidthAllocation) XXX_DiscardUnknown

func (m *PayerBandwidthAllocation) XXX_DiscardUnknown()

func (*PayerBandwidthAllocation) XXX_Marshal

func (m *PayerBandwidthAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PayerBandwidthAllocation) XXX_Merge

func (m *PayerBandwidthAllocation) XXX_Merge(src proto.Message)

func (*PayerBandwidthAllocation) XXX_Size

func (m *PayerBandwidthAllocation) XXX_Size() int

func (*PayerBandwidthAllocation) XXX_Unmarshal

func (m *PayerBandwidthAllocation) XXX_Unmarshal(b []byte) error

type RenterBandwidthAllocation

type RenterBandwidthAllocation struct {
	PayerAllocation      PayerBandwidthAllocation `protobuf:"bytes,1,opt,name=payer_allocation,json=payerAllocation,proto3" json:"payer_allocation"`
	Total                int64                    `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	StorageNodeId        pb.NodeID                `protobuf:"bytes,3,opt,name=storage_node_id,json=storageNodeId,proto3,customtype=NodeID" json:"storage_node_id"`
	Certs                [][]byte                 `protobuf:"bytes,4,rep,name=certs,proto3" json:"certs,omitempty"`
	Signature            []byte                   `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*RenterBandwidthAllocation) Descriptor

func (*RenterBandwidthAllocation) Descriptor() ([]byte, []int)

func (*RenterBandwidthAllocation) GetCerts

func (m *RenterBandwidthAllocation) GetCerts() [][]byte

func (*RenterBandwidthAllocation) GetPayerAllocation

func (m *RenterBandwidthAllocation) GetPayerAllocation() PayerBandwidthAllocation

func (*RenterBandwidthAllocation) GetSignature

func (m *RenterBandwidthAllocation) GetSignature() []byte

func (*RenterBandwidthAllocation) GetTotal

func (m *RenterBandwidthAllocation) GetTotal() int64

func (*RenterBandwidthAllocation) ProtoMessage

func (*RenterBandwidthAllocation) ProtoMessage()

func (*RenterBandwidthAllocation) Reset

func (m *RenterBandwidthAllocation) Reset()

func (*RenterBandwidthAllocation) String

func (m *RenterBandwidthAllocation) String() string

func (*RenterBandwidthAllocation) XXX_DiscardUnknown

func (m *RenterBandwidthAllocation) XXX_DiscardUnknown()

func (*RenterBandwidthAllocation) XXX_Marshal

func (m *RenterBandwidthAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenterBandwidthAllocation) XXX_Merge

func (m *RenterBandwidthAllocation) XXX_Merge(src proto.Message)

func (*RenterBandwidthAllocation) XXX_Size

func (m *RenterBandwidthAllocation) XXX_Size() int

func (*RenterBandwidthAllocation) XXX_Unmarshal

func (m *RenterBandwidthAllocation) XXX_Unmarshal(b []byte) error

type SignedHash

type SignedHash struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Certs                [][]byte `protobuf:"bytes,2,rep,name=certs,proto3" json:"certs,omitempty"`
	Signature            []byte   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignedHash) Descriptor

func (*SignedHash) Descriptor() ([]byte, []int)

func (*SignedHash) GetCerts

func (m *SignedHash) GetCerts() [][]byte

func (*SignedHash) GetHash

func (m *SignedHash) GetHash() []byte

func (*SignedHash) GetSignature

func (m *SignedHash) GetSignature() []byte

func (*SignedHash) ProtoMessage

func (*SignedHash) ProtoMessage()

func (*SignedHash) Reset

func (m *SignedHash) Reset()

func (*SignedHash) String

func (m *SignedHash) String() string

func (*SignedHash) XXX_DiscardUnknown

func (m *SignedHash) XXX_DiscardUnknown()

func (*SignedHash) XXX_Marshal

func (m *SignedHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedHash) XXX_Merge

func (m *SignedHash) XXX_Merge(src proto.Message)

func (*SignedHash) XXX_Size

func (m *SignedHash) XXX_Size() int

func (*SignedHash) XXX_Unmarshal

func (m *SignedHash) XXX_Unmarshal(b []byte) error

type SignedMessage

type SignedMessage struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	PublicKey            []byte   `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignedMessage) Descriptor

func (*SignedMessage) Descriptor() ([]byte, []int)

func (*SignedMessage) GetData

func (m *SignedMessage) GetData() []byte

func (*SignedMessage) GetPublicKey

func (m *SignedMessage) GetPublicKey() []byte

func (*SignedMessage) GetSignature

func (m *SignedMessage) GetSignature() []byte

func (*SignedMessage) ProtoMessage

func (*SignedMessage) ProtoMessage()

func (*SignedMessage) Reset

func (m *SignedMessage) Reset()

func (*SignedMessage) String

func (m *SignedMessage) String() string

func (*SignedMessage) XXX_DiscardUnknown

func (m *SignedMessage) XXX_DiscardUnknown()

func (*SignedMessage) XXX_Marshal

func (m *SignedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedMessage) XXX_Merge

func (m *SignedMessage) XXX_Merge(src proto.Message)

func (*SignedMessage) XXX_Size

func (m *SignedMessage) XXX_Size() int

func (*SignedMessage) XXX_Unmarshal

func (m *SignedMessage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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