node_statusv1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NodeStatusService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hashicorp.cloud.hcp_link.node_status.v1.NodeStatusService",
	HandlerType: (*NodeStatusServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNodeStatus",
			Handler:    _NodeStatusService_GetNodeStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hashicorp/cloud/hcp_link/node_status/v1/node_status.proto",
}

NodeStatusService_ServiceDesc is the grpc.ServiceDesc for NodeStatusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNodeStatusServiceServer

func RegisterNodeStatusServiceServer(s grpc.ServiceRegistrar, srv NodeStatusServiceServer)

Types

type GetNodeStatusRequest

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

GetNodeStatusRequest is empty for now as GetNodeStatus does not expect any arguments.

func (*GetNodeStatusRequest) Descriptor

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

func (*GetNodeStatusRequest) ProtoMessage

func (*GetNodeStatusRequest) ProtoMessage()

func (*GetNodeStatusRequest) Reset

func (m *GetNodeStatusRequest) Reset()

func (*GetNodeStatusRequest) String

func (m *GetNodeStatusRequest) String() string

func (*GetNodeStatusRequest) XXX_DiscardUnknown

func (m *GetNodeStatusRequest) XXX_DiscardUnknown()

func (*GetNodeStatusRequest) XXX_Marshal

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

func (*GetNodeStatusRequest) XXX_Merge

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

func (*GetNodeStatusRequest) XXX_Size

func (m *GetNodeStatusRequest) XXX_Size() int

func (*GetNodeStatusRequest) XXX_Unmarshal

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

type GetNodeStatusResponse

type GetNodeStatusResponse struct {
	// node_status contains information about the node's current status.
	NodeStatus           *NodeStatus `protobuf:"bytes,1,opt,name=node_status,json=nodeStatus,proto3" json:"node_status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

GetNodeStatusResponse contains information about the node's current status.

func (*GetNodeStatusResponse) Descriptor

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

func (*GetNodeStatusResponse) GetNodeStatus

func (m *GetNodeStatusResponse) GetNodeStatus() *NodeStatus

func (*GetNodeStatusResponse) ProtoMessage

func (*GetNodeStatusResponse) ProtoMessage()

func (*GetNodeStatusResponse) Reset

func (m *GetNodeStatusResponse) Reset()

func (*GetNodeStatusResponse) String

func (m *GetNodeStatusResponse) String() string

func (*GetNodeStatusResponse) XXX_DiscardUnknown

func (m *GetNodeStatusResponse) XXX_DiscardUnknown()

func (*GetNodeStatusResponse) XXX_Marshal

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

func (*GetNodeStatusResponse) XXX_Merge

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

func (*GetNodeStatusResponse) XXX_Size

func (m *GetNodeStatusResponse) XXX_Size() int

func (*GetNodeStatusResponse) XXX_Unmarshal

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

type NodeStatus

type NodeStatus struct {
	// node_id is the ID assigned to the node. It is expected to unique within the
	// link resource (e.g. within the cluster).
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// node_version is the node's version in semantic version format.
	NodeVersion string `protobuf:"bytes,2,opt,name=node_version,json=nodeVersion,proto3" json:"node_version,omitempty"`
	// node_os is the lower-case name of the operating system the client is
	// running on (e.g. linux, windows).
	NodeOs string `protobuf:"bytes,3,opt,name=node_os,json=nodeOs,proto3" json:"node_os,omitempty"`
	// node_architecture is the lower-case architecture of the client binary
	// (e.g. amd64, arm, ...).
	NodeArchitecture string `protobuf:"bytes,4,opt,name=node_architecture,json=nodeArchitecture,proto3" json:"node_architecture,omitempty"`
	// timestamp is the time the status was recorded on the node.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// status_version is the version of the status message format. To ensure
	// that the version is not omitted by accident the initial version is 1.
	StatusVersion uint32 `protobuf:"varint,6,opt,name=status_version,json=statusVersion,proto3" json:"status_version,omitempty"`
	// status is the product specific status of the node. The link library and
	// service is agnostic to the information transmitted in this field.
	Status               *anypb.Any `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

NodeStatus contains information about the node's current status. The status is a combination of common status information and product specific status information.

func (*NodeStatus) Descriptor

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

func (*NodeStatus) GetNodeArchitecture

func (m *NodeStatus) GetNodeArchitecture() string

func (*NodeStatus) GetNodeId

func (m *NodeStatus) GetNodeId() string

func (*NodeStatus) GetNodeOs

func (m *NodeStatus) GetNodeOs() string

func (*NodeStatus) GetNodeVersion

func (m *NodeStatus) GetNodeVersion() string

func (*NodeStatus) GetStatus

func (m *NodeStatus) GetStatus() *anypb.Any

func (*NodeStatus) GetStatusVersion

func (m *NodeStatus) GetStatusVersion() uint32

func (*NodeStatus) GetTimestamp

func (m *NodeStatus) GetTimestamp() *timestamppb.Timestamp

func (*NodeStatus) ProtoMessage

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) Reset

