service

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbUserColl    = "user"
	DbSecretColl  = "secret"
	DbProjectColl = "project"
	DbJobColl     = "job"

	FsProjectDir = "project"
	FsJobDir     = "job"
)
View Source
const (
	SysAssertAdmin = "_root"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	UserService    *UserServiceImpl
	SecretService  *SecretServiceImpl
	ProjectService *ProjectServiceImpl
	JobService     *JobServiceImpl
	// contains filtered or unexported fields
}

func NewManulGlobalEnv

func NewManulGlobalEnv() (env *Env, err error)

func (*Env) DatabaseSetup

func (env *Env) DatabaseSetup() (err error)

func (*Env) ParseAuthInfo

func (env *Env) ParseAuthInfo(ctx context.Context, auth *pbUser.AuthToken) (user *model.User, err error)

func (*Env) SpawnJobWorkdir

func (env *Env) SpawnJobWorkdir() *workdir.Workdir

func (*Env) SpawnMgoCli

func (env *Env) SpawnMgoCli() *mongo.Client

func (*Env) SpawnProjectWorkdir

func (env *Env) SpawnProjectWorkdir() *workdir.Workdir

func (*Env) SpawnWorkdir

func (env *Env) SpawnWorkdir() *workdir.Workdir

type JobServiceImpl

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

func (*JobServiceImpl) CancelJob

TODO:Not implemented yet

func (*JobServiceImpl) CreateJob

func (j *JobServiceImpl) CreateJob(ctx context.Context, req *pb.CreateJobRequest) (ret *pb.CreateJobResponse, e error)

TODO:Not implemented yet

func (*JobServiceImpl) GetJob

func (j *JobServiceImpl) GetJob(ctx context.Context, req *pb.GetJobRequest) (ret *pb.GetJobResponse, e error)

TODO:Not implemented yet

func (*JobServiceImpl) ListJobs

TODO:Not implemented yet

type ProjectServiceImpl

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

func NewProjectServiceImpl

func NewProjectServiceImpl(env *Env) *ProjectServiceImpl

func (*ProjectServiceImpl) CreateProject

TODO:Not implemented yet

func (*ProjectServiceImpl) DeleteProject

TODO:Not implemented yet

func (*ProjectServiceImpl) GetProject

TODO:Not implemented yet

func (*ProjectServiceImpl) GetProjectChecklist

TODO:Not implemented yet

func (*ProjectServiceImpl) InitProject

func (p *ProjectServiceImpl) InitProject(name string) (err error)

func (*ProjectServiceImpl) ListProjectMembers

TODO:Not implemented yet

func (*ProjectServiceImpl) ListProjects

TODO:Not implemented yet

func (*ProjectServiceImpl) UpdateProject

TODO:Not implemented yet

func (*ProjectServiceImpl) UpdateProjectMember

TODO:Not implemented yet

type SecretServiceImpl

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

func (*SecretServiceImpl) ForgotSecret

TODO:Not implemented yet

func (*SecretServiceImpl) UpdateSecret

TODO:Not implemented yet

type UserServiceImpl

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

func (*UserServiceImpl) CreateUser

func (u *UserServiceImpl) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (ret *pb.CreateUserResponse, e error)

func (*UserServiceImpl) DeleteUser

TODO:Not implemented yet

func (*UserServiceImpl) GetUser

func (u *UserServiceImpl) GetUser(ctx context.Context, req *pb.GetUserRequest) (ret *pb.GetUserResponse, e error)

func (*UserServiceImpl) ListUsers

func (u *UserServiceImpl) ListUsers(ctx context.Context, req *pb.ListUsersRequest) (ret *pb.ListUsersResponse, e error)

func (*UserServiceImpl) ParseAuthInfo

func (u *UserServiceImpl) ParseAuthInfo(ctx context.Context, auth *pb.AuthToken) (user *model.User, err error)

func (*UserServiceImpl) UpdateUser

func (u *UserServiceImpl) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (ret *pb.UpdateUserResponse, e error)

Jump to

Keyboard shortcuts

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