Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDynamicConfigServiceServer(s grpc.ServiceRegistrar, srv DynamicConfigServiceServer)
- type DynamicConfigServiceClient
- type DynamicConfigServiceServer
- type UnimplementedDynamicConfigServiceServer
- func (UnimplementedDynamicConfigServiceServer) AddVolatileConfig(context.Context, *Ydb_DynamicConfig.AddVolatileConfigRequest) (*Ydb_DynamicConfig.AddVolatileConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) DropConfig(context.Context, *Ydb_DynamicConfig.DropConfigRequest) (*Ydb_DynamicConfig.DropConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) GetConfig(context.Context, *Ydb_DynamicConfig.GetConfigRequest) (*Ydb_DynamicConfig.GetConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) GetMetadata(context.Context, *Ydb_DynamicConfig.GetMetadataRequest) (*Ydb_DynamicConfig.GetMetadataResponse, error)
- func (UnimplementedDynamicConfigServiceServer) GetNodeLabels(context.Context, *Ydb_DynamicConfig.GetNodeLabelsRequest) (*Ydb_DynamicConfig.GetNodeLabelsResponse, error)
- func (UnimplementedDynamicConfigServiceServer) RemoveVolatileConfig(context.Context, *Ydb_DynamicConfig.RemoveVolatileConfigRequest) (*Ydb_DynamicConfig.RemoveVolatileConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) ReplaceConfig(context.Context, *Ydb_DynamicConfig.ReplaceConfigRequest) (*Ydb_DynamicConfig.ReplaceConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) ResolveAllConfig(context.Context, *Ydb_DynamicConfig.ResolveAllConfigRequest) (*Ydb_DynamicConfig.ResolveAllConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) ResolveConfig(context.Context, *Ydb_DynamicConfig.ResolveConfigRequest) (*Ydb_DynamicConfig.ResolveConfigResponse, error)
- func (UnimplementedDynamicConfigServiceServer) SetConfig(context.Context, *Ydb_DynamicConfig.SetConfigRequest) (*Ydb_DynamicConfig.SetConfigResponse, error)
- type UnsafeDynamicConfigServiceServer
Constants ¶
const ( DynamicConfigService_SetConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/SetConfig" DynamicConfigService_ReplaceConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/ReplaceConfig" DynamicConfigService_GetMetadata_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/GetMetadata" DynamicConfigService_GetConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/GetConfig" DynamicConfigService_DropConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/DropConfig" DynamicConfigService_AddVolatileConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/AddVolatileConfig" DynamicConfigService_RemoveVolatileConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/RemoveVolatileConfig" DynamicConfigService_GetNodeLabels_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/GetNodeLabels" DynamicConfigService_ResolveConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/ResolveConfig" DynamicConfigService_ResolveAllConfig_FullMethodName = "/Ydb.DynamicConfig.V1.DynamicConfigService/ResolveAllConfig" )
Variables ¶
var DynamicConfigService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Ydb.DynamicConfig.V1.DynamicConfigService", HandlerType: (*DynamicConfigServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetConfig", Handler: _DynamicConfigService_SetConfig_Handler, }, { MethodName: "ReplaceConfig", Handler: _DynamicConfigService_ReplaceConfig_Handler, }, { MethodName: "GetMetadata", Handler: _DynamicConfigService_GetMetadata_Handler, }, { MethodName: "GetConfig", Handler: _DynamicConfigService_GetConfig_Handler, }, { MethodName: "DropConfig", Handler: _DynamicConfigService_DropConfig_Handler, }, { MethodName: "AddVolatileConfig", Handler: _DynamicConfigService_AddVolatileConfig_Handler, }, { MethodName: "RemoveVolatileConfig", Handler: _DynamicConfigService_RemoveVolatileConfig_Handler, }, { MethodName: "GetNodeLabels", Handler: _DynamicConfigService_GetNodeLabels_Handler, }, { MethodName: "ResolveConfig", Handler: _DynamicConfigService_ResolveConfig_Handler, }, { MethodName: "ResolveAllConfig", Handler: _DynamicConfigService_ResolveAllConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "draft/ydb_dynamic_config_v1.proto", }
DynamicConfigService_ServiceDesc is the grpc.ServiceDesc for DynamicConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_draft_ydb_dynamic_config_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDynamicConfigServiceServer ¶
func RegisterDynamicConfigServiceServer(s grpc.ServiceRegistrar, srv DynamicConfigServiceServer)
Types ¶
type DynamicConfigServiceClient ¶
type DynamicConfigServiceClient interface { // Apply new version of config. // Overwrites previous version. // This call is idempotent: // - Two subsequent identical calls will return success, // - After applying next version another identical call will result in an error. // // The field version within the YAML in the request must strictly be set to the current version increment by one. // The field cluster within the YAML should be identical to the one configured on the node used by the console tablet. SetConfig(ctx context.Context, in *Ydb_DynamicConfig.SetConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.SetConfigResponse, error) ReplaceConfig(ctx context.Context, in *Ydb_DynamicConfig.ReplaceConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.ReplaceConfigResponse, error) // Get current configs metadata. GetMetadata(ctx context.Context, in *Ydb_DynamicConfig.GetMetadataRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.GetMetadataResponse, error) // Get current configs. GetConfig(ctx context.Context, in *Ydb_DynamicConfig.GetConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.GetConfigResponse, error) // Drop current config. // This call is idempotent. DropConfig(ctx context.Context, in *Ydb_DynamicConfig.DropConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.DropConfigResponse, error) // Add volatile config. AddVolatileConfig(ctx context.Context, in *Ydb_DynamicConfig.AddVolatileConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.AddVolatileConfigResponse, error) // Remove volatile config. RemoveVolatileConfig(ctx context.Context, in *Ydb_DynamicConfig.RemoveVolatileConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.RemoveVolatileConfigResponse, error) GetNodeLabels(ctx context.Context, in *Ydb_DynamicConfig.GetNodeLabelsRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.GetNodeLabelsResponse, error) // Resolve config for particular labels. ResolveConfig(ctx context.Context, in *Ydb_DynamicConfig.ResolveConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.ResolveConfigResponse, error) // Resolve config for all possible labels combinations. ResolveAllConfig(ctx context.Context, in *Ydb_DynamicConfig.ResolveAllConfigRequest, opts ...grpc.CallOption) (*Ydb_DynamicConfig.ResolveAllConfigResponse, error) }
DynamicConfigServiceClient is the client API for DynamicConfigService 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 NewDynamicConfigServiceClient ¶
func NewDynamicConfigServiceClient(cc grpc.ClientConnInterface) DynamicConfigServiceClient
type DynamicConfigServiceServer ¶
type DynamicConfigServiceServer interface { // Apply new version of config. // Overwrites previous version. // This call is idempotent: // - Two subsequent identical calls will return success, // - After applying next version another identical call will result in an error. // // The field version within the YAML in the request must strictly be set to the current version increment by one. // The field cluster within the YAML should be identical to the one configured on the node used by the console tablet. SetConfig(context.Context, *Ydb_DynamicConfig.SetConfigRequest) (*Ydb_DynamicConfig.SetConfigResponse, error) ReplaceConfig(context.Context, *Ydb_DynamicConfig.ReplaceConfigRequest) (*Ydb_DynamicConfig.ReplaceConfigResponse, error) // Get current configs metadata. GetMetadata(context.Context, *Ydb_DynamicConfig.GetMetadataRequest) (*Ydb_DynamicConfig.GetMetadataResponse, error) // Get current configs. GetConfig(context.Context, *Ydb_DynamicConfig.GetConfigRequest) (*Ydb_DynamicConfig.GetConfigResponse, error) // Drop current config. // This call is idempotent. DropConfig(context.Context, *Ydb_DynamicConfig.DropConfigRequest) (*Ydb_DynamicConfig.DropConfigResponse, error) // Add volatile config. AddVolatileConfig(context.Context, *Ydb_DynamicConfig.AddVolatileConfigRequest) (*Ydb_DynamicConfig.AddVolatileConfigResponse, error) // Remove volatile config. RemoveVolatileConfig(context.Context, *Ydb_DynamicConfig.RemoveVolatileConfigRequest) (*Ydb_DynamicConfig.RemoveVolatileConfigResponse, error) GetNodeLabels(context.Context, *Ydb_DynamicConfig.GetNodeLabelsRequest) (*Ydb_DynamicConfig.GetNodeLabelsResponse, error) // Resolve config for particular labels. ResolveConfig(context.Context, *Ydb_DynamicConfig.ResolveConfigRequest) (*Ydb_DynamicConfig.ResolveConfigResponse, error) // Resolve config for all possible labels combinations. ResolveAllConfig(context.Context, *Ydb_DynamicConfig.ResolveAllConfigRequest) (*Ydb_DynamicConfig.ResolveAllConfigResponse, error) // contains filtered or unexported methods }
DynamicConfigServiceServer is the server API for DynamicConfigService service. All implementations must embed UnimplementedDynamicConfigServiceServer for forward compatibility
type UnimplementedDynamicConfigServiceServer ¶
type UnimplementedDynamicConfigServiceServer struct { }
UnimplementedDynamicConfigServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDynamicConfigServiceServer) AddVolatileConfig ¶
func (UnimplementedDynamicConfigServiceServer) AddVolatileConfig(context.Context, *Ydb_DynamicConfig.AddVolatileConfigRequest) (*Ydb_DynamicConfig.AddVolatileConfigResponse, error)
func (UnimplementedDynamicConfigServiceServer) DropConfig ¶
func (UnimplementedDynamicConfigServiceServer) DropConfig(context.Context, *Ydb_DynamicConfig.DropConfigRequest) (*Ydb_DynamicConfig.DropConfigResponse, error)
func (UnimplementedDynamicConfigServiceServer) GetMetadata ¶
func (UnimplementedDynamicConfigServiceServer) GetMetadata(context.Context, *Ydb_DynamicConfig.GetMetadataRequest) (*Ydb_DynamicConfig.GetMetadataResponse, error)
func (UnimplementedDynamicConfigServiceServer) GetNodeLabels ¶
func (UnimplementedDynamicConfigServiceServer) GetNodeLabels(context.Context, *Ydb_DynamicConfig.GetNodeLabelsRequest) (*Ydb_DynamicConfig.GetNodeLabelsResponse, error)
func (UnimplementedDynamicConfigServiceServer) RemoveVolatileConfig ¶
func (UnimplementedDynamicConfigServiceServer) RemoveVolatileConfig(context.Context, *Ydb_DynamicConfig.RemoveVolatileConfigRequest) (*Ydb_DynamicConfig.RemoveVolatileConfigResponse, error)
func (UnimplementedDynamicConfigServiceServer) ReplaceConfig ¶
func (UnimplementedDynamicConfigServiceServer) ReplaceConfig(context.Context, *Ydb_DynamicConfig.ReplaceConfigRequest) (*Ydb_DynamicConfig.ReplaceConfigResponse, error)
func (UnimplementedDynamicConfigServiceServer) ResolveAllConfig ¶
func (UnimplementedDynamicConfigServiceServer) ResolveAllConfig(context.Context, *Ydb_DynamicConfig.ResolveAllConfigRequest) (*Ydb_DynamicConfig.ResolveAllConfigResponse, error)
func (UnimplementedDynamicConfigServiceServer) ResolveConfig ¶
func (UnimplementedDynamicConfigServiceServer) ResolveConfig(context.Context, *Ydb_DynamicConfig.ResolveConfigRequest) (*Ydb_DynamicConfig.ResolveConfigResponse, error)
type UnsafeDynamicConfigServiceServer ¶
type UnsafeDynamicConfigServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDynamicConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DynamicConfigServiceServer will result in compilation errors.