Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLivePatchingServiceServer(s grpc.ServiceRegistrar, srv LivePatchingServiceServer)
- type GetComponentConfigRequest
- func (*GetComponentConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetComponentConfigRequest) GetComponentName() string
- func (*GetComponentConfigRequest) ProtoMessage()
- func (x *GetComponentConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetComponentConfigRequest) Reset()
- func (x *GetComponentConfigRequest) String() string
- type GetComponentConfigResponse
- func (*GetComponentConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetComponentConfigResponse) GetComponentName() string
- func (x *GetComponentConfigResponse) GetConfig() string
- func (*GetComponentConfigResponse) ProtoMessage()
- func (x *GetComponentConfigResponse) ProtoReflect() protoreflect.Message
- func (x *GetComponentConfigResponse) Reset()
- func (x *GetComponentConfigResponse) String() string
- type LivePatchingServiceClient
- type LivePatchingServiceServer
- type UnimplementedLivePatchingServiceServer
- type UnsafeLivePatchingServiceServer
Constants ¶
const (
LivePatchingService_GetComponentConfig_FullMethodName = "/akslivepatching.v1.LivePatchingService/GetComponentConfig"
)
Variables ¶
var File_akslivepatching_v1_live_patching_proto protoreflect.FileDescriptor
var LivePatchingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "akslivepatching.v1.LivePatchingService", HandlerType: (*LivePatchingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetComponentConfig", Handler: _LivePatchingService_GetComponentConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "akslivepatching/v1/live_patching.proto", }
LivePatchingService_ServiceDesc is the grpc.ServiceDesc for LivePatchingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLivePatchingServiceServer ¶
func RegisterLivePatchingServiceServer(s grpc.ServiceRegistrar, srv LivePatchingServiceServer)
Types ¶
type GetComponentConfigRequest ¶
type GetComponentConfigRequest struct {
// Name of the component whose config is requested. Required.
ComponentName string `protobuf:"bytes,1,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
// contains filtered or unexported fields
}
func (*GetComponentConfigRequest) Descriptor
deprecated
func (*GetComponentConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetComponentConfigRequest.ProtoReflect.Descriptor instead.
func (*GetComponentConfigRequest) GetComponentName ¶
func (x *GetComponentConfigRequest) GetComponentName() string
func (*GetComponentConfigRequest) ProtoMessage ¶
func (*GetComponentConfigRequest) ProtoMessage()
func (*GetComponentConfigRequest) ProtoReflect ¶
func (x *GetComponentConfigRequest) ProtoReflect() protoreflect.Message
func (*GetComponentConfigRequest) Reset ¶
func (x *GetComponentConfigRequest) Reset()
func (*GetComponentConfigRequest) String ¶
func (x *GetComponentConfigRequest) String() string
type GetComponentConfigResponse ¶
type GetComponentConfigResponse struct {
// Resolved component name.
ComponentName string `protobuf:"bytes,1,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
// Component configuration as a JSON-encoded UTF-8 string.
Config string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*GetComponentConfigResponse) Descriptor
deprecated
func (*GetComponentConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetComponentConfigResponse.ProtoReflect.Descriptor instead.
func (*GetComponentConfigResponse) GetComponentName ¶
func (x *GetComponentConfigResponse) GetComponentName() string
func (*GetComponentConfigResponse) GetConfig ¶
func (x *GetComponentConfigResponse) GetConfig() string
func (*GetComponentConfigResponse) ProtoMessage ¶
func (*GetComponentConfigResponse) ProtoMessage()
func (*GetComponentConfigResponse) ProtoReflect ¶
func (x *GetComponentConfigResponse) ProtoReflect() protoreflect.Message
func (*GetComponentConfigResponse) Reset ¶
func (x *GetComponentConfigResponse) Reset()
func (*GetComponentConfigResponse) String ¶
func (x *GetComponentConfigResponse) String() string
type LivePatchingServiceClient ¶
type LivePatchingServiceClient interface {
// GetComponentConfig returns the current config for a single component.
GetComponentConfig(ctx context.Context, in *GetComponentConfigRequest, opts ...grpc.CallOption) (*GetComponentConfigResponse, error)
}
LivePatchingServiceClient is the client API for LivePatchingService 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.
LivePatchingService serves live-patch component configuration to nodes.
func NewLivePatchingServiceClient ¶
func NewLivePatchingServiceClient(cc grpc.ClientConnInterface) LivePatchingServiceClient
type LivePatchingServiceServer ¶
type LivePatchingServiceServer interface {
// GetComponentConfig returns the current config for a single component.
GetComponentConfig(context.Context, *GetComponentConfigRequest) (*GetComponentConfigResponse, error)
// contains filtered or unexported methods
}
LivePatchingServiceServer is the server API for LivePatchingService service. All implementations must embed UnimplementedLivePatchingServiceServer for forward compatibility.
LivePatchingService serves live-patch component configuration to nodes.
type UnimplementedLivePatchingServiceServer ¶
type UnimplementedLivePatchingServiceServer struct{}
UnimplementedLivePatchingServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedLivePatchingServiceServer) GetComponentConfig ¶
func (UnimplementedLivePatchingServiceServer) GetComponentConfig(context.Context, *GetComponentConfigRequest) (*GetComponentConfigResponse, error)
type UnsafeLivePatchingServiceServer ¶
type UnsafeLivePatchingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLivePatchingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LivePatchingServiceServer will result in compilation errors.