mock

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminUsername    = "admin"
	AdminPassword    = "admin"
	AdminAccountType = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiMock

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

func NewApiMock

func NewApiMock(db *gorm.DB) *ApiMock

func (*ApiMock) InitApi

func (m *ApiMock) InitApi() error

type K8sClientMock

type K8sClientMock struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewK8sClientMock

func NewK8sClientMock(db *gorm.DB) *K8sClientMock

type RoleMock

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

func NewRoleMock

func NewRoleMock(db *gorm.DB, ce *casbin.Enforcer) *RoleMock

type UserMock

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

func NewUserMock

func NewUserMock(db *gorm.DB) *UserMock

func (*UserMock) CreateUserAdmin

func (u *UserMock) CreateUserAdmin() error

Jump to

Keyboard shortcuts

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