interfaces

package
v0.0.0-...-5c0e286 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 21 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is interface providers.

Functions

This section is empty.

Types

type AppInterface

type AppInterface struct {
	v1alpha1.UnimplementedAppInterfaceServer
	// contains filtered or unexported fields
}

func NewAppInterface

func NewAppInterface(uc *biz.AppUsecase, user *biz.UserUseCase, c *conf.Bootstrap, logger log.Logger) *AppInterface

func (*AppInterface) AppTest

func (a *AppInterface) AppTest(ctx context.Context, deployAppReq *v1alpha1.DeployAppReq) (*v1alpha1.DeployApp, error)

func (*AppInterface) CreateAppType

func (a *AppInterface) CreateAppType(ctx context.Context, appType *v1alpha1.AppType) (*v1alpha1.Msg, error)

func (*AppInterface) Delete

func (a *AppInterface) Delete(ctx context.Context, appReq *v1alpha1.AppReq) (*v1alpha1.Msg, error)

func (*AppInterface) DeleteAppType

func (a *AppInterface) DeleteAppType(ctx context.Context, appTypeReq *v1alpha1.AppTypeReq) (*v1alpha1.Msg, error)

func (*AppInterface) DeleteDeployedApp

func (a *AppInterface) DeleteDeployedApp(ctx context.Context, deployAppReq *v1alpha1.DeployAppReq) (*v1alpha1.Msg, error)

func (*AppInterface) DeleteRepo

func (a *AppInterface) DeleteRepo(ctx context.Context, repoReq *v1alpha1.AppHelmRepoReq) (*v1alpha1.Msg, error)

func (*AppInterface) DeployApp

func (a *AppInterface) DeployApp(ctx context.Context, deployAppReq *v1alpha1.DeployAppReq) (*v1alpha1.DeployApp, error)

func (*AppInterface) Get

func (a *AppInterface) Get(ctx context.Context, appReq *v1alpha1.AppReq) (*v1alpha1.App, error)

func (*AppInterface) GetAppDeployed

func (a *AppInterface) GetAppDeployed(ctx context.Context, appDeployId *v1alpha1.DeployApp) (*v1alpha1.DeployApp, error)

func (*AppInterface) GetAppDetailByRepo

func (a *AppInterface) GetAppDetailByRepo(ctx context.Context, repoReq *v1alpha1.AppHelmRepoReq) (*v1alpha1.App, error)

func (*AppInterface) GetAppsByRepo

func (a *AppInterface) GetAppsByRepo(ctx context.Context, repoReq *v1alpha1.AppHelmRepoReq) (*v1alpha1.AppList, error)

func (*AppInterface) GetDeployedAppResources

func (a *AppInterface) GetDeployedAppResources(ctx context.Context, deployAppReq *v1alpha1.DeployAppReq) (*v1alpha1.DeployAppResources, error)

func (*AppInterface) List

func (a *AppInterface) List(ctx context.Context, appReq *v1alpha1.AppReq) (*v1alpha1.AppList, error)

func (*AppInterface) ListAppType

func (a *AppInterface) ListAppType(ctx context.Context, _ *emptypb.Empty) (*v1alpha1.AppTypeList, error)

func (*AppInterface) ListDeployedApp

func (a *AppInterface) ListDeployedApp(ctx context.Context, deployAppReq *v1alpha1.DeployAppReq) (*v1alpha1.DeployAppList, error)

func (*AppInterface) ListRepo

func (*AppInterface) Ping

func (a *AppInterface) Ping(ctx context.Context, _ *emptypb.Empty) (*v1alpha1.Msg, error)

func (*AppInterface) Save

func (a *AppInterface) Save(ctx context.Context, app *v1alpha1.App) (*v1alpha1.Msg, error)

func (*AppInterface) SaveRepo

func (a *AppInterface) SaveRepo(ctx context.Context, repo *v1alpha1.AppHelmRepo) (*v1alpha1.Msg, error)

func (*AppInterface) StopApp

func (a *AppInterface) StopApp(ctx context.Context, deployAppReq *v1alpha1.DeployAppReq) (*v1alpha1.Msg, error)

func (*AppInterface) UploadApp

type ClusterInterface

