systeminformationv1

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Type                = "SystemInformationService"
	GRPCServiceFullName = "plugin.systeminformation.v1.SystemInformationService"
)
View Source
const (
	SystemInformationService_Get_FullMethodName = "/plugin.systeminformation.v1.SystemInformationService/Get"
)

Variables

View Source
var (
	RequestType_name = map[int32]string{
		0: "REQUEST_TYPE_UNSPECIFIED",
		1: "REQUEST_TYPE_SYSTEM",
		2: "REQUEST_TYPE_SUBACCOUNT",
	}
	RequestType_value = map[string]int32{
		"REQUEST_TYPE_UNSPECIFIED": 0,
		"REQUEST_TYPE_SYSTEM":      1,
		"REQUEST_TYPE_SUBACCOUNT":  2,
	}
)

Enum value maps for RequestType.

View Source
var File_plugin_systeminformation_v1_systeminformation_proto protoreflect.FileDescriptor
View Source
var SystemInformationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugin.systeminformation.v1.SystemInformationService",
	HandlerType: (*SystemInformationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _SystemInformationService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin/systeminformation/v1/systeminformation.proto",
}

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

Functions

func RegisterSystemInformationServiceServer

func RegisterSystemInformationServiceServer(s grpc.ServiceRegistrar, srv SystemInformationServiceServer)

func SystemInformationServicePluginServer

func SystemInformationServicePluginServer(server SystemInformationServiceServer) api.PluginServer

Types

type GetRequest

type GetRequest struct {
	Id   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type RequestType `protobuf:"varint,2,opt,name=type,proto3,enum=plugin.systeminformation.v1.RequestType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() string

func (*GetRequest) GetType

func (x *GetRequest) GetType() RequestType

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

func (x *GetRequest) ProtoReflect() protoreflect.Message

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

func (*GetRequest) Validate

func (m *GetRequest) Validate() error

Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRequest) ValidateAll

func (m *GetRequest) ValidateAll() error

ValidateAll checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRequestMultiError, or nil if none found.

type GetRequestMultiError

type GetRequestMultiError []error

GetRequestMultiError is an error wrapping multiple validation errors returned by GetRequest.ValidateAll() if the designated constraints aren't met.

func (GetRequestMultiError) AllErrors

func (m GetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRequestMultiError) Error

func (m GetRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRequestValidationError

type GetRequestValidationError struct {
	// contains filtered or unexported fields
}

GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.

func (GetRequestValidationError) Cause

func (e GetRequestValidationError) Cause() error

Cause function returns cause value.

func (GetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

Key function returns key value.

func (GetRequestValidationError) Reason

func (e GetRequestValidationError) Reason() string

Reason function returns reason value.

type GetResponse

type GetResponse struct {
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetMetadata

func (x *GetResponse) GetMetadata() map[string]string

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

func (x *GetResponse) ProtoReflect() protoreflect.Message

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

func (*GetResponse) Validate

func (m *GetResponse) Validate() error

Validate checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetResponse) ValidateAll

func (m *GetResponse) ValidateAll() error

ValidateAll checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetResponseMultiError, or nil if none found.

type GetResponseMultiError

type GetResponseMultiError []error

GetResponseMultiError is an error wrapping multiple validation errors returned by GetResponse.ValidateAll() if the designated constraints aren't met.

func (GetResponseMultiError) AllErrors

func (m GetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetResponseMultiError) Error

func (m GetResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetResponseValidationError

type GetResponseValidationError struct {
	// contains filtered or unexported fields
}

GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.

func (GetResponseValidationError) Cause

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

Reason function returns reason value.

type RequestType

type RequestType int32
const (
	RequestType_REQUEST_TYPE_UNSPECIFIED RequestType = 0
	RequestType_REQUEST_TYPE_SYSTEM      RequestType = 1
	RequestType_REQUEST_TYPE_SUBACCOUNT  RequestType = 2
)

func (RequestType) Descriptor

func (RequestType) Enum

func (x RequestType) Enum() *RequestType

func (RequestType) EnumDescriptor deprecated

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

Deprecated: Use RequestType.Descriptor instead.

func (RequestType) Number

func (x RequestType) Number() protoreflect.EnumNumber

func (RequestType) String

func (x RequestType) String() string

func (RequestType) Type

type SystemInformationServiceClient

type SystemInformationServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}

SystemInformationServiceClient is the client API for SystemInformationService 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 SystemInformationServicePluginClient

type SystemInformationServicePluginClient struct {
	SystemInformationServiceClient
}

func (*SystemInformationServicePluginClient) GRPCServiceName

func (c *SystemInformationServicePluginClient) GRPCServiceName() string

func (*SystemInformationServicePluginClient) InitClient

func (*SystemInformationServicePluginClient) IsInitialized

func (c *SystemInformationServicePluginClient) IsInitialized() bool

func (SystemInformationServicePluginClient) Type

type SystemInformationServiceServer

type SystemInformationServiceServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// contains filtered or unexported methods
}

SystemInformationServiceServer is the server API for SystemInformationService service. All implementations must embed UnimplementedSystemInformationServiceServer for forward compatibility

type UnimplementedSystemInformationServiceServer

type UnimplementedSystemInformationServiceServer struct {
}

UnimplementedSystemInformationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSystemInformationServiceServer) Get

type UnsafeSystemInformationServiceServer

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

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

Jump to

Keyboard shortcuts

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