mocks

package
v0.0.0-...-b1f728d Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSvc

type AppSvc struct {
	mock.Mock
}

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

func (*AppSvc) List

func (_m *AppSvc) List(ctx context.Context, projectName string) (*responses.ListApp, error)

List provides a mock function with given fields: ctx, projectName

func (*AppSvc) Restart

func (_m *AppSvc) Restart(ctx context.Context, projectName string, appName string) error

Restart provides a mock function with given fields: ctx, projectName, appName

func (*AppSvc) Update

func (_m *AppSvc) Update(ctx context.Context, projectName string, appName string, reqData *requests.UpdateApp) error

Update provides a mock function with given fields: ctx, projectName, appName, reqData

type K8sSvc

type K8sSvc struct {
	mock.Mock
}

K8sSvc is an autogenerated mock type for the K8sSvc type

func (*K8sSvc) Client

func (_m *K8sSvc) Client() client.Client

Client provides a mock function with given fields:

type ProjectSvc

type ProjectSvc struct {
	mock.Mock
}

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

type UserSvc struct {
	mock.Mock
}

UserSvc is an autogenerated mock type for the UserSvc type

func (*UserSvc) Create

func (_m *UserSvc) Create(ctx context.Context, reqData *requests.CreateUser) error

Create provides a mock function with given fields: ctx, reqData

func (*UserSvc) HasRole

func (_m *UserSvc) HasRole(ctx context.Context, userName string, role string) (bool, error)

HasRole provides a mock function with given fields: ctx, userName, role

func (*UserSvc) List

func (_m *UserSvc) List(ctx context.Context) (*responses.ListUser, error)

List provides a mock function with given fields: ctx

func (*UserSvc) Login

func (_m *UserSvc) Login(ctx context.Context, userName string, password string) (string, error)

Login provides a mock function with given fields: ctx, userName, password

Jump to

Keyboard shortcuts

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