app

package
v0.0.0-...-7f5f5d0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppInterface_UploadApp_FullMethodName                = "/clusterruntime.api.app.AppInterface/UploadApp"
	AppInterface_CheckCluster_FullMethodName             = "/clusterruntime.api.app.AppInterface/CheckCluster"
	AppInterface_InstallBasicComponent_FullMethodName    = "/clusterruntime.api.app.AppInterface/InstallBasicComponent"
	AppInterface_GetAppReleaseResources_FullMethodName   = "/clusterruntime.api.app.AppInterface/GetAppReleaseResources"
	AppInterface_DeleteApp_FullMethodName                = "/clusterruntime.api.app.AppInterface/DeleteApp"
	AppInterface_DeleteAppVersion_FullMethodName         = "/clusterruntime.api.app.AppInterface/DeleteAppVersion"
	AppInterface_GetAppAndVersionInfo_FullMethodName     = "/clusterruntime.api.app.AppInterface/GetAppAndVersionInfo"
	AppInterface_AppRelease_FullMethodName               = "/clusterruntime.api.app.AppInterface/AppRelease"
	AppInterface_ReloadAppReleaseResource_FullMethodName = "/clusterruntime.api.app.AppInterface/ReloadAppReleaseResource"
	AppInterface_DeleteAppRelease_FullMethodName         = "/clusterruntime.api.app.AppInterface/DeleteAppRelease"
	AppInterface_AddAppRepo_FullMethodName               = "/clusterruntime.api.app.AppInterface/AddAppRepo"
	AppInterface_GetAppsByRepo_FullMethodName            = "/clusterruntime.api.app.AppInterface/GetAppsByRepo"
	AppInterface_GetAppDetailByRepo_FullMethodName       = "/clusterruntime.api.app.AppInterface/GetAppDetailByRepo"
)

Variables

View Source
var AppInterface_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clusterruntime.api.app.AppInterface",
	HandlerType: (*AppInterfaceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UploadApp",
			Handler:    _AppInterface_UploadApp_Handler,
		},
		{
			MethodName: "CheckCluster",
			Handler:    _AppInterface_CheckCluster_Handler,
		},
		{
			MethodName: "InstallBasicComponent",
			Handler:    _AppInterface_InstallBasicComponent_Handler,
		},
		{
			MethodName: "GetAppReleaseResources",
			Handler:    _AppInterface_GetAppReleaseResources_Handler,
		},
		{
			MethodName: "DeleteApp",
			Handler:    _AppInterface_DeleteApp_Handler,
		},
		{
			MethodName: "DeleteAppVersion",
			Handler:    _AppInterface_DeleteAppVersion_Handler,
		},
		{
			MethodName: "GetAppAndVersionInfo",
			Handler:    _AppInterface_GetAppAndVersionInfo_Handler,
		},
		{
			MethodName: "AppRelease",
			Handler:    _AppInterface_AppRelease_Handler,
		},
		{
			MethodName: "ReloadAppReleaseResource",
			Handler:    _AppInterface_ReloadAppReleaseResource_Handler,
		},
		{
			MethodName: "DeleteAppRelease",
			Handler:    _AppInterface_DeleteAppRelease_Handler,
		},
		{
			MethodName: "AddAppRepo",
			Handler:    _AppInterface_AddAppRepo_Handler,
		},
		{
			MethodName: "GetAppsByRepo",
			Handler:    _AppInterface_GetAppsByRepo_Handler,
		},
		{
			MethodName: "GetAppDetailByRepo",
			Handler:    _AppInterface_GetAppDetailByRepo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/repository/clusterruntime/api/app/app.proto",
}

AppInterface_ServiceDesc is the grpc.ServiceDesc for AppInterface service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_internal_repository_clusterruntime_api_app_app_proto protoreflect.FileDescriptor
View Source
var File_internal_repository_clusterruntime_api_app_message_proto protoreflect.FileDescriptor

Functions

func RegisterAppInterfaceServer

func RegisterAppInterfaceServer(s grpc.ServiceRegistrar, srv AppInterfaceServer)

Types

type AppInterfaceClient

type AppInterfaceClient interface {
	UploadApp(ctx context.Context, in *FileUploadRequest, opts ...grpc.CallOption) (*GetAppAndVersionInfo, error)
	CheckCluster(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CheckClusterResponse, error)
	InstallBasicComponent(ctx context.Context, in *InstallBasicComponentReq, opts ...grpc.CallOption) (*InstallBasicComponentResponse, error)
	GetAppReleaseResources(ctx context.Context, in *biz.AppRelease, opts ...grpc.CallOption) (*AppReleaseResourceItems, error)
	DeleteApp(ctx context.Context, in *biz.App, opts ...grpc.CallOption) (*common.Msg, error)
	DeleteAppVersion(ctx context.Context, in *DeleteAppVersionReq, opts ...grpc.CallOption) (*common.Msg, error)
	GetAppAndVersionInfo(ctx context.Context, in *GetAppAndVersionInfo, opts ...grpc.CallOption) (*GetAppAndVersionInfo, error)
	AppRelease(ctx context.Context, in *AppReleaseReq, opts ...grpc.CallOption) (*biz.AppRelease, error)
	ReloadAppReleaseResource(ctx context.Context, in *biz.AppReleaseResource, opts ...grpc.CallOption) (*common.Msg, error)
	DeleteAppRelease(ctx context.Context, in *biz.AppRelease, opts ...grpc.CallOption) (*common.Msg, error)
	AddAppRepo(ctx context.Context, in *biz.AppRepo, opts ...grpc.CallOption) (*biz.AppRepo, error)
	GetAppsByRepo(ctx context.Context, in *biz.AppRepo, opts ...grpc.CallOption) (*AppItems, error)
	GetAppDetailByRepo(ctx context.Context, in *GetAppDetailByRepoReq, opts ...grpc.CallOption) (*biz.App, error)
}

AppInterfaceClient is the client API for AppInterface 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.

type AppInterfaceServer

type AppInterfaceServer interface {
	UploadApp(context.Context, *FileUploadRequest) (*GetAppAndVersionInfo, error)
	CheckCluster(context.Context, *emptypb.Empty) (*CheckClusterResponse, error)
	InstallBasicComponent(context.Context, *InstallBasicComponentReq) (*InstallBasicComponentResponse, error)
	GetAppReleaseResources(context.Context, *biz.AppRelease) (*AppReleaseResourceItems, error)
	DeleteApp(context.Context, *biz.App) (*common.Msg, error)
	DeleteAppVersion(context.Context, *DeleteAppVersionReq) (*common.Msg, error)
	GetAppAndVersionInfo(context.Context, *GetAppAndVersionInfo) (*GetAppAndVersionInfo, error)
	AppRelease(context.Context, *AppReleaseReq) (*biz.AppRelease, error)
	ReloadAppReleaseResource(context.Context, *biz.AppReleaseResource) (*common.Msg, error)
	DeleteAppRelease(context.Context, *biz.AppRelease) (*common.Msg, error)
	AddAppRepo(context.Context, *biz.AppRepo) (*biz.AppRepo, error)
	GetAppsByRepo(context.Context, *biz.AppRepo) (*AppItems, error)
	GetAppDetailByRepo(context.Context, *GetAppDetailByRepoReq) (*biz.App, error)
	// contains filtered or unexported methods
}

AppInterfaceServer is the server API for AppInterface service. All implementations must embed UnimplementedAppInterfaceServer for forward compatibility.

type AppItems

type AppItems struct {
	Apps []*biz.App `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"`
	// contains filtered or unexported fields
}

func (*AppItems) Descriptor deprecated

func (*AppItems) Descriptor() ([]byte, []int)

Deprecated: Use AppItems.ProtoReflect.Descriptor instead.

func (*AppItems) GetApps

func (x *AppItems) GetApps() []*biz.App

func (*AppItems) ProtoMessage

func (*AppItems) ProtoMessage()

func (*AppItems) ProtoReflect

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

func (*AppItems) Reset

func (x *AppItems) Reset()

func (*AppItems) String

func (x *AppItems) String() string

type AppReleaseReq

type AppReleaseReq struct {
	App     *biz.App        `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Version *biz.AppVersion `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Release *biz.AppRelease `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
	Repo    *biz.AppRepo    `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*AppReleaseReq) Descriptor deprecated

func (*AppReleaseReq) Descriptor() ([]byte, []int)

Deprecated: Use AppReleaseReq.ProtoReflect.Descriptor instead.

func (*AppReleaseReq) GetApp

func (x *AppReleaseReq) GetApp() *biz.App

func (*AppReleaseReq) GetRelease

func (x *AppReleaseReq) GetRelease() *biz.AppRelease

func (*AppReleaseReq) GetRepo

func (x *AppReleaseReq) GetRepo() *biz.AppRepo

func (*AppReleaseReq) GetVersion

func (x *AppReleaseReq) GetVersion() *biz.AppVersion

func (*AppReleaseReq) ProtoMessage

func (*AppReleaseReq) ProtoMessage()

func (*AppReleaseReq) ProtoReflect

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

func (*AppReleaseReq) Reset

func (x *AppReleaseReq) Reset()

func (*AppReleaseReq) String

func (x *AppReleaseReq) String() string

type AppReleaseResourceItems

type AppReleaseResourceItems struct {
	Resources []*biz.AppReleaseResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*AppReleaseResourceItems) Descriptor deprecated

func (*AppReleaseResourceItems) Descriptor() ([]byte, []int)

Deprecated: Use AppReleaseResourceItems.ProtoReflect.Descriptor instead.

func (*AppReleaseResourceItems) GetResources

func (x *AppReleaseResourceItems) GetResources() []*biz.AppReleaseResource

func (*AppReleaseResourceItems) ProtoMessage

func (*AppReleaseResourceItems) ProtoMessage()

func (*AppReleaseResourceItems) ProtoReflect

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

func (*AppReleaseResourceItems) Reset

func (x *AppReleaseResourceItems) Reset()

func (*AppReleaseResourceItems) String

func (x *AppReleaseResourceItems) String() string

type CheckClusterResponse

type CheckClusterResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckClusterResponse) Descriptor deprecated

func (*CheckClusterResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckClusterResponse.ProtoReflect.Descriptor instead.

func (*CheckClusterResponse) GetOk

func (x *CheckClusterResponse) GetOk() bool

func (*CheckClusterResponse) ProtoMessage

func (*CheckClusterResponse) ProtoMessage()

func (*CheckClusterResponse) ProtoReflect

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

func (*CheckClusterResponse) Reset

func (x *CheckClusterResponse) Reset()

func (*CheckClusterResponse) String

func (x *CheckClusterResponse) String() string

type DeleteAppVersionReq

type DeleteAppVersionReq struct {
	App     *biz.App        `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Version *biz.AppVersion `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAppVersionReq) Descriptor deprecated

func (*DeleteAppVersionReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAppVersionReq.ProtoReflect.Descriptor instead.

func (*DeleteAppVersionReq) GetApp

func (x *DeleteAppVersionReq) GetApp() *biz.App

func (*DeleteAppVersionReq) GetVersion

func (x *DeleteAppVersionReq) GetVersion() *biz.AppVersion

func (*DeleteAppVersionReq) ProtoMessage

func (*DeleteAppVersionReq) ProtoMessage()

func (*DeleteAppVersionReq) ProtoReflect

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

func (*DeleteAppVersionReq) Reset

func (x *DeleteAppVersionReq) Reset()

func (*DeleteAppVersionReq) String

func (x *DeleteAppVersionReq) String() string

type FileUploadRequest

type FileUploadRequest struct {
	Icon     string `protobuf:"bytes,1,opt,name=icon,proto3" json:"icon,omitempty"`
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	Chunk    string `protobuf:"bytes,3,opt,name=chunk,proto3" json:"chunk,omitempty"`
	Resume   bool   `protobuf:"varint,4,opt,name=resume,proto3" json:"resume,omitempty"`
	Finish   bool   `protobuf:"varint,5,opt,name=finish,proto3" json:"finish,omitempty"`
	// contains filtered or unexported fields
}

func (*FileUploadRequest) Descriptor deprecated

func (*FileUploadRequest) Descriptor() ([]byte, []int)

Deprecated: Use FileUploadRequest.ProtoReflect.Descriptor instead.

func (*FileUploadRequest) GetChunk

func (x *FileUploadRequest) GetChunk() string

func (*FileUploadRequest) GetFileName

func (x *FileUploadRequest) GetFileName() string

func (*FileUploadRequest) GetFinish

func (x *FileUploadRequest) GetFinish() bool

func (*FileUploadRequest) GetIcon

func (x *FileUploadRequest) GetIcon() string

func (*FileUploadRequest) GetResume

func (x *FileUploadRequest) GetResume() bool

func (*FileUploadRequest) ProtoMessage

func (*FileUploadRequest) ProtoMessage()

func (*FileUploadRequest) ProtoReflect

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

func (*FileUploadRequest) Reset

func (x *FileUploadRequest) Reset()

func (*FileUploadRequest) String

func (x *FileUploadRequest) String() string

type GetAppAndVersionInfo

type GetAppAndVersionInfo struct {
	App     *biz.App        `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Version *biz.AppVersion `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAppAndVersionInfo) Descriptor deprecated

func (*GetAppAndVersionInfo) Descriptor() ([]byte, []int)

Deprecated: Use GetAppAndVersionInfo.ProtoReflect.Descriptor instead.

func (*GetAppAndVersionInfo) GetApp

func (x *GetAppAndVersionInfo) GetApp() *biz.App

func (*GetAppAndVersionInfo) GetVersion

func (x *GetAppAndVersionInfo) GetVersion() *biz.AppVersion

func (*GetAppAndVersionInfo) ProtoMessage

func (*GetAppAndVersionInfo) ProtoMessage()

func (*GetAppAndVersionInfo) ProtoReflect

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

func (*GetAppAndVersionInfo) Reset

func (x *GetAppAndVersionInfo) Reset()

func (*GetAppAndVersionInfo) String

func (x *GetAppAndVersionInfo) String() string

type GetAppDetailByRepoReq

type GetAppDetailByRepoReq struct {
	Repo    *biz.AppRepo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	AppName string       `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Version string       `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAppDetailByRepoReq) Descriptor deprecated

func (*GetAppDetailByRepoReq) Descriptor() ([]byte, []int)

Deprecated: Use GetAppDetailByRepoReq.ProtoReflect.Descriptor instead.

func (*GetAppDetailByRepoReq) GetAppName

func (x *GetAppDetailByRepoReq) GetAppName() string

func (*GetAppDetailByRepoReq) GetRepo

func (x *GetAppDetailByRepoReq) GetRepo() *biz.AppRepo

func (*GetAppDetailByRepoReq) GetVersion

func (x *GetAppDetailByRepoReq) GetVersion() string

func (*GetAppDetailByRepoReq) ProtoMessage

func (*GetAppDetailByRepoReq) ProtoMessage()

func (*GetAppDetailByRepoReq) ProtoReflect

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

func (*GetAppDetailByRepoReq) Reset

func (x *GetAppDetailByRepoReq) Reset()

func (*GetAppDetailByRepoReq) String

func (x *GetAppDetailByRepoReq) String() string

type InitResponse

type InitResponse struct {
	Apps     []*biz.App        `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"`
	Releases []*biz.AppRelease `protobuf:"bytes,2,rep,name=releases,proto3" json:"releases,omitempty"`
	// contains filtered or unexported fields
}

func (*InitResponse) Descriptor deprecated

func (*InitResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) GetApps

func (x *InitResponse) GetApps() []*biz.App

func (*InitResponse) GetReleases

func (x *InitResponse) GetReleases() []*biz.AppRelease

func (*InitResponse) ProtoMessage

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect

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

func (*InitResponse) Reset

func (x *InitResponse) Reset()

func (*InitResponse) String

func (x *InitResponse) String() string

type InstallBasicComponentReq

type InstallBasicComponentReq struct {
	BasicComponentAppType biz.BasicComponentAppType `` /* 164-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InstallBasicComponentReq) Descriptor deprecated

func (*InstallBasicComponentReq) Descriptor() ([]byte, []int)

Deprecated: Use InstallBasicComponentReq.ProtoReflect.Descriptor instead.

func (*InstallBasicComponentReq) GetBasicComponentAppType

func (x *InstallBasicComponentReq) GetBasicComponentAppType() biz.BasicComponentAppType

func (*InstallBasicComponentReq) ProtoMessage

func (*InstallBasicComponentReq) ProtoMessage()

func (*InstallBasicComponentReq) ProtoReflect

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

func (*InstallBasicComponentReq) Reset

func (x *InstallBasicComponentReq) Reset()

func (*InstallBasicComponentReq) String

func (x *InstallBasicComponentReq) String() string

type InstallBasicComponentResponse

type InstallBasicComponentResponse struct {
	Apps     []*biz.App        `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"`
	Releases []*biz.AppRelease `protobuf:"bytes,2,rep,name=releases,proto3" json:"releases,omitempty"`
	// contains filtered or unexported fields
}

func (*InstallBasicComponentResponse) Descriptor deprecated

func (*InstallBasicComponentResponse) Descriptor() ([]byte, []int)

Deprecated: Use InstallBasicComponentResponse.ProtoReflect.Descriptor instead.

func (*InstallBasicComponentResponse) GetApps

func (x *InstallBasicComponentResponse) GetApps() []*biz.App

func (*InstallBasicComponentResponse) GetReleases

func (x *InstallBasicComponentResponse) GetReleases() []*biz.AppRelease

func (*InstallBasicComponentResponse) ProtoMessage

func (*InstallBasicComponentResponse) ProtoMessage()

func (*InstallBasicComponentResponse) ProtoReflect

func (*InstallBasicComponentResponse) Reset

func (x *InstallBasicComponentResponse) Reset()

func (*InstallBasicComponentResponse) String

type ReloadAppReleaseReq

type ReloadAppReleaseReq struct {
	AppReleaseName string `protobuf:"bytes,1,opt,name=AppReleaseName,proto3" json:"AppReleaseName,omitempty"`
	// contains filtered or unexported fields
}

func (*ReloadAppReleaseReq) Descriptor deprecated

func (*ReloadAppReleaseReq) Descriptor() ([]byte, []int)

Deprecated: Use ReloadAppReleaseReq.ProtoReflect.Descriptor instead.

func (*ReloadAppReleaseReq) GetAppReleaseName

func (x *ReloadAppReleaseReq) GetAppReleaseName() string

func (*ReloadAppReleaseReq) ProtoMessage

func (*ReloadAppReleaseReq) ProtoMessage()

func (*ReloadAppReleaseReq) ProtoReflect

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

func (*ReloadAppReleaseReq) Reset

func (x *ReloadAppReleaseReq) Reset()

func (*ReloadAppReleaseReq) String

func (x *ReloadAppReleaseReq) String() string

type UnimplementedAppInterfaceServer

type UnimplementedAppInterfaceServer struct{}

UnimplementedAppInterfaceServer 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 (UnimplementedAppInterfaceServer) AddAppRepo

func (UnimplementedAppInterfaceServer) AppRelease

func (UnimplementedAppInterfaceServer) CheckCluster

func (UnimplementedAppInterfaceServer) DeleteApp

func (UnimplementedAppInterfaceServer) DeleteAppRelease

func (UnimplementedAppInterfaceServer) DeleteAppVersion

func (UnimplementedAppInterfaceServer) GetAppAndVersionInfo

func (UnimplementedAppInterfaceServer) GetAppDetailByRepo

func (UnimplementedAppInterfaceServer) GetAppReleaseResources

func (UnimplementedAppInterfaceServer) GetAppsByRepo

func (UnimplementedAppInterfaceServer) InstallBasicComponent

func (UnimplementedAppInterfaceServer) ReloadAppReleaseResource

func (UnimplementedAppInterfaceServer) UploadApp

type UnsafeAppInterfaceServer

type UnsafeAppInterfaceServer interface {
	// contains filtered or unexported methods
}

UnsafeAppInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppInterfaceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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