tests

package
v0.0.0-...-76698d7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

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

func NewTestEnv

func NewTestEnv() (e *Env)

func (*Env) Assert

func (e *Env) Assert(kind, apiVersion, name, namespace, path, value string)

assert the resource field path equeue expect value 检查资源的字段是否等于期望的目标值

func (*Env) Clean

func (e *Env) Clean()

func (*Env) CreateAutoScaler

func (e *Env) CreateAutoScaler(name, targetRefName, targetRefField, scaleFactorName, scaleFactorNumber string)

func (*Env) CreateDeployment

func (e *Env) CreateDeployment(name, cpu, memory string, replicas int32)

func (*Env) PrepareResource

func (e *Env) PrepareResource(resources []string)

Jump to

Keyboard shortcuts

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