func (m *NodeStatus) Reset()

func (*NodeStatus) String

func (m *NodeStatus) String() string

func (*NodeStatus) XXX_DiscardUnknown

func (m *NodeStatus) XXX_DiscardUnknown()

func (*NodeStatus) XXX_Marshal

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

func (*NodeStatus) XXX_Merge

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

func (*NodeStatus) XXX_Size

func (m *NodeStatus) XXX_Size() int

func (*NodeStatus) XXX_Unmarshal

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

type NodeStatusServiceClient

type NodeStatusServiceClient interface {
	// GetNodeStatus will be used to regularly fetch the node’s current status.
	GetNodeStatus(ctx context.Context, in *GetNodeStatusRequest, opts ...grpc.CallOption) (*GetNodeStatusResponse, error)
}

NodeStatusServiceClient is the client API for NodeStatusService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type NodeStatusServiceServer

type NodeStatusServiceServer interface {
	// GetNodeStatus will be used to regularly fetch the node’s current status.
	GetNodeStatus(context.Context, *GetNodeStatusRequest) (*GetNodeStatusResponse, error)
	// contains filtered or unexported methods
}

NodeStatusServiceServer is the server API for NodeStatusService service. All implementations must embed UnimplementedNodeStatusServiceServer for forward compatibility

type SetNodeStatusRequest

type SetNodeStatusRequest struct {
	// node_status is the current status of the node.
	NodeStatus           *NodeStatus `protobuf:"bytes,2,opt,name=node_status,json=nodeStatus,proto3" json:"node_status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*SetNodeStatusRequest) Descriptor

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

func (*SetNodeStatusRequest) GetNodeStatus

func (m *SetNodeStatusRequest) GetNodeStatus() *NodeStatus

func (*SetNodeStatusRequest) ProtoMessage

func (*SetNodeStatusRequest) ProtoMessage()

func (*SetNodeStatusRequest) Reset

func (m *SetNodeStatusRequest) Reset()

func (*SetNodeStatusRequest) String

func (m *SetNodeStatusRequest) String() string

func (*SetNodeStatusRequest) XXX_DiscardUnknown

func (m *SetNodeStatusRequest) XXX_DiscardUnknown()

func (*SetNodeStatusRequest) XXX_Marshal

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

func (*SetNodeStatusRequest) XXX_Merge

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

func (*SetNodeStatusRequest) XXX_Size

func (m *SetNodeStatusRequest) XXX_Size() int

func (*SetNodeStatusRequest) XXX_Unmarshal

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

type UnimplementedNodeStatusServiceServer

type UnimplementedNodeStatusServiceServer struct {
}

UnimplementedNodeStatusServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNodeStatusServiceServer) GetNodeStatus

type UnsafeNodeStatusServiceServer

type UnsafeNodeStatusServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeNodeStatusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeStatusServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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