pb

package
v0.0.0-...-7735c78 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCPIDServer

func RegisterCPIDServer(s *grpc.Server, srv CPIDServer)

Types

type CPIDClient

type CPIDClient interface {
	Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*TextParcel, error)
	Prune(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Void, error)
	CreateStemcell(ctx context.Context, opts ...grpc.CallOption) (CPID_CreateStemcellClient, error)
	DeleteStemcell(ctx context.Context, in *TextParcel, opts ...grpc.CallOption) (*Void, error)
	DeleteDisk(ctx context.Context, in *TextParcel, opts ...grpc.CallOption) (*Void, error)
	CreateDisk(ctx context.Context, in *NumberParcel, opts ...grpc.CallOption) (*TextParcel, error)
	AttachDisk(ctx context.Context, in *DisksOpts, opts ...grpc.CallOption) (*Void, error)
	DetachDisk(ctx context.Context, in *DisksOpts, opts ...grpc.CallOption) (*Void, error)
	HasDisk(ctx context.Context, in *TextParcel, opts ...grpc.CallOption) (*TruthParcel, error)
	CreateVM(ctx context.Context, in *CreateVMOpts, opts ...grpc.CallOption) (*TextParcel, error)
	DeleteVM(ctx context.Context, in *TextParcel, opts ...grpc.CallOption) (*Void, error)
	HasVM(ctx context.Context, in *TextParcel, opts ...grpc.CallOption) (*TruthParcel, error)
	StreamOut(ctx context.Context, in *TextParcel, opts ...grpc.CallOption) (CPID_StreamOutClient, error)
	StreamIn(ctx context.Context, opts ...grpc.CallOption) (CPID_StreamInClient, error)
}

CPIDClient is the client API for CPID service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCPIDClient

func NewCPIDClient(cc *grpc.ClientConn) CPIDClient

type CPIDServer

CPIDServer is the server API for CPID service.

type CPID_CreateStemcellClient

type CPID_CreateStemcellClient interface {
	Send(*DataParcel) error
	CloseAndRecv() (*TextParcel, error)
	grpc.ClientStream
}

type CPID_CreateStemcellServer

type CPID_CreateStemcellServer interface {
	SendAndClose(*TextParcel) error
	Recv() (*DataParcel, error)
	grpc.ServerStream
}

type CPID_StreamInClient

type CPID_StreamInClient interface {
	Send(*DataParcel) error
	CloseAndRecv() (*Void, error)
	grpc.ClientStream
}

type CPID_StreamInServer

type CPID_StreamInServer interface {
	SendAndClose(*Void) error
	Recv() (*DataParcel, error)
	grpc.ServerStream
}

type CPID_StreamOutClient

type CPID_StreamOutClient interface {
	Recv() (*DataParcel, error)
	grpc.ClientStream
}

type CPID_StreamOutServer

type CPID_StreamOutServer interface {
	Send(*DataParcel) error
	grpc.ServerStream
}

type CreateVMOpts

