mock

package
v0.0.0-...-513d4e4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func MockResouceTree

func MockResouceTree(name string) model.ResourceTree

Types

type K8sClientMock

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

func NewK8sClientMock

func NewK8sClientMock(db *gorm.DB) *K8sClientMock

type TreeMock

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

func NewTreeMock

func NewTreeMock(db *gorm.DB) *TreeMock

func (*TreeMock) CreateTreeMock

func (t *TreeMock) CreateTreeMock()

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()

Jump to

Keyboard shortcuts

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