service

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 17 Imported by: 0

README

Service

Documentation

Index

Constants

View Source
const SUCCESS = "success"

Variables

ProviderSet is service providers.

Functions

func NewIpfShell added in v0.0.6

func NewIpfShell(c *conf.Data) *shell.Shell

Types

type AgentService

type AgentService struct {
	pb.UnimplementedAgentServer
	// contains filtered or unexported fields
}

func NewAgentService

func NewAgentService(uc *biz.AgentUsecase, logger log.Logger) *AgentService

func (*AgentService) CreateAgent

func (s *AgentService) CreateAgent(ctx context.Context, req *pb.CreateAgentRequest) (*pb.CreateAgentReply, error)

func (*AgentService) DeleteAgent

func (s *AgentService) DeleteAgent(ctx context.Context, req *pb.DeleteAgentRequest) (*pb.DeleteAgentReply, error)

func (*AgentService) GetAgent

func (s *AgentService) GetAgent(ctx context.Context, req *pb.GetAgentRequest) (*pb.GetAgentReply, error)

func (*AgentService) ListAgent

func (s *AgentService) ListAgent(ctx context.Context, req *pb.ListAgentRequest) (*pb.ListAgentReply, error)

func (*AgentService) ListAgentInstance added in v0.0.6

func (*AgentService) ReportInstanceStatus added in v0.0.6

func (s *AgentService) ReportInstanceStatus(ctx context.Context, req *computepb.Instance) (rsp *pb.ReportInstanceStatusReply, err error)

func (*AgentService) UpdateAgent

func (s *AgentService) UpdateAgent(ctx context.Context, req *pb.UpdateAgentRequest) (*pb.UpdateAgentReply, error)

type ComputeInstanceService

type ComputeInstanceService struct {
	pb.UnimplementedComputeInstanceServer
	// contains filtered or unexported fields
}

func NewComputeInstanceService

func NewComputeInstanceService(uc *biz.ComputeInstanceUsercase, logger log.Logger) *ComputeInstanceService

func (*ComputeInstanceService) Create

func (*ComputeInstanceService) Delete

func (*ComputeInstanceService) Get

func (*ComputeInstanceService) List

func (*ComputeInstanceService) ListComputeImage

func (*ComputeInstanceService) ListComputeInstanceDuration

func (*ComputeInstanceService) ListComputeSpec

func (*ComputeInstanceService) StartInstance

func (*ComputeInstanceService) StopInstance

func (*ComputeInstanceService) Terminal added in v0.0.3

type ComputePowerService added in v0.0.3

type ComputePowerService struct {
	pb.UnimplementedComputePowerServer
	// contains filtered or unexported fields
}

func NewComputePowerService added in v0.0.3

func NewComputePowerService(uc *biz.ScriptUseCase, ipfsShell *shell.Shell, logger log.Logger) (*ComputePowerService, error)

func (*ComputePowerService) CancelExecPythonPackage added in v0.0.3

func (*ComputePowerService) DownloadScriptExecuteResult added in v0.0.3

func (*ComputePowerService) GetScriptExecutionRecordInfo added in v0.0.5

func (*ComputePowerService) GetScriptExecutionRecordList added in v0.0.5

func (*ComputePowerService) RunPythonPackage added in v0.0.3

func (*ComputePowerService) UploadScriptFile added in v0.0.3

type CronJob added in v0.0.3

type CronJob struct {
	// contains filtered or unexported fields
}

func NewCronJob added in v0.0.3

func NewCronJob(computeInstanceUsercase *biz.ComputeInstanceUsercase, agentUsecase *biz.AgentUsecase, logger log.Logger) *CronJob

func (*CronJob) StartJob added in v0.0.3

func (c *CronJob) StartJob()

type StorageService

type StorageService struct {
	pb.UnimplementedStorageServer
	// contains filtered or unexported fields
}

func NewStorageService

func NewStorageService(uc *biz.Storagecase, ipfsShell *shell.Shell, logger log.Logger) (*StorageService, error)

func (*StorageService) CreateDir

func (*StorageService) Delete

func (s *StorageService) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteReply, error)

func (*StorageService) Download

func (*StorageService) List

func (s *StorageService) List(ctx context.Context, req *pb.ListRequest) (*pb.ListReply, error)

func (*StorageService) UploadFile

type UserService

type UserService struct {
	pb.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(uc *biz.UserUsercase, logger log.Logger) *UserService

func (*UserService) CreateUser

func (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)

func (*UserService) DeleteUser

func (s *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)

func (*UserService) ListUser

func (s *UserService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)

func (*UserService) Login

func (s *UserService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)

func (*UserService) LoginWithValidateCode

func (s *UserService) LoginWithValidateCode(ctx context.Context, req *pb.LoginWithValidateCodeRequest) (*pb.LoginReply, error)

func (*UserService) SendValidateCode

func (*UserService) UpdateUser

func (s *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)

func (*UserService) UpdateUserPassword

func (*UserService) UpdateUserTelephone

Jump to

Keyboard shortcuts

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