type CreateVMOpts struct {
	StemcellID           string   `protobuf:"bytes,1,opt,name=stemcellID,proto3" json:"stemcellID,omitempty"`
	AgentSettings        []byte   `protobuf:"bytes,2,opt,name=agentSettings,proto3" json:"agentSettings,omitempty"`
	DiskID               string   `protobuf:"bytes,3,opt,name=diskID,proto3" json:"diskID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateVMOpts) Descriptor

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

func (*CreateVMOpts) GetAgentSettings

func (m *CreateVMOpts) GetAgentSettings() []byte

func (*CreateVMOpts) GetDiskID

func (m *CreateVMOpts) GetDiskID() string

func (*CreateVMOpts) GetStemcellID

func (m *CreateVMOpts) GetStemcellID() string

func (*CreateVMOpts) ProtoMessage

func (*CreateVMOpts) ProtoMessage()

func (*CreateVMOpts) Reset

func (m *CreateVMOpts) Reset()

func (*CreateVMOpts) String

func (m *CreateVMOpts) String() string

func (*CreateVMOpts) XXX_DiscardUnknown

func (m *CreateVMOpts) XXX_DiscardUnknown()

func (*CreateVMOpts) XXX_Marshal

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

func (*CreateVMOpts) XXX_Merge

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

func (*CreateVMOpts) XXX_Size

func (m *CreateVMOpts) XXX_Size() int

func (*CreateVMOpts) XXX_Unmarshal

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

type DataParcel

type DataParcel struct {
	Value                []byte   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DataParcel) Descriptor

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

func (*DataParcel) GetValue

func (m *DataParcel) GetValue() []byte

func (*DataParcel) ProtoMessage

func (*DataParcel) ProtoMessage()

func (*DataParcel) Reset

func (m *DataParcel) Reset()

func (*DataParcel) String

func (m *DataParcel) String() string

func (*DataParcel) XXX_DiscardUnknown

func (m *DataParcel) XXX_DiscardUnknown()

func (*DataParcel) XXX_Marshal

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

func (*DataParcel) XXX_Merge

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

func (*DataParcel) XXX_Size

func (m *DataParcel) XXX_Size() int

func (*DataParcel) XXX_Unmarshal

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

type DisksOpts

type DisksOpts struct {
	VmID                 string   `protobuf:"bytes,1,opt,name=vmID,proto3" json:"vmID,omitempty"`
	DiskID               string   `protobuf:"bytes,2,opt,name=diskID,proto3" json:"diskID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DisksOpts) Descriptor

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

func (*DisksOpts) GetDiskID

func (m *DisksOpts) GetDiskID() string

func (*DisksOpts) GetVmID

func (m *DisksOpts) GetVmID() string

func (*DisksOpts) ProtoMessage

func (*DisksOpts) ProtoMessage()

func (*DisksOpts) Reset

func (m *DisksOpts) Reset()

func (*DisksOpts) String

func (m *DisksOpts) String() string

func (*DisksOpts) XXX_DiscardUnknown

func (m *DisksOpts) XXX_DiscardUnknown()

func (*DisksOpts) XXX_Marshal

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

func (*DisksOpts) XXX_Merge

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

func (*DisksOpts) XXX_Size

func (m *DisksOpts) XXX_Size() int

func (*DisksOpts) XXX_Unmarshal

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

type NumberParcel

type NumberParcel struct {
	Value                int32    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NumberParcel) Descriptor

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

func (*NumberParcel) GetValue

func (m *NumberParcel) GetValue() int32

func (*NumberParcel) ProtoMessage

func (*NumberParcel) ProtoMessage()

func (*NumberParcel) Reset

func (m *NumberParcel) Reset()

func (*NumberParcel) String

func (m *NumberParcel) String() string

func (*NumberParcel) XXX_DiscardUnknown

func (m *NumberParcel) XXX_DiscardUnknown()

func (*NumberParcel) XXX_Marshal

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

func (*NumberParcel) XXX_Merge

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

func (*NumberParcel) XXX_Size

func (m *NumberParcel) XXX_Size() int

func (*NumberParcel) XXX_Unmarshal

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

type TextParcel

type TextParcel struct {
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TextParcel) Descriptor

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

func (*TextParcel) GetValue

func (m *TextParcel) GetValue() string

func (*TextParcel) ProtoMessage

func (*TextParcel) ProtoMessage()

func (*TextParcel) Reset

func (m *TextParcel) Reset()

func (*TextParcel) String

func (m *TextParcel) String() string

func (*TextParcel) XXX_DiscardUnknown

func (m *TextParcel) XXX_DiscardUnknown()

func (*TextParcel) XXX_Marshal

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

func (*TextParcel) XXX_Merge

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

func (*TextParcel) XXX_Size

func (m *TextParcel) XXX_Size() int

func (*TextParcel) XXX_Unmarshal

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

type TruthParcel

type TruthParcel struct {
	Value                bool     `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TruthParcel) Descriptor

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

func (*TruthParcel) GetValue

func (m *TruthParcel) GetValue() bool

func (*TruthParcel) ProtoMessage

func (*TruthParcel) ProtoMessage()

func (*TruthParcel) Reset

func (m *TruthParcel) Reset()

func (*TruthParcel) String

func (m *TruthParcel) String() string

func (*TruthParcel) XXX_DiscardUnknown

func (m *TruthParcel) XXX_DiscardUnknown()

func (*TruthParcel) XXX_Marshal

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

func (*TruthParcel) XXX_Merge

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

func (*TruthParcel) XXX_Size

func (m *TruthParcel) XXX_Size() int

func (*TruthParcel) XXX_Unmarshal

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

type VMFilterOpts

type VMFilterOpts struct {
	VmID                 string   `protobuf:"bytes,1,opt,name=vmID,proto3" json:"vmID,omitempty"`
	All                  bool     `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMFilterOpts) Descriptor

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

func (*VMFilterOpts) GetAll

func (m *VMFilterOpts) GetAll() bool

func (*VMFilterOpts) GetVmID

func (m *VMFilterOpts) GetVmID() string

func (*VMFilterOpts) ProtoMessage

func (*VMFilterOpts) ProtoMessage()

func (*VMFilterOpts) Reset

func (m *VMFilterOpts) Reset()

func (*VMFilterOpts) String

func (m *VMFilterOpts) String() string

func (*VMFilterOpts) XXX_DiscardUnknown

func (m *VMFilterOpts) XXX_DiscardUnknown()

func (*VMFilterOpts) XXX_Marshal

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

func (*VMFilterOpts) XXX_Merge

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

func (*VMFilterOpts) XXX_Size

func (m *VMFilterOpts) XXX_Size() int

func (*VMFilterOpts) XXX_Unmarshal

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

type Void

type Void struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Void) Descriptor

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

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) Reset

func (m *Void) Reset()

func (*Void) String

func (m *Void) String() string

func (*Void) XXX_DiscardUnknown

func (m *Void) XXX_DiscardUnknown()

func (*Void) XXX_Marshal

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

func (*Void) XXX_Merge

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

func (*Void) XXX_Size

func (m *Void) XXX_Size() int

func (*Void) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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