ipfs-cluster: github.com/ipfs/ipfs-cluster/api/pb Index | Files

package pb

import "github.com/ipfs/ipfs-cluster/api/pb"

Package pb provides protobuf definitions for serialized types in Cluster. go:generate protoc -I=. --go_out=. types.proto

Index

Package Files

generate.go types.pb.go

Variables

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

Enum value maps for Pin_PinType.

var File_types_proto protoreflect.FileDescriptor

type Pin Uses

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"`
    // contains filtered or unexported fields
}

func (*Pin) Descriptor Uses

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

Deprecated: Use Pin.ProtoReflect.Descriptor instead.

func (*Pin) GetAllocations Uses

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

func (*Pin) GetCid Uses

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

func (*Pin) GetMaxDepth Uses

func (x *Pin) GetMaxDepth() int32

func (*Pin) GetOptions Uses

func (x *Pin) GetOptions() *PinOptions

func (*Pin) GetReference Uses

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

func (*Pin) GetType Uses

func (x *Pin) GetType() Pin_PinType

func (*Pin) ProtoMessage Uses

func (*Pin) ProtoMessage()

func (*Pin) ProtoReflect Uses

func (x *Pin) ProtoReflect() protoreflect.Message

func (*Pin) Reset Uses

func (x *Pin) Reset()

func (*Pin) String Uses

func (x *Pin) String() string

type PinOptions Uses

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 `protobuf:"bytes,6,rep,name=Metadata,proto3" json:"Metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    PinUpdate            []byte            `protobuf:"bytes,7,opt,name=PinUpdate,proto3" json:"PinUpdate,omitempty"`
    ExpireAt             uint64            `protobuf:"varint,8,opt,name=ExpireAt,proto3" json:"ExpireAt,omitempty"`
    // contains filtered or unexported fields
}

func (*PinOptions) Descriptor Uses

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

Deprecated: Use PinOptions.ProtoReflect.Descriptor instead.

func (*PinOptions) GetExpireAt Uses

func (x *PinOptions) GetExpireAt() uint64

func (*PinOptions) GetMetadata Uses

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

func (*PinOptions) GetName Uses

func (x *PinOptions) GetName() string

func (*PinOptions) GetPinUpdate Uses

func (x *PinOptions) GetPinUpdate() []byte

func (*PinOptions) GetReplicationFactorMax Uses

func (x *PinOptions) GetReplicationFactorMax() int32

func (*PinOptions) GetReplicationFactorMin Uses

func (x *PinOptions) GetReplicationFactorMin() int32

func (*PinOptions) GetShardSize Uses

func (x *PinOptions) GetShardSize() uint64

func (*PinOptions) ProtoMessage Uses

func (*PinOptions) ProtoMessage()

func (*PinOptions) ProtoReflect Uses

func (x *PinOptions) ProtoReflect() protoreflect.Message

func (*PinOptions) Reset Uses

func (x *PinOptions) Reset()

func (*PinOptions) String Uses

func (x *PinOptions) String() string

type Pin_PinType Uses

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

func (Pin_PinType) Descriptor Uses

func (Pin_PinType) Descriptor() protoreflect.EnumDescriptor

func (Pin_PinType) Enum Uses

func (x Pin_PinType) Enum() *Pin_PinType

func (Pin_PinType) EnumDescriptor Uses

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

Deprecated: Use Pin_PinType.Descriptor instead.

func (Pin_PinType) Number Uses

func (x Pin_PinType) Number() protoreflect.EnumNumber

func (Pin_PinType) String Uses

func (x Pin_PinType) String() string

func (Pin_PinType) Type Uses

func (Pin_PinType) Type() protoreflect.EnumType

Package pb imports 5 packages (graph) and is imported by 1 packages. Updated 2020-06-07. Refresh now. Tools for package owners.