api_pb

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pin_PinType_name = map[int32]string{
	0: "BadType",
	1: "DataType",
	2: "MetaType",
	3: "ClusterDAGType",
	4: "ShardType",
}
View Source
var Pin_PinType_value = map[string]int32{
	"BadType":        0,
	"DataType":       1,
	"MetaType":       2,
	"ClusterDAGType": 3,
	"ShardType":      4,
}

Functions

This section is empty.

Types

type Pin

type Pin struct {
	Cid                  []byte      `protobuf:"bytes,1,opt,name=Cid,proto3" json:"Cid,omitempty"`
	Type                 Pin_PinType `protobuf:"varint,2,opt,name=Type,proto3,enum=api.pb.Pin_PinType" json:"Type,omitempty"`
	Allocations          [][]byte    `protobuf:"bytes,3,rep,name=Allocations,proto3" json:"Allocations,omitempty"`
	MaxDepth             int32       `protobuf:"zigzag32,4,opt,name=MaxDepth,proto3" json:"MaxDepth,omitempty"`
	Reference            []byte      `protobuf:"bytes,5,opt,name=Reference,proto3" json:"Reference,omitempty"`
	Options              *PinOptions `protobuf:"bytes,6,opt,name=Options,proto3" json:"Options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Pin) Descriptor

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

func (*Pin) GetAllocations

func (m *Pin) GetAllocations() [][]byte

func (*Pin) GetCid

func (m *Pin) GetCid() []byte

func (*Pin) GetMaxDepth

func (m *Pin) GetMaxDepth() int32

func (*Pin) GetOptions

func (m *Pin) GetOptions() *PinOptions

func (*Pin) GetReference

func (m *Pin) GetReference() []byte

func (*Pin) GetType

func (m *Pin) GetType() Pin_PinType

func (*Pin) ProtoMessage

func (*Pin) ProtoMessage()

func (*Pin) Reset

func (m *Pin) Reset()

func (*Pin) String

func (m *Pin) String() string

func (*Pin) XXX_DiscardUnknown

func (m *Pin) XXX_DiscardUnknown()

func (*Pin) XXX_Marshal

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

func (*Pin) XXX_Merge

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

func (*Pin) XXX_Size

func (m *Pin) XXX_Size() int

func (*Pin) XXX_Unmarshal

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

type PinOptions

type PinOptions struct {
	ReplicationFactorMin int32             `protobuf:"zigzag32,1,opt,name=ReplicationFactorMin,proto3" json:"ReplicationFactorMin,omitempty"`
	ReplicationFactorMax int32             `protobuf:"zigzag32,2,opt,name=ReplicationFactorMax,proto3" json:"ReplicationFactorMax,omitempty"`
	Name                 string            `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	ShardSize            uint64            `protobuf:"varint,4,opt,name=ShardSize,proto3" json:"ShardSize,omitempty"`
	Metadata             map[string]string `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*PinOptions) Descriptor

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

func (*PinOptions) GetMetadata

func (m *PinOptions) GetMetadata() map[string]string

func (*PinOptions) GetName

func (m *PinOptions) GetName() string

func (*PinOptions) GetReplicationFactorMax

func (m *PinOptions) GetReplicationFactorMax() int32

func (*PinOptions) GetReplicationFactorMin

func (m *PinOptions) GetReplicationFactorMin() int32

func (*PinOptions) GetShardSize

func (m *PinOptions) GetShardSize() uint64

func (*PinOptions) ProtoMessage

func (*PinOptions) ProtoMessage()

func (*PinOptions) Reset

func (m *PinOptions) Reset()

func (*PinOptions) String

func (m *PinOptions) String() string

func (*PinOptions) XXX_DiscardUnknown

func (m *PinOptions) XXX_DiscardUnknown()

func (*PinOptions) XXX_Marshal

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

func (*PinOptions) XXX_Merge

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

func (*PinOptions) XXX_Size

func (m *PinOptions) XXX_Size() int

func (*PinOptions) XXX_Unmarshal

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

type Pin_PinType

type Pin_PinType int32
const (
	Pin_BadType        Pin_PinType = 0
	Pin_DataType       Pin_PinType = 1
	Pin_MetaType       Pin_PinType = 2
	Pin_ClusterDAGType Pin_PinType = 3
	Pin_ShardType      Pin_PinType = 4
)

func (Pin_PinType) EnumDescriptor

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

func (Pin_PinType) String

func (x Pin_PinType) String() string

Jump to

Keyboard shortcuts

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