Documentation ¶
Index ¶
- Variables
- func RegisterMocHostAgentServer(s *grpc.Server, srv MocHostAgentServer)
- type Host
- func (*Host) Descriptor() ([]byte, []int)
- func (m *Host) GetAuthorizerPort() int32
- func (m *Host) GetCertificate() string
- func (m *Host) GetId() string
- func (m *Host) GetName() string
- func (m *Host) GetPort() int32
- func (m *Host) GetRunningState() HostState
- func (m *Host) GetStatus() *common.Status
- func (m *Host) GetTags() *common.Tags
- func (*Host) ProtoMessage()
- func (m *Host) Reset()
- func (m *Host) String() string
- func (m *Host) XXX_DiscardUnknown()
- func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Host) XXX_Merge(src proto.Message)
- func (m *Host) XXX_Size() int
- func (m *Host) XXX_Unmarshal(b []byte) error
- type HostRequest
- func (*HostRequest) Descriptor() ([]byte, []int)
- func (m *HostRequest) GetHost() *Host
- func (m *HostRequest) GetOperationType() common.Operation
- func (*HostRequest) ProtoMessage()
- func (m *HostRequest) Reset()
- func (m *HostRequest) String() string
- func (m *HostRequest) XXX_DiscardUnknown()
- func (m *HostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostRequest) XXX_Merge(src proto.Message)
- func (m *HostRequest) XXX_Size() int
- func (m *HostRequest) XXX_Unmarshal(b []byte) error
- type HostResponse
- func (*HostResponse) Descriptor() ([]byte, []int)
- func (m *HostResponse) GetError() string
- func (m *HostResponse) GetHost() *Host
- func (m *HostResponse) GetIntermediateCACertificate() string
- func (m *HostResponse) GetResult() *wrappers.BoolValue
- func (m *HostResponse) GetRootCACertificate() string
- func (*HostResponse) ProtoMessage()
- func (m *HostResponse) Reset()
- func (m *HostResponse) String() string
- func (m *HostResponse) XXX_DiscardUnknown()
- func (m *HostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostResponse) XXX_Merge(src proto.Message)
- func (m *HostResponse) XXX_Size() int
- func (m *HostResponse) XXX_Unmarshal(b []byte) error
- type HostState
- type MocHostAgentClient
- type MocHostAgentServer
- type UnimplementedMocHostAgentServer
Constants ¶
This section is empty.
Variables ¶
View Source
var HostState_name = map[int32]string{
0: "Unknown",
1: "Active",
2: "Inactive",
3: "Poweroff",
}
View Source
var HostState_value = map[string]int32{
"Unknown": 0,
"Active": 1,
"Inactive": 2,
"Poweroff": 3,
}
Functions ¶
func RegisterMocHostAgentServer ¶
func RegisterMocHostAgentServer(s *grpc.Server, srv MocHostAgentServer)
Types ¶
type Host ¶
type Host struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Status *common.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` AuthorizerPort int32 `protobuf:"varint,6,opt,name=authorizerPort,proto3" json:"authorizerPort,omitempty"` RunningState HostState `protobuf:"varint,7,opt,name=runningState,proto3,enum=moc.nodeagent.host.HostState" json:"runningState,omitempty"` Tags *common.Tags `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Host) Descriptor ¶
func (*Host) GetAuthorizerPort ¶
func (*Host) GetCertificate ¶
func (*Host) GetRunningState ¶
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) XXX_DiscardUnknown ¶
func (m *Host) XXX_DiscardUnknown()
func (*Host) XXX_Unmarshal ¶
type HostRequest ¶
type HostRequest struct { Host *Host `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"` OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HostRequest) Descriptor ¶
func (*HostRequest) Descriptor() ([]byte, []int)
func (*HostRequest) GetHost ¶
func (m *HostRequest) GetHost() *Host
func (*HostRequest) GetOperationType ¶
func (m *HostRequest) GetOperationType() common.Operation
func (*HostRequest) ProtoMessage ¶
func (*HostRequest) ProtoMessage()
func (*HostRequest) Reset ¶
func (m *HostRequest) Reset()
func (*HostRequest) String ¶
func (m *HostRequest) String() string
func (*HostRequest) XXX_DiscardUnknown ¶
func (m *HostRequest) XXX_DiscardUnknown()
func (*HostRequest) XXX_Marshal ¶
func (m *HostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostRequest) XXX_Merge ¶
func (m *HostRequest) XXX_Merge(src proto.Message)
func (*HostRequest) XXX_Size ¶
func (m *HostRequest) XXX_Size() int
func (*HostRequest) XXX_Unmarshal ¶
func (m *HostRequest) XXX_Unmarshal(b []byte) error
type HostResponse ¶
type HostResponse struct { Host *Host `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"` RootCACertificate string `protobuf:"bytes,2,opt,name=RootCACertificate,proto3" json:"RootCACertificate,omitempty"` IntermediateCACertificate string `protobuf:"bytes,3,opt,name=IntermediateCACertificate,proto3" json:"IntermediateCACertificate,omitempty"` Result *wrappers.BoolValue `protobuf:"bytes,4,opt,name=Result,proto3" json:"Result,omitempty"` Error string `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HostResponse) Descriptor ¶
func (*HostResponse) Descriptor() ([]byte, []int)
func (*HostResponse) GetError ¶
func (m *HostResponse) GetError() string
func (*HostResponse) GetHost ¶
func (m *HostResponse) GetHost() *Host
func (*HostResponse) GetIntermediateCACertificate ¶
func (m *HostResponse) GetIntermediateCACertificate() string
func (*HostResponse) GetResult ¶
func (m *HostResponse) GetResult() *wrappers.BoolValue
func (*HostResponse) GetRootCACertificate ¶
func (m *HostResponse) GetRootCACertificate() string
func (*HostResponse) ProtoMessage ¶
func (*HostResponse) ProtoMessage()
func (*HostResponse) Reset ¶
func (m *HostResponse) Reset()
func (*HostResponse) String ¶
func (m *HostResponse) String() string
func (*HostResponse) XXX_DiscardUnknown ¶
func (m *HostResponse) XXX_DiscardUnknown()
func (*HostResponse) XXX_Marshal ¶
func (m *HostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostResponse) XXX_Merge ¶
func (m *HostResponse) XXX_Merge(src proto.Message)
func (*HostResponse) XXX_Size ¶
func (m *HostResponse) XXX_Size() int
func (*HostResponse) XXX_Unmarshal ¶
func (m *HostResponse) XXX_Unmarshal(b []byte) error
type MocHostAgentClient ¶
type MocHostAgentClient interface {
Invoke(ctx context.Context, in *HostRequest, opts ...grpc.CallOption) (*HostResponse, error)
}
MocHostAgentClient is the client API for MocHostAgent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMocHostAgentClient ¶
func NewMocHostAgentClient(cc *grpc.ClientConn) MocHostAgentClient
type MocHostAgentServer ¶
type MocHostAgentServer interface {
Invoke(context.Context, *HostRequest) (*HostResponse, error)
}
MocHostAgentServer is the server API for MocHostAgent service.
type UnimplementedMocHostAgentServer ¶
type UnimplementedMocHostAgentServer struct { }
UnimplementedMocHostAgentServer can be embedded to have forward compatible implementations.
func (*UnimplementedMocHostAgentServer) Invoke ¶
func (*UnimplementedMocHostAgentServer) Invoke(ctx context.Context, req *HostRequest) (*HostResponse, error)
Click to show internal directories.
Click to hide internal directories.