initv1

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bootstrap_Init_FullMethodName   = "/service.init.v1.Bootstrap/Init"
	Bootstrap_Deinit_FullMethodName = "/service.init.v1.Bootstrap/Deinit"
)
View Source
const (
	GRPCServiceFullName = "service.init.v1.Bootstrap"
)

Variables

View Source
var Bootstrap_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.init.v1.Bootstrap",
	HandlerType: (*BootstrapServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _Bootstrap_Init_Handler,
		},
		{
			MethodName: "Deinit",
			Handler:    _Bootstrap_Deinit_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service/init/v1/init.proto",
}

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

View Source
var File_service_init_v1_init_proto protoreflect.FileDescriptor

Functions

func BootstrapServiceServer

func BootstrapServiceServer(server BootstrapServer) api.ServiceServer

func RegisterBootstrapServer

func RegisterBootstrapServer(s grpc.ServiceRegistrar, srv BootstrapServer)

Types

type BootstrapClient

type BootstrapClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
	Deinit(ctx context.Context, in *DeinitRequest, opts ...grpc.CallOption) (*DeinitResponse, error)
}

BootstrapClient is the client API for Bootstrap 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.

func NewBootstrapClient

func NewBootstrapClient(cc grpc.ClientConnInterface) BootstrapClient

type BootstrapServer

type BootstrapServer interface {
	Init(context.Context, *InitRequest) (*InitResponse, error)
	Deinit(context.Context, *DeinitRequest) (*DeinitResponse, error)
	// contains filtered or unexported methods
}

BootstrapServer is the server API for Bootstrap service. All implementations must embed UnimplementedBootstrapServer for forward compatibility

type BootstrapServiceClient

type BootstrapServiceClient struct {
	BootstrapClient
}

func (*BootstrapServiceClient) GRPCServiceName

func (c *BootstrapServiceClient) GRPCServiceName() string

func (*BootstrapServiceClient) InitClient

func (c *BootstrapServiceClient) InitClient(conn grpc.ClientConnInterface) any

func (*BootstrapServiceClient) IsInitialized

func (c *BootstrapServiceClient) IsInitialized() bool

type DeinitRequest

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

Deinit request parameters

func (*DeinitRequest) Descriptor deprecated

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

Deprecated: Use DeinitRequest.ProtoReflect.Descriptor instead.

func (*DeinitRequest) ProtoMessage

func (*DeinitRequest) ProtoMessage()

func (*DeinitRequest) ProtoReflect

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

func (*DeinitRequest) Reset

func (x *DeinitRequest) Reset()

func (*DeinitRequest) String

func (x *DeinitRequest) String() string

func (*DeinitRequest) Validate

func (m *DeinitRequest) Validate() error

Validate checks the field values on DeinitRequest 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 (*DeinitRequest) ValidateAll

func (m *DeinitRequest) ValidateAll() error

ValidateAll checks the field values on DeinitRequest 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 DeinitRequestMultiError, or nil if none found.

type DeinitRequestMultiError

type DeinitRequestMultiError []error

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

func (DeinitRequestMultiError) AllErrors

func (m DeinitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeinitRequestMultiError) Error

func (m DeinitRequestMultiError) Error() string

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

type DeinitRequestValidationError

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

DeinitRequestValidationError is the validation error returned by DeinitRequest.Validate if the designated constraints aren't met.

func (DeinitRequestValidationError) Cause

Cause function returns cause value.

func (DeinitRequestValidationError) Error

Error satisfies the builtin error interface

func (DeinitRequestValidationError) ErrorName

func (e DeinitRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeinitRequestValidationError) Field

Field function returns field value.

func (DeinitRequestValidationError) Key

Key function returns key value.

func (DeinitRequestValidationError) Reason

Reason function returns reason value.

type DeinitResponse

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

Deinit response parameters

func (*DeinitResponse) Descriptor deprecated

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

Deprecated: Use DeinitResponse.ProtoReflect.Descriptor instead.

func (*DeinitResponse) ProtoMessage

func (*DeinitResponse) ProtoMessage()

func (*DeinitResponse) ProtoReflect

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

func (*DeinitResponse) Reset

func (x *DeinitResponse) Reset()

func (*DeinitResponse) String

func (x *DeinitResponse) String() string

func (*DeinitResponse) Validate

func (m *DeinitResponse) Validate() error

Validate checks the field values on DeinitResponse 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 (*DeinitResponse) ValidateAll

func (m *DeinitResponse) ValidateAll() error

ValidateAll checks the field values on DeinitResponse 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 DeinitResponseMultiError, or nil if none found.

type DeinitResponseMultiError

type DeinitResponseMultiError []error

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

func (DeinitResponseMultiError) AllErrors

func (m DeinitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeinitResponseMultiError) Error

func (m DeinitResponseMultiError) Error() string

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

type DeinitResponseValidationError

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

DeinitResponseValidationError is the validation error returned by DeinitResponse.Validate if the designated constraints aren't met.

func (DeinitResponseValidationError) Cause

Cause function returns cause value.

func (DeinitResponseValidationError) Error

Error satisfies the builtin error interface

func (DeinitResponseValidationError) ErrorName

func (e DeinitResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeinitResponseValidationError) Field

Field function returns field value.

func (DeinitResponseValidationError) Key

Key function returns key value.

func (DeinitResponseValidationError) Reason

Reason function returns reason value.

type InitRequest

type InitRequest struct {

	// List of all the names of gRPC services implemented by the host.
	// These names are the fully qualified gRPC service name.
	HostServiceNames []string `protobuf:"bytes,1,rep,name=host_service_names,json=hostServiceNames,proto3" json:"host_service_names,omitempty"`
	// contains filtered or unexported fields
}

Init request parameters

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetHostServiceNames

func (x *InitRequest) GetHostServiceNames() []string

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

func (*InitRequest) Validate

func (m *InitRequest) Validate() error

Validate checks the field values on InitRequest 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 (*InitRequest) ValidateAll

func (m *InitRequest) ValidateAll() error

ValidateAll checks the field values on InitRequest 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 InitRequestMultiError, or nil if none found.

type InitRequestMultiError

type InitRequestMultiError []error

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

func (InitRequestMultiError) AllErrors

func (m InitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InitRequestMultiError) Error

func (m InitRequestMultiError) Error() string

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

type InitRequestValidationError

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

InitRequestValidationError is the validation error returned by InitRequest.Validate if the designated constraints aren't met.

func (InitRequestValidationError) Cause

Cause function returns cause value.

func (InitRequestValidationError) Error

Error satisfies the builtin error interface

func (InitRequestValidationError) ErrorName

func (e InitRequestValidationError) ErrorName() string

ErrorName returns error name.

func (InitRequestValidationError) Field

Field function returns field value.

func (InitRequestValidationError) Key

Key function returns key value.

func (InitRequestValidationError) Reason

Reason function returns reason value.

type InitResponse

type InitResponse struct {

	// List of all the names of gRPC services implemented by the service. These
	// names are the fully qualified gRPC service name.
	PluginServiceNames []string `protobuf:"bytes,1,rep,name=plugin_service_names,json=pluginServiceNames,proto3" json:"plugin_service_names,omitempty"`
	// contains filtered or unexported fields
}

Init response parameters

func (*InitResponse) Descriptor deprecated

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

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) GetPluginServiceNames

func (x *InitResponse) GetPluginServiceNames() []string

func (*InitResponse) ProtoMessage

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect

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

func (*InitResponse) Reset

func (x *InitResponse) Reset()

func (*InitResponse) String

func (x *InitResponse) String() string

func (*InitResponse) Validate

func (m *InitResponse) Validate() error

Validate checks the field values on InitResponse 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 (*InitResponse) ValidateAll

func (m *InitResponse) ValidateAll() error

ValidateAll checks the field values on InitResponse 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 InitResponseMultiError, or nil if none found.

type InitResponseMultiError

type InitResponseMultiError []error

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

func (InitResponseMultiError) AllErrors

func (m InitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InitResponseMultiError) Error

func (m InitResponseMultiError) Error() string

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

type InitResponseValidationError

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

InitResponseValidationError is the validation error returned by InitResponse.Validate if the designated constraints aren't met.

func (InitResponseValidationError) Cause

Cause function returns cause value.

func (InitResponseValidationError) Error

Error satisfies the builtin error interface

func (InitResponseValidationError) ErrorName

func (e InitResponseValidationError) ErrorName() string

ErrorName returns error name.

func (InitResponseValidationError) Field

Field function returns field value.

func (InitResponseValidationError) Key

Key function returns key value.

func (InitResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedBootstrapServer

type UnimplementedBootstrapServer struct {
}

UnimplementedBootstrapServer must be embedded to have forward compatible implementations.

func (UnimplementedBootstrapServer) Deinit

func (UnimplementedBootstrapServer) Init

type UnsafeBootstrapServer

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

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

Jump to

Keyboard shortcuts

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