Documentation ¶
Index ¶
- Variables
- func ErrInvalidArgument() errors.Error
- func ErrPluginList() errors.Error
- func ErrUnknown() errors.Error
- func RegisterProfileHTTPServer(container *go_restful.Container, srv ProfileHTTPServer)
- func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)
- type Error
- type GetProfileSchemaRequest
- func (*GetProfileSchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileSchemaRequest) GetProfile() string
- func (*GetProfileSchemaRequest) ProtoMessage()
- func (x *GetProfileSchemaRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfileSchemaRequest) Reset()
- func (x *GetProfileSchemaRequest) String() string
- type GetProfileSchemaResponse
- func (*GetProfileSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileSchemaResponse) GetSchema() *Schema
- func (*GetProfileSchemaResponse) ProtoMessage()
- func (x *GetProfileSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileSchemaResponse) Reset()
- func (x *GetProfileSchemaResponse) String() string
- type GetTenantProfileDataRequest
- func (*GetTenantProfileDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantProfileDataRequest) GetTenantId() string
- func (*GetTenantProfileDataRequest) ProtoMessage()
- func (x *GetTenantProfileDataRequest) ProtoReflect() protoreflect.Message
- func (x *GetTenantProfileDataRequest) Reset()
- func (x *GetTenantProfileDataRequest) String() string
- type GetTenantProfileDataResponse
- func (*GetTenantProfileDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantProfileDataResponse) GetProfiles() map[string]int32
- func (*GetTenantProfileDataResponse) ProtoMessage()
- func (x *GetTenantProfileDataResponse) ProtoReflect() protoreflect.Message
- func (x *GetTenantProfileDataResponse) Reset()
- func (x *GetTenantProfileDataResponse) String() string
- type ProfileClient
- type ProfileHTTPHandler
- func (h *ProfileHTTPHandler) GetProfileSchema(req *go_restful.Request, resp *go_restful.Response)
- func (h *ProfileHTTPHandler) GetTenantProfileData(req *go_restful.Request, resp *go_restful.Response)
- func (h *ProfileHTTPHandler) SetTenantProfileData(req *go_restful.Request, resp *go_restful.Response)
- type ProfileHTTPServer
- type ProfileSchema
- func (*ProfileSchema) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileSchema) GetDefault() int32
- func (x *ProfileSchema) GetDescription() string
- func (x *ProfileSchema) GetMaximum() int32
- func (x *ProfileSchema) GetMinimum() int32
- func (x *ProfileSchema) GetMultipleOf() int32
- func (x *ProfileSchema) GetTitle() string
- func (x *ProfileSchema) GetType() string
- func (*ProfileSchema) ProtoMessage()
- func (x *ProfileSchema) ProtoReflect() protoreflect.Message
- func (x *ProfileSchema) Reset()
- func (x *ProfileSchema) String() string
- type ProfileServer
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetAdditionalProperties() bool
- func (x *Schema) GetProperties() map[string]*ProfileSchema
- func (x *Schema) GetRequired() []string
- func (x *Schema) GetType() string
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- type SetTenantPluginProfileRequest
- func (*SetTenantPluginProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetTenantPluginProfileRequest) GetBody() *TenantProfiles
- func (x *SetTenantPluginProfileRequest) GetTenantId() string
- func (*SetTenantPluginProfileRequest) ProtoMessage()
- func (x *SetTenantPluginProfileRequest) ProtoReflect() protoreflect.Message
- func (x *SetTenantPluginProfileRequest) Reset()
- func (x *SetTenantPluginProfileRequest) String() string
- type SetTenantPluginProfileResponse
- func (*SetTenantPluginProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (*SetTenantPluginProfileResponse) ProtoMessage()
- func (x *SetTenantPluginProfileResponse) ProtoReflect() protoreflect.Message
- func (x *SetTenantPluginProfileResponse) Reset()
- func (x *SetTenantPluginProfileResponse) String() string
- type TenantEnableRequest
- func (*TenantEnableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TenantEnableRequest) GetExtra() []byte
- func (x *TenantEnableRequest) GetTenantId() string
- func (*TenantEnableRequest) ProtoMessage()
- func (x *TenantEnableRequest) ProtoReflect() protoreflect.Message
- func (x *TenantEnableRequest) Reset()
- func (x *TenantEnableRequest) String() string
- type TenantProfiles
- type UnimplementedProfileServer
- func (UnimplementedProfileServer) GetProfileSchema(context.Context, *GetProfileSchemaRequest) (*GetProfileSchemaResponse, error)
- func (UnimplementedProfileServer) GetTenantProfileData(context.Context, *GetTenantProfileDataRequest) (*GetTenantProfileDataResponse, error)
- func (UnimplementedProfileServer) SetTenantProfileData(context.Context, *SetTenantPluginProfileRequest) (*SetTenantPluginProfileResponse, error)
- type UnsafeProfileServer
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "ERR_UNKNOWN", 1: "ERR_INVALID_ARGUMENT", 2: "ERR_PLUGIN_LIST", } Error_value = map[string]int32{ "ERR_UNKNOWN": 0, "ERR_INVALID_ARGUMENT": 1, "ERR_PLUGIN_LIST": 2, } )
Enum value maps for Error.
var File_api_profile_v1_error_proto protoreflect.FileDescriptor
var File_api_profile_v1_plgprofile_proto protoreflect.FileDescriptor
var Profile_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.tkeel.rudder.api.profile.v1.Profile", HandlerType: (*ProfileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProfileSchema", Handler: _Profile_GetProfileSchema_Handler, }, { MethodName: "GetTenantProfileData", Handler: _Profile_GetTenantProfileData_Handler, }, { MethodName: "SetTenantProfileData", Handler: _Profile_SetTenantProfileData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/profile/v1/plgprofile.proto", }
Profile_ServiceDesc is the grpc.ServiceDesc for Profile service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrInvalidArgument ¶
func ErrPluginList ¶
func ErrUnknown ¶
func RegisterProfileHTTPServer ¶
func RegisterProfileHTTPServer(container *go_restful.Container, srv ProfileHTTPServer)
func RegisterProfileServer ¶
func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)
Types ¶
type Error ¶
type Error int32
@plugins=protoc-gen-go-errors 错误
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type GetProfileSchemaRequest ¶
type GetProfileSchemaRequest struct { Profile string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*GetProfileSchemaRequest) Descriptor
deprecated
func (*GetProfileSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileSchemaRequest.ProtoReflect.Descriptor instead.
func (*GetProfileSchemaRequest) GetProfile ¶
func (x *GetProfileSchemaRequest) GetProfile() string
func (*GetProfileSchemaRequest) ProtoMessage ¶
func (*GetProfileSchemaRequest) ProtoMessage()
func (*GetProfileSchemaRequest) ProtoReflect ¶
func (x *GetProfileSchemaRequest) ProtoReflect() protoreflect.Message
func (*GetProfileSchemaRequest) Reset ¶
func (x *GetProfileSchemaRequest) Reset()
func (*GetProfileSchemaRequest) String ¶
func (x *GetProfileSchemaRequest) String() string
type GetProfileSchemaResponse ¶
type GetProfileSchemaResponse struct { Schema *Schema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // contains filtered or unexported fields }
func (*GetProfileSchemaResponse) Descriptor
deprecated
func (*GetProfileSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileSchemaResponse.ProtoReflect.Descriptor instead.
func (*GetProfileSchemaResponse) GetSchema ¶
func (x *GetProfileSchemaResponse) GetSchema() *Schema
func (*GetProfileSchemaResponse) ProtoMessage ¶
func (*GetProfileSchemaResponse) ProtoMessage()
func (*GetProfileSchemaResponse) ProtoReflect ¶
func (x *GetProfileSchemaResponse) ProtoReflect() protoreflect.Message
func (*GetProfileSchemaResponse) Reset ¶
func (x *GetProfileSchemaResponse) Reset()
func (*GetProfileSchemaResponse) String ¶
func (x *GetProfileSchemaResponse) String() string
type GetTenantProfileDataRequest ¶
type GetTenantProfileDataRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*GetTenantProfileDataRequest) Descriptor
deprecated
func (*GetTenantProfileDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTenantProfileDataRequest.ProtoReflect.Descriptor instead.
func (*GetTenantProfileDataRequest) GetTenantId ¶
func (x *GetTenantProfileDataRequest) GetTenantId() string
func (*GetTenantProfileDataRequest) ProtoMessage ¶
func (*GetTenantProfileDataRequest) ProtoMessage()
func (*GetTenantProfileDataRequest) ProtoReflect ¶
func (x *GetTenantProfileDataRequest) ProtoReflect() protoreflect.Message
func (*GetTenantProfileDataRequest) Reset ¶
func (x *GetTenantProfileDataRequest) Reset()
func (*GetTenantProfileDataRequest) String ¶
func (x *GetTenantProfileDataRequest) String() string
type GetTenantProfileDataResponse ¶
type GetTenantProfileDataResponse struct { Profiles map[string]int32 `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetTenantProfileDataResponse) Descriptor
deprecated
func (*GetTenantProfileDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTenantProfileDataResponse.ProtoReflect.Descriptor instead.
func (*GetTenantProfileDataResponse) GetProfiles ¶
func (x *GetTenantProfileDataResponse) GetProfiles() map[string]int32
func (*GetTenantProfileDataResponse) ProtoMessage ¶
func (*GetTenantProfileDataResponse) ProtoMessage()
func (*GetTenantProfileDataResponse) ProtoReflect ¶
func (x *GetTenantProfileDataResponse) ProtoReflect() protoreflect.Message
func (*GetTenantProfileDataResponse) Reset ¶
func (x *GetTenantProfileDataResponse) Reset()
func (*GetTenantProfileDataResponse) String ¶
func (x *GetTenantProfileDataResponse) String() string
type ProfileClient ¶
type ProfileClient interface { // profile schema GetProfileSchema(ctx context.Context, in *GetProfileSchemaRequest, opts ...grpc.CallOption) (*GetProfileSchemaResponse, error) // profile data GetTenantProfileData(ctx context.Context, in *GetTenantProfileDataRequest, opts ...grpc.CallOption) (*GetTenantProfileDataResponse, error) SetTenantProfileData(ctx context.Context, in *SetTenantPluginProfileRequest, opts ...grpc.CallOption) (*SetTenantPluginProfileResponse, error) }
ProfileClient is the client API for Profile 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 NewProfileClient ¶
func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient
type ProfileHTTPHandler ¶
type ProfileHTTPHandler struct {
// contains filtered or unexported fields
}
func (*ProfileHTTPHandler) GetProfileSchema ¶
func (h *ProfileHTTPHandler) GetProfileSchema(req *go_restful.Request, resp *go_restful.Response)
func (*ProfileHTTPHandler) GetTenantProfileData ¶
func (h *ProfileHTTPHandler) GetTenantProfileData(req *go_restful.Request, resp *go_restful.Response)
func (*ProfileHTTPHandler) SetTenantProfileData ¶
func (h *ProfileHTTPHandler) SetTenantProfileData(req *go_restful.Request, resp *go_restful.Response)
type ProfileHTTPServer ¶
type ProfileHTTPServer interface { GetProfileSchema(context.Context, *GetProfileSchemaRequest) (*GetProfileSchemaResponse, error) GetTenantProfileData(context.Context, *GetTenantProfileDataRequest) (*GetTenantProfileDataResponse, error) SetTenantProfileData(context.Context, *SetTenantPluginProfileRequest) (*SetTenantPluginProfileResponse, error) }
type ProfileSchema ¶
type ProfileSchema struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Default int32 `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` MultipleOf int32 `protobuf:"varint,5,opt,name=multipleOf,proto3" json:"multipleOf,omitempty"` Minimum int32 `protobuf:"varint,6,opt,name=minimum,proto3" json:"minimum,omitempty"` Maximum int32 `protobuf:"varint,7,opt,name=maximum,proto3" json:"maximum,omitempty"` // contains filtered or unexported fields }
func (*ProfileSchema) Descriptor
deprecated
func (*ProfileSchema) Descriptor() ([]byte, []int)
Deprecated: Use ProfileSchema.ProtoReflect.Descriptor instead.
func (*ProfileSchema) GetDefault ¶
func (x *ProfileSchema) GetDefault() int32
func (*ProfileSchema) GetDescription ¶
func (x *ProfileSchema) GetDescription() string
func (*ProfileSchema) GetMaximum ¶
func (x *ProfileSchema) GetMaximum() int32
func (*ProfileSchema) GetMinimum ¶
func (x *ProfileSchema) GetMinimum() int32
func (*ProfileSchema) GetMultipleOf ¶
func (x *ProfileSchema) GetMultipleOf() int32
func (*ProfileSchema) GetTitle ¶
func (x *ProfileSchema) GetTitle() string
func (*ProfileSchema) GetType ¶
func (x *ProfileSchema) GetType() string
func (*ProfileSchema) ProtoMessage ¶
func (*ProfileSchema) ProtoMessage()
func (*ProfileSchema) ProtoReflect ¶
func (x *ProfileSchema) ProtoReflect() protoreflect.Message
func (*ProfileSchema) Reset ¶
func (x *ProfileSchema) Reset()
func (*ProfileSchema) String ¶
func (x *ProfileSchema) String() string
type ProfileServer ¶
type ProfileServer interface { // profile schema GetProfileSchema(context.Context, *GetProfileSchemaRequest) (*GetProfileSchemaResponse, error) // profile data GetTenantProfileData(context.Context, *GetTenantProfileDataRequest) (*GetTenantProfileDataResponse, error) SetTenantProfileData(context.Context, *SetTenantPluginProfileRequest) (*SetTenantPluginProfileResponse, error) // contains filtered or unexported methods }
ProfileServer is the server API for Profile service. All implementations must embed UnimplementedProfileServer for forward compatibility
type Schema ¶
type Schema struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Properties map[string]*ProfileSchema `` /* 161-byte string literal not displayed */ Required []string `protobuf:"bytes,3,rep,name=required,proto3" json:"required,omitempty"` AdditionalProperties bool `protobuf:"varint,4,opt,name=additionalProperties,proto3" json:"additionalProperties,omitempty"` // contains filtered or unexported fields }
func (*Schema) Descriptor
deprecated
func (*Schema) GetAdditionalProperties ¶
func (*Schema) GetProperties ¶
func (x *Schema) GetProperties() map[string]*ProfileSchema
func (*Schema) GetRequired ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type SetTenantPluginProfileRequest ¶
type SetTenantPluginProfileRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` Body *TenantProfiles `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SetTenantPluginProfileRequest) Descriptor
deprecated
func (*SetTenantPluginProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetTenantPluginProfileRequest.ProtoReflect.Descriptor instead.
func (*SetTenantPluginProfileRequest) GetBody ¶
func (x *SetTenantPluginProfileRequest) GetBody() *TenantProfiles
func (*SetTenantPluginProfileRequest) GetTenantId ¶
func (x *SetTenantPluginProfileRequest) GetTenantId() string
func (*SetTenantPluginProfileRequest) ProtoMessage ¶
func (*SetTenantPluginProfileRequest) ProtoMessage()
func (*SetTenantPluginProfileRequest) ProtoReflect ¶
func (x *SetTenantPluginProfileRequest) ProtoReflect() protoreflect.Message
func (*SetTenantPluginProfileRequest) Reset ¶
func (x *SetTenantPluginProfileRequest) Reset()
func (*SetTenantPluginProfileRequest) String ¶
func (x *SetTenantPluginProfileRequest) String() string
type SetTenantPluginProfileResponse ¶
type SetTenantPluginProfileResponse struct {
// contains filtered or unexported fields
}
func (*SetTenantPluginProfileResponse) Descriptor
deprecated
func (*SetTenantPluginProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetTenantPluginProfileResponse.ProtoReflect.Descriptor instead.
func (*SetTenantPluginProfileResponse) ProtoMessage ¶
func (*SetTenantPluginProfileResponse) ProtoMessage()
func (*SetTenantPluginProfileResponse) ProtoReflect ¶
func (x *SetTenantPluginProfileResponse) ProtoReflect() protoreflect.Message
func (*SetTenantPluginProfileResponse) Reset ¶
func (x *SetTenantPluginProfileResponse) Reset()
func (*SetTenantPluginProfileResponse) String ¶
func (x *SetTenantPluginProfileResponse) String() string
type TenantEnableRequest ¶
type TenantEnableRequest struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // unique tenant id. Extra []byte `protobuf:"bytes,2,opt,name=extra,proto3" json:"extra,omitempty"` // extra data // contains filtered or unexported fields }
func (*TenantEnableRequest) Descriptor
deprecated
func (*TenantEnableRequest) Descriptor() ([]byte, []int)
Deprecated: Use TenantEnableRequest.ProtoReflect.Descriptor instead.
func (*TenantEnableRequest) GetExtra ¶
func (x *TenantEnableRequest) GetExtra() []byte
func (*TenantEnableRequest) GetTenantId ¶
func (x *TenantEnableRequest) GetTenantId() string
func (*TenantEnableRequest) ProtoMessage ¶
func (*TenantEnableRequest) ProtoMessage()
func (*TenantEnableRequest) ProtoReflect ¶
func (x *TenantEnableRequest) ProtoReflect() protoreflect.Message
func (*TenantEnableRequest) Reset ¶
func (x *TenantEnableRequest) Reset()
func (*TenantEnableRequest) String ¶
func (x *TenantEnableRequest) String() string
type TenantProfiles ¶
type TenantProfiles struct { Profiles map[string]int32 `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TenantProfiles) Descriptor
deprecated
func (*TenantProfiles) Descriptor() ([]byte, []int)
Deprecated: Use TenantProfiles.ProtoReflect.Descriptor instead.
func (*TenantProfiles) GetProfiles ¶
func (x *TenantProfiles) GetProfiles() map[string]int32
func (*TenantProfiles) ProtoMessage ¶
func (*TenantProfiles) ProtoMessage()
func (*TenantProfiles) ProtoReflect ¶
func (x *TenantProfiles) ProtoReflect() protoreflect.Message
func (*TenantProfiles) Reset ¶
func (x *TenantProfiles) Reset()
func (*TenantProfiles) String ¶
func (x *TenantProfiles) String() string
type UnimplementedProfileServer ¶
type UnimplementedProfileServer struct { }
UnimplementedProfileServer must be embedded to have forward compatible implementations.
func (UnimplementedProfileServer) GetProfileSchema ¶
func (UnimplementedProfileServer) GetProfileSchema(context.Context, *GetProfileSchemaRequest) (*GetProfileSchemaResponse, error)
func (UnimplementedProfileServer) GetTenantProfileData ¶
func (UnimplementedProfileServer) GetTenantProfileData(context.Context, *GetTenantProfileDataRequest) (*GetTenantProfileDataResponse, error)
func (UnimplementedProfileServer) SetTenantProfileData ¶
func (UnimplementedProfileServer) SetTenantProfileData(context.Context, *SetTenantPluginProfileRequest) (*SetTenantPluginProfileResponse, error)
type UnsafeProfileServer ¶
type UnsafeProfileServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServer will result in compilation errors.