v1

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_api_profile_v1_error_proto protoreflect.FileDescriptor
View Source
var File_api_profile_v1_plgprofile_proto protoreflect.FileDescriptor
View Source
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 ErrInvalidArgument() errors.Error

func ErrPluginList

func ErrPluginList() errors.Error

func ErrUnknown

func ErrUnknown() errors.Error

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 错误

const (
	// @msg=未知错误
	// @code=UNKNOWN
	Error_ERR_UNKNOWN Error = 0
	// @msg=参数错误
	// @code=INVALID_ARGUMENT
	Error_ERR_INVALID_ARGUMENT Error = 1
	// @msg=获取插件列表错误
	// @code=UNKNOWN
	Error_ERR_PLUGIN_LIST Error = 2
)

func (Error) Descriptor

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Number

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

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 (*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 (*GetTenantProfileDataResponse) Reset

func (x *GetTenantProfileDataResponse) Reset()

func (*GetTenantProfileDataResponse) 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetAdditionalProperties

func (x *Schema) GetAdditionalProperties() bool

func (*Schema) GetProperties

func (x *Schema) GetProperties() map[string]*ProfileSchema

func (*Schema) GetRequired

func (x *Schema) GetRequired() []string

func (*Schema) GetType

func (x *Schema) GetType() string

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

func (x *Schema) ProtoReflect() protoreflect.Message

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

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 (*SetTenantPluginProfileRequest) GetTenantId

func (x *SetTenantPluginProfileRequest) GetTenantId() string

func (*SetTenantPluginProfileRequest) ProtoMessage

func (*SetTenantPluginProfileRequest) ProtoMessage()

func (*SetTenantPluginProfileRequest) ProtoReflect

func (*SetTenantPluginProfileRequest) Reset

func (x *SetTenantPluginProfileRequest) Reset()

func (*SetTenantPluginProfileRequest) 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 (*SetTenantPluginProfileResponse) Reset

func (x *SetTenantPluginProfileResponse) Reset()

func (*SetTenantPluginProfileResponse) 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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL