Documentation ¶
Index ¶
- type AppSvc
- func (_m *AppSvc) Create(ctx context.Context, projectName string, reqData *requests.CreateApp) error
- func (_m *AppSvc) List(ctx context.Context, projectName string) (*responses.ListApp, error)
- func (_m *AppSvc) Restart(ctx context.Context, projectName string, appName string) error
- func (_m *AppSvc) Update(ctx context.Context, projectName string, appName string, ...) error
- type K8sSvc
- type ProjectSvc
- func (_m *ProjectSvc) Create(ctx context.Context, userName string, reqData *requests.CreateProject) error
- func (_m *ProjectSvc) Get(ctx context.Context, userName string, projectName string) (*responses.Project, error)
- func (_m *ProjectSvc) List(ctx context.Context, userName string) (*responses.ListProject, error)
- type UserSvc
- func (_m *UserSvc) Create(ctx context.Context, reqData *requests.CreateUser) error
- func (_m *UserSvc) HasRole(ctx context.Context, userName string, role string) (bool, error)
- func (_m *UserSvc) List(ctx context.Context) (*responses.ListUser, error)
- func (_m *UserSvc) Login(ctx context.Context, userName string, password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSvc ¶
AppSvc is an autogenerated mock type for the AppSvc type
func (*AppSvc) Create ¶
func (_m *AppSvc) Create(ctx context.Context, projectName string, reqData *requests.CreateApp) error
Create provides a mock function with given fields: ctx, projectName, reqData
type ProjectSvc ¶
ProjectSvc is an autogenerated mock type for the ProjectSvc type
func (*ProjectSvc) Create ¶
func (_m *ProjectSvc) Create(ctx context.Context, userName string, reqData *requests.CreateProject) error
Create provides a mock function with given fields: ctx, userName, reqData
func (*ProjectSvc) Get ¶
func (_m *ProjectSvc) Get(ctx context.Context, userName string, projectName string) (*responses.Project, error)
Get provides a mock function with given fields: ctx, userName, projectName
func (*ProjectSvc) List ¶
func (_m *ProjectSvc) List(ctx context.Context, userName string) (*responses.ListProject, error)
List provides a mock function with given fields: ctx, userName
type UserSvc ¶
UserSvc is an autogenerated mock type for the UserSvc type
Click to show internal directories.
Click to hide internal directories.