Documentation
¶
Index ¶
- Constants
- Variables
- func BootstrapServiceServer(server BootstrapServer) api.ServiceServer
- func RegisterBootstrapServer(s grpc.ServiceRegistrar, srv BootstrapServer)
- type BootstrapClient
- type BootstrapServer
- type BootstrapServiceClient
- type DeinitRequest
- func (*DeinitRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeinitRequest) ProtoMessage()
- func (x *DeinitRequest) ProtoReflect() protoreflect.Message
- func (x *DeinitRequest) Reset()
- func (x *DeinitRequest) String() string
- func (m *DeinitRequest) Validate() error
- func (m *DeinitRequest) ValidateAll() error
- type DeinitRequestMultiError
- type DeinitRequestValidationError
- func (e DeinitRequestValidationError) Cause() error
- func (e DeinitRequestValidationError) Error() string
- func (e DeinitRequestValidationError) ErrorName() string
- func (e DeinitRequestValidationError) Field() string
- func (e DeinitRequestValidationError) Key() bool
- func (e DeinitRequestValidationError) Reason() string
- type DeinitResponse
- func (*DeinitResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeinitResponse) ProtoMessage()
- func (x *DeinitResponse) ProtoReflect() protoreflect.Message
- func (x *DeinitResponse) Reset()
- func (x *DeinitResponse) String() string
- func (m *DeinitResponse) Validate() error
- func (m *DeinitResponse) ValidateAll() error
- type DeinitResponseMultiError
- type DeinitResponseValidationError
- func (e DeinitResponseValidationError) Cause() error
- func (e DeinitResponseValidationError) Error() string
- func (e DeinitResponseValidationError) ErrorName() string
- func (e DeinitResponseValidationError) Field() string
- func (e DeinitResponseValidationError) Key() bool
- func (e DeinitResponseValidationError) Reason() string
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitRequest) GetHostServiceNames() []string
- func (*InitRequest) ProtoMessage()
- func (x *InitRequest) ProtoReflect() protoreflect.Message
- func (x *InitRequest) Reset()
- func (x *InitRequest) String() string
- func (m *InitRequest) Validate() error
- func (m *InitRequest) ValidateAll() error
- type InitRequestMultiError
- type InitRequestValidationError
- func (e InitRequestValidationError) Cause() error
- func (e InitRequestValidationError) Error() string
- func (e InitRequestValidationError) ErrorName() string
- func (e InitRequestValidationError) Field() string
- func (e InitRequestValidationError) Key() bool
- func (e InitRequestValidationError) Reason() string
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitResponse) GetPluginServiceNames() []string
- func (*InitResponse) ProtoMessage()
- func (x *InitResponse) ProtoReflect() protoreflect.Message
- func (x *InitResponse) Reset()
- func (x *InitResponse) String() string
- func (m *InitResponse) Validate() error
- func (m *InitResponse) ValidateAll() error
- type InitResponseMultiError
- type InitResponseValidationError
- func (e InitResponseValidationError) Cause() error
- func (e InitResponseValidationError) Error() string
- func (e InitResponseValidationError) ErrorName() string
- func (e InitResponseValidationError) Field() string
- func (e InitResponseValidationError) Key() bool
- func (e InitResponseValidationError) Reason() string
- type UnimplementedBootstrapServer
- type UnsafeBootstrapServer
Constants ¶
const ( Bootstrap_Init_FullMethodName = "/service.init.v1.Bootstrap/Init" Bootstrap_Deinit_FullMethodName = "/service.init.v1.Bootstrap/Deinit" )
const (
GRPCServiceFullName = "service.init.v1.Bootstrap"
)
Variables ¶
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)
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 ¶
func (e DeinitRequestValidationError) Cause() error
Cause function returns cause value.
func (DeinitRequestValidationError) Error ¶
func (e DeinitRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeinitRequestValidationError) ErrorName ¶
func (e DeinitRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeinitRequestValidationError) Field ¶
func (e DeinitRequestValidationError) Field() string
Field function returns field value.
func (DeinitRequestValidationError) Key ¶
func (e DeinitRequestValidationError) Key() bool
Key function returns key value.
func (DeinitRequestValidationError) Reason ¶
func (e DeinitRequestValidationError) Reason() string
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 ¶
func (e DeinitResponseValidationError) Cause() error
Cause function returns cause value.
func (DeinitResponseValidationError) Error ¶
func (e DeinitResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeinitResponseValidationError) ErrorName ¶
func (e DeinitResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeinitResponseValidationError) Field ¶
func (e DeinitResponseValidationError) Field() string
Field function returns field value.
func (DeinitResponseValidationError) Key ¶
func (e DeinitResponseValidationError) Key() bool
Key function returns key value.
func (DeinitResponseValidationError) Reason ¶
func (e DeinitResponseValidationError) Reason() string
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 ¶
func (e InitRequestValidationError) Cause() error
Cause function returns cause value.
func (InitRequestValidationError) Error ¶
func (e InitRequestValidationError) Error() string
Error satisfies the builtin error interface
func (InitRequestValidationError) ErrorName ¶
func (e InitRequestValidationError) ErrorName() string
ErrorName returns error name.
func (InitRequestValidationError) Field ¶
func (e InitRequestValidationError) Field() string
Field function returns field value.
func (InitRequestValidationError) Key ¶
func (e InitRequestValidationError) Key() bool
Key function returns key value.
func (InitRequestValidationError) Reason ¶
func (e InitRequestValidationError) Reason() string
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 ¶
func (e InitResponseValidationError) Cause() error
Cause function returns cause value.
func (InitResponseValidationError) Error ¶
func (e InitResponseValidationError) Error() string
Error satisfies the builtin error interface
func (InitResponseValidationError) ErrorName ¶
func (e InitResponseValidationError) ErrorName() string
ErrorName returns error name.
func (InitResponseValidationError) Field ¶
func (e InitResponseValidationError) Field() string
Field function returns field value.
func (InitResponseValidationError) Key ¶
func (e InitResponseValidationError) Key() bool
Key function returns key value.
func (InitResponseValidationError) Reason ¶
func (e InitResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedBootstrapServer ¶
type UnimplementedBootstrapServer struct {
}
UnimplementedBootstrapServer must be embedded to have forward compatible implementations.
func (UnimplementedBootstrapServer) Deinit ¶
func (UnimplementedBootstrapServer) Deinit(context.Context, *DeinitRequest) (*DeinitResponse, error)
func (UnimplementedBootstrapServer) Init ¶
func (UnimplementedBootstrapServer) Init(context.Context, *InitRequest) (*InitResponse, error)
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.