Documentation
¶
Index ¶
- func RegisterCPIDServer(s *grpc.Server, srv CPIDServer)
- type CPIDClient
- type CPIDServer
- type CPID_CreateStemcellClient
- type CPID_CreateStemcellServer
- type CPID_StreamInClient
- type CPID_StreamInServer
- type CPID_StreamOutClient
- type CPID_StreamOutServer
- type CreateVMOpts
- func (*CreateVMOpts) Descriptor() ([]byte, []int)
- func (m *CreateVMOpts) GetAgentSettings() []byte
- func (m *CreateVMOpts) GetDiskID() string
- func (m *CreateVMOpts) GetStemcellID() string
- func (*CreateVMOpts) ProtoMessage()
- func (m *CreateVMOpts) Reset()
- func (m *CreateVMOpts) String() string
- func (m *CreateVMOpts) XXX_DiscardUnknown()
- func (m *CreateVMOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateVMOpts) XXX_Merge(src proto.Message)
- func (m *CreateVMOpts) XXX_Size() int
- func (m *CreateVMOpts) XXX_Unmarshal(b []byte) error
- type DataParcel
- func (*DataParcel) Descriptor() ([]byte, []int)
- func (m *DataParcel) GetValue() []byte
- func (*DataParcel) ProtoMessage()
- func (m *DataParcel) Reset()
- func (m *DataParcel) String() string
- func (m *DataParcel) XXX_DiscardUnknown()
- func (m *DataParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataParcel) XXX_Merge(src proto.Message)
- func (m *DataParcel) XXX_Size() int
- func (m *DataParcel) XXX_Unmarshal(b []byte) error
- type DisksOpts
- func (*DisksOpts) Descriptor() ([]byte, []int)
- func (m *DisksOpts) GetDiskID() string
- func (m *DisksOpts) GetVmID() string
- func (*DisksOpts) ProtoMessage()
- func (m *DisksOpts) Reset()
- func (m *DisksOpts) String() string
- func (m *DisksOpts) XXX_DiscardUnknown()
- func (m *DisksOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DisksOpts) XXX_Merge(src proto.Message)
- func (m *DisksOpts) XXX_Size() int
- func (m *DisksOpts) XXX_Unmarshal(b []byte) error
- type NumberParcel
- func (*NumberParcel) Descriptor() ([]byte, []int)
- func (m *NumberParcel) GetValue() int32
- func (*NumberParcel) ProtoMessage()
- func (m *NumberParcel) Reset()
- func (m *NumberParcel) String() string
- func (m *NumberParcel) XXX_DiscardUnknown()
- func (m *NumberParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NumberParcel) XXX_Merge(src proto.Message)
- func (m *NumberParcel) XXX_Size() int
- func (m *NumberParcel) XXX_Unmarshal(b []byte) error
- type TextParcel
- func (*TextParcel) Descriptor() ([]byte, []int)
- func (m *TextParcel) GetValue() string
- func (*TextParcel) ProtoMessage()
- func (m *TextParcel) Reset()
- func (m *TextParcel) String() string
- func (m *TextParcel) XXX_DiscardUnknown()
- func (m *TextParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TextParcel) XXX_Merge(src proto.Message)
- func (m *TextParcel) XXX_Size() int
- func (m *TextParcel) XXX_Unmarshal(b []byte) error
- type TruthParcel
- func (*TruthParcel) Descriptor() ([]byte, []int)
- func (m *TruthParcel) GetValue() bool
- func (*TruthParcel) ProtoMessage()
- func (m *TruthParcel) Reset()
- func (m *TruthParcel) String() string
- func (m *TruthParcel) XXX_DiscardUnknown()
- func (m *TruthParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TruthParcel) XXX_Merge(src proto.Message)
- func (m *TruthParcel) XXX_Size() int
- func (m *TruthParcel) XXX_Unmarshal(b []byte) error
- type VMFilterOpts
- func (*VMFilterOpts) Descriptor() ([]byte, []int)
- func (m *VMFilterOpts) GetAll() bool
- func (m *VMFilterOpts) GetVmID() string
- func (*VMFilterOpts) ProtoMessage()
- func (m *VMFilterOpts) Reset()
- func (m *VMFilterOpts) String() string
- func (m *VMFilterOpts) XXX_DiscardUnknown()
- func (m *VMFilterOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VMFilterOpts) XXX_Merge(src proto.Message)
- func (m *VMFilterOpts) XXX_Size() int
- func (m *VMFilterOpts) XXX_Unmarshal(b []byte) error
- type Void
- func (*Void) Descriptor() ([]byte, []int)
- func (*Void) ProtoMessage()
- func (m *Void) Reset()
- func (m *Void) String() string
- func (m *Void) XXX_DiscardUnknown()
- func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Void) XXX_Merge(src proto.Message)
- func (m *Void) XXX_Size() int
- func (m *Void) XXX_Unmarshal(b []byte) error
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 ¶
type CPIDServer interface { Ping(context.Context, *Void) (*TextParcel, error) Prune(context.Context, *Void) (*Void, error) CreateStemcell(CPID_CreateStemcellServer) error DeleteStemcell(context.Context, *TextParcel) (*Void, error) DeleteDisk(context.Context, *TextParcel) (*Void, error) CreateDisk(context.Context, *NumberParcel) (*TextParcel, error) AttachDisk(context.Context, *DisksOpts) (*Void, error) DetachDisk(context.Context, *DisksOpts) (*Void, error) HasDisk(context.Context, *TextParcel) (*TruthParcel, error) CreateVM(context.Context, *CreateVMOpts) (*TextParcel, error) DeleteVM(context.Context, *TextParcel) (*Void, error) HasVM(context.Context, *TextParcel) (*TruthParcel, error) StreamOut(*TextParcel, CPID_StreamOutServer) error StreamIn(CPID_StreamInServer) error }
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) ProtoMessage ¶
func (*DisksOpts) ProtoMessage()
func (*DisksOpts) XXX_DiscardUnknown ¶
func (m *DisksOpts) XXX_DiscardUnknown()
func (*DisksOpts) XXX_Marshal ¶
func (*DisksOpts) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) XXX_DiscardUnknown ¶
func (m *Void) XXX_DiscardUnknown()
func (*Void) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.