type ClusterInterface struct {
	v1alpha1.UnimplementedClusterInterfaceServer
	// contains filtered or unexported fields
}

func NewClusterInterface

func NewClusterInterface(clusterUc *biz.ClusterUsecase, projectUc *biz.ProjectUsecase, appUc *biz.AppUsecase, c *conf.Bootstrap, logger log.Logger) (*ClusterInterface, error)

func (*ClusterInterface) AddNode

func (c *ClusterInterface) AddNode(ctx context.Context, clusterParam *v1alpha1.ClusterID) (*v1alpha1.Msg, error)

AddNode

func (*ClusterInterface) CheckClusterConfig

func (c *ClusterInterface) CheckClusterConfig(ctx context.Context, clusterId *v1alpha1.ClusterID) (*v1alpha1.Cluster, error)

func (*ClusterInterface) Delete

func (c *ClusterInterface) Delete(ctx context.Context, clusterID *v1alpha1.ClusterID) (*v1alpha1.Msg, error)

func (*ClusterInterface) DeleteNode

func (c *ClusterInterface) DeleteNode(ctx context.Context, clusterParam *v1alpha1.ClusterID) (*v1alpha1.Msg, error)

func (*ClusterInterface) Get

func (*ClusterInterface) GetClusterMockData

func (c *ClusterInterface) GetClusterMockData(ctx context.Context, _ *emptypb.Empty) (*v1alpha1.Cluster, error)

func (*ClusterInterface) List

func (*ClusterInterface) Ping

func (*ClusterInterface) RemoveNode

func (c *ClusterInterface) RemoveNode(ctx context.Context, clusterParam *v1alpha1.ClusterID) (*v1alpha1.Msg, error)

RemoveNode

func (*ClusterInterface) Save

func (*ClusterInterface) SetUpCluster

func (c *ClusterInterface) SetUpCluster(ctx context.Context, cluster *v1alpha1.ClusterID) (*v1alpha1.Msg, error)

func (*ClusterInterface) UninstallCluster

func (c *ClusterInterface) UninstallCluster(ctx context.Context, cluster *v1alpha1.ClusterID) (*v1alpha1.Msg, error)

UninstallCluster

type ProjectInterface

type ProjectInterface struct {
	v1alpha1.UnimplementedProjectServiceServer
	// contains filtered or unexported fields
}

func NewProjectInterface

func NewProjectInterface(uc *biz.ProjectUsecase, logger log.Logger) *ProjectInterface

func (*ProjectInterface) Delete

func (p *ProjectInterface) Delete(ctx context.Context, projectReq *v1alpha1.ProjectReq) (*v1alpha1.Msg, error)

func (*ProjectInterface) Get

func (*ProjectInterface) GetProjectMockData

func (p *ProjectInterface) GetProjectMockData(ctx context.Context, _ *emptypb.Empty) (*v1alpha1.Project, error)

func (*ProjectInterface) List

func (*ProjectInterface) Ping

func (*ProjectInterface) Save

func (p *ProjectInterface) Save(ctx context.Context, project *v1alpha1.Project) (*v1alpha1.Msg, error)

type ServicesInterface

type ServicesInterface struct {
	v1alpha1.UnimplementedServiceInterfaceServer
	// contains filtered or unexported fields
}

func NewServicesInterface

func NewServicesInterface(uc *biz.ServicesUseCase) *ServicesInterface

type UserInterface

type UserInterface struct {
	v1alpha1.UnimplementedUserInterfaceServer
	// contains filtered or unexported fields
}

func NewUserInterface

func NewUserInterface(uc *biz.UserUseCase, conf *conf.Bootstrap) *UserInterface

func (*UserInterface) GetUserInfo

func (u *UserInterface) GetUserInfo(ctx context.Context, in *emptypb.Empty) (*v1alpha1.User, error)

func (*UserInterface) SignIn

func (u *UserInterface) SignIn(ctx context.Context, in *v1alpha1.SignIn) (*v1alpha1.User, error)

func (*UserInterface) SignOut

func (u *UserInterface) SignOut(ctx context.Context, in *emptypb.Empty) (*v1alpha1.Msg, error)

Jump to

Keyboard shortcuts

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