Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer)
- type DeleteRequest
- type DeleteResponse
- type GetAllRequest
- type GetAllResponse
- type GetValueRequest
- type GetValueResponse
- func (*GetValueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValueResponse) GetJsonData() string
- func (x *GetValueResponse) GetKey() string
- func (*GetValueResponse) ProtoMessage()
- func (x *GetValueResponse) ProtoReflect() protoreflect.Message
- func (x *GetValueResponse) Reset()
- func (x *GetValueResponse) String() string
- type MergeRequest
- type MergeResponse
- type SetValueRequest
- func (*SetValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetValueRequest) GetJsonData() string
- func (x *SetValueRequest) GetKey() string
- func (*SetValueRequest) ProtoMessage()
- func (x *SetValueRequest) ProtoReflect() protoreflect.Message
- func (x *SetValueRequest) Reset()
- func (x *SetValueRequest) String() string
- type SetValueResponse
- type SettingsServiceClient
- type SettingsServiceServer
- type UnimplementedSettingsServiceServer
- func (UnimplementedSettingsServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedSettingsServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
- func (UnimplementedSettingsServiceServer) GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error)
- func (UnimplementedSettingsServiceServer) Merge(context.Context, *MergeRequest) (*MergeResponse, error)
- func (UnimplementedSettingsServiceServer) SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error)
- func (UnimplementedSettingsServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
- type UnsafeSettingsServiceServer
- type WriteRequest
- type WriteResponse
Constants ¶
const ( SettingsService_GetAll_FullMethodName = "/cc.arduino.cli.settings.v1.SettingsService/GetAll" SettingsService_Merge_FullMethodName = "/cc.arduino.cli.settings.v1.SettingsService/Merge" SettingsService_GetValue_FullMethodName = "/cc.arduino.cli.settings.v1.SettingsService/GetValue" SettingsService_SetValue_FullMethodName = "/cc.arduino.cli.settings.v1.SettingsService/SetValue" SettingsService_Write_FullMethodName = "/cc.arduino.cli.settings.v1.SettingsService/Write" SettingsService_Delete_FullMethodName = "/cc.arduino.cli.settings.v1.SettingsService/Delete" )
Variables ¶
var File_cc_arduino_cli_settings_v1_settings_proto protoreflect.FileDescriptor
var SettingsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cc.arduino.cli.settings.v1.SettingsService", HandlerType: (*SettingsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _SettingsService_GetAll_Handler, }, { MethodName: "Merge", Handler: _SettingsService_Merge_Handler, }, { MethodName: "GetValue", Handler: _SettingsService_GetValue_Handler, }, { MethodName: "SetValue", Handler: _SettingsService_SetValue_Handler, }, { MethodName: "Write", Handler: _SettingsService_Write_Handler, }, { MethodName: "Delete", Handler: _SettingsService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cc/arduino/cli/settings/v1/settings.proto", }
SettingsService_ServiceDesc is the grpc.ServiceDesc for SettingsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSettingsServiceServer ¶
func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { // The key of the setting to delete. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetKey ¶
func (x *DeleteRequest) GetKey() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type GetAllRequest ¶
type GetAllRequest struct {
// contains filtered or unexported fields
}
func (*GetAllRequest) Descriptor
deprecated
func (*GetAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) ProtoReflect ¶
func (x *GetAllRequest) ProtoReflect() protoreflect.Message
func (*GetAllRequest) Reset ¶
func (x *GetAllRequest) Reset()
func (*GetAllRequest) String ¶
func (x *GetAllRequest) String() string
type GetAllResponse ¶
type GetAllResponse struct { // The settings, in JSON format. JsonData string `protobuf:"bytes,1,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // contains filtered or unexported fields }
func (*GetAllResponse) Descriptor
deprecated
func (*GetAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.
func (*GetAllResponse) GetJsonData ¶
func (x *GetAllResponse) GetJsonData() string
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) ProtoReflect ¶
func (x *GetAllResponse) ProtoReflect() protoreflect.Message
func (*GetAllResponse) Reset ¶
func (x *GetAllResponse) Reset()
func (*GetAllResponse) String ¶
func (x *GetAllResponse) String() string
type GetValueRequest ¶
type GetValueRequest struct { // The key of the setting. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetValueRequest) Descriptor
deprecated
func (*GetValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValueRequest.ProtoReflect.Descriptor instead.
func (*GetValueRequest) GetKey ¶
func (x *GetValueRequest) GetKey() string
func (*GetValueRequest) ProtoMessage ¶
func (*GetValueRequest) ProtoMessage()
func (*GetValueRequest) ProtoReflect ¶
func (x *GetValueRequest) ProtoReflect() protoreflect.Message
func (*GetValueRequest) Reset ¶
func (x *GetValueRequest) Reset()
func (*GetValueRequest) String ¶
func (x *GetValueRequest) String() string
type GetValueResponse ¶
type GetValueResponse struct { // The key of the setting. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The setting, in JSON format. JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // contains filtered or unexported fields }
func (*GetValueResponse) Descriptor
deprecated
func (*GetValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValueResponse.ProtoReflect.Descriptor instead.
func (*GetValueResponse) GetJsonData ¶
func (x *GetValueResponse) GetJsonData() string
func (*GetValueResponse) GetKey ¶
func (x *GetValueResponse) GetKey() string
func (*GetValueResponse) ProtoMessage ¶
func (*GetValueResponse) ProtoMessage()
func (*GetValueResponse) ProtoReflect ¶
func (x *GetValueResponse) ProtoReflect() protoreflect.Message
func (*GetValueResponse) Reset ¶
func (x *GetValueResponse) Reset()
func (*GetValueResponse) String ¶
func (x *GetValueResponse) String() string
type MergeRequest ¶
type MergeRequest struct { // The settings, in JSON format. JsonData string `protobuf:"bytes,1,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // contains filtered or unexported fields }
func (*MergeRequest) Descriptor
deprecated
func (*MergeRequest) Descriptor() ([]byte, []int)
Deprecated: Use MergeRequest.ProtoReflect.Descriptor instead.
func (*MergeRequest) GetJsonData ¶
func (x *MergeRequest) GetJsonData() string
func (*MergeRequest) ProtoMessage ¶
func (*MergeRequest) ProtoMessage()
func (*MergeRequest) ProtoReflect ¶
func (x *MergeRequest) ProtoReflect() protoreflect.Message
func (*MergeRequest) Reset ¶
func (x *MergeRequest) Reset()
func (*MergeRequest) String ¶
func (x *MergeRequest) String() string
type MergeResponse ¶
type MergeResponse struct {
// contains filtered or unexported fields
}
func (*MergeResponse) Descriptor
deprecated
func (*MergeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MergeResponse.ProtoReflect.Descriptor instead.
func (*MergeResponse) ProtoMessage ¶
func (*MergeResponse) ProtoMessage()
func (*MergeResponse) ProtoReflect ¶
func (x *MergeResponse) ProtoReflect() protoreflect.Message
func (*MergeResponse) Reset ¶
func (x *MergeResponse) Reset()
func (*MergeResponse) String ¶
func (x *MergeResponse) String() string
type SetValueRequest ¶
type SetValueRequest struct { // The key of the setting. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The setting, in JSON format. JsonData string `protobuf:"bytes,2,opt,name=json_data,json=jsonData,proto3" json:"json_data,omitempty"` // contains filtered or unexported fields }
func (*SetValueRequest) Descriptor
deprecated
func (*SetValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetValueRequest.ProtoReflect.Descriptor instead.
func (*SetValueRequest) GetJsonData ¶
func (x *SetValueRequest) GetJsonData() string
func (*SetValueRequest) GetKey ¶
func (x *SetValueRequest) GetKey() string
func (*SetValueRequest) ProtoMessage ¶
func (*SetValueRequest) ProtoMessage()
func (*SetValueRequest) ProtoReflect ¶
func (x *SetValueRequest) ProtoReflect() protoreflect.Message
func (*SetValueRequest) Reset ¶
func (x *SetValueRequest) Reset()
func (*SetValueRequest) String ¶
func (x *SetValueRequest) String() string
type SetValueResponse ¶
type SetValueResponse struct {
// contains filtered or unexported fields
}
func (*SetValueResponse) Descriptor
deprecated
func (*SetValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetValueResponse.ProtoReflect.Descriptor instead.
func (*SetValueResponse) ProtoMessage ¶
func (*SetValueResponse) ProtoMessage()
func (*SetValueResponse) ProtoReflect ¶
func (x *SetValueResponse) ProtoReflect() protoreflect.Message
func (*SetValueResponse) Reset ¶
func (x *SetValueResponse) Reset()
func (*SetValueResponse) String ¶
func (x *SetValueResponse) String() string
type SettingsServiceClient ¶
type SettingsServiceClient interface { // List all the settings. GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) // Set multiple settings values at once. Merge(ctx context.Context, in *MergeRequest, opts ...grpc.CallOption) (*MergeResponse, error) // Get the value of a specific setting. GetValue(ctx context.Context, in *GetValueRequest, opts ...grpc.CallOption) (*GetValueResponse, error) // Set the value of a specific setting. SetValue(ctx context.Context, in *SetValueRequest, opts ...grpc.CallOption) (*SetValueResponse, error) // Writes to file settings currently stored in memory Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) // Deletes an entry and rewrites the file settings Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
SettingsServiceClient is the client API for SettingsService 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 NewSettingsServiceClient ¶
func NewSettingsServiceClient(cc grpc.ClientConnInterface) SettingsServiceClient
type SettingsServiceServer ¶
type SettingsServiceServer interface { // List all the settings. GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) // Set multiple settings values at once. Merge(context.Context, *MergeRequest) (*MergeResponse, error) // Get the value of a specific setting. GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error) // Set the value of a specific setting. SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error) // Writes to file settings currently stored in memory Write(context.Context, *WriteRequest) (*WriteResponse, error) // Deletes an entry and rewrites the file settings Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // contains filtered or unexported methods }
SettingsServiceServer is the server API for SettingsService service. All implementations must embed UnimplementedSettingsServiceServer for forward compatibility
type UnimplementedSettingsServiceServer ¶
type UnimplementedSettingsServiceServer struct { }
UnimplementedSettingsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSettingsServiceServer) Delete ¶
func (UnimplementedSettingsServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedSettingsServiceServer) GetAll ¶
func (UnimplementedSettingsServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
func (UnimplementedSettingsServiceServer) GetValue ¶
func (UnimplementedSettingsServiceServer) GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error)
func (UnimplementedSettingsServiceServer) Merge ¶
func (UnimplementedSettingsServiceServer) Merge(context.Context, *MergeRequest) (*MergeResponse, error)
func (UnimplementedSettingsServiceServer) SetValue ¶
func (UnimplementedSettingsServiceServer) SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error)
func (UnimplementedSettingsServiceServer) Write ¶
func (UnimplementedSettingsServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
type UnsafeSettingsServiceServer ¶
type UnsafeSettingsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSettingsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SettingsServiceServer will result in compilation errors.
type WriteRequest ¶
type WriteRequest struct { // Path to settings file (e.g. /path/to/arduino-cli.yaml) FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetFilePath ¶
func (x *WriteRequest) GetFilePath() string
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string
type WriteResponse ¶
type WriteResponse struct {
// contains filtered or unexported fields
}
func (*WriteResponse) Descriptor
deprecated
func (*WriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.
func (*WriteResponse) ProtoMessage ¶
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) ProtoReflect ¶
func (x *WriteResponse) ProtoReflect() protoreflect.Message
func (*WriteResponse) Reset ¶
func (x *WriteResponse) Reset()
func (*WriteResponse) String ¶
func (x *WriteResponse) String() string