node

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Host) GetAuthorizerPort

func (m *Host) GetAuthorizerPort() int32

func (*Host) GetCertificate

func (m *Host) GetCertificate() string

func (*Host) GetId

func (m *Host) GetId() string

func (*Host) GetName

func (m *Host) GetName() string

func (*Host) GetPort

func (m *Host) GetPort() int32

func (*Host) GetRunningState

func (m *Host) GetRunningState() HostState

func (*Host) GetStatus

func (m *Host) GetStatus() *common.Status

func (*Host) GetTags

func (m *Host) GetTags() *common.Tags

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) Reset

func (m *Host) Reset()

func (*Host) String

func (m *Host) String() string

func (*Host) XXX_DiscardUnknown

func (m *Host) XXX_DiscardUnknown()

func (*Host) XXX_Marshal

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

func (*Host) XXX_Merge

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

func (*Host) XXX_Size

func (m *Host) XXX_Size() int

func (*Host) XXX_Unmarshal

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

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 HostState

type HostState int32
const (
	HostState_Unknown  HostState = 0
	HostState_Active   HostState = 1
	HostState_Inactive HostState = 2
	HostState_Poweroff HostState = 3
)

func (HostState) EnumDescriptor

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

func (HostState) String

func (x HostState) String() string

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

Jump to

Keyboard shortcuts

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