suite

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(cli runner.Client)

func Compatible

func Compatible(cli runner.Client)

* main step: install a old version of nhctl

(1) enter dev mode
(2) start port-forward
(3) start file sync

then, install a new version of nhctl

(1) check sync status, developing status, port-forward status
(2) check sync is ok or not
(3) try to end port-forward
(4) try to end dev mode

using new version of nhctl to do more operation

func Deployment

func Deployment(cli runner.Client)

func DeploymentDuplicate

func DeploymentDuplicate(cli runner.Client)

func Get

func Get(cli runner.Client)

func HelmAdaption

func HelmAdaption(client runner.Client)

func Hook

func Hook(client runner.Client)

func Install

func Install(cli runner.Client)

func KillSyncthingProcess

func KillSyncthingProcess(cli runner.Client)

func LogsForArchive

func LogsForArchive()

func PortForward

func PortForward(client runner.Client, module, moduleType string)

func PortForwardService

func PortForwardService(client runner.Client) error

func Prepare

func Prepare() (cancelFunc func(), namespaceResult, kubeconfigResult string)

Prepare will install a nhctl client, create a k8s cluster if necessary

func ProfileAndAssociate

func ProfileAndAssociate(cli runner.Client)

func Reset

func Reset(cli runner.Client)

func StatefulSet

func StatefulSet(cli runner.Client)

func StatefulSetDuplicate

func StatefulSetDuplicate(cli runner.Client)

func TestLog

func TestLog(_ runner.Client)

func Upgrade

func Upgrade(cli runner.Client)

Types

type T

type T struct {
	Cli       runner.Client
	CleanFunc func()
}

test suite

func NewT

func NewT(namespace, kubeconfig string, f func()) *T

func (*T) Alert

func (t *T) Alert()

func (*T) AlertForImagePull

func (t *T) AlertForImagePull()

cli must be kubectl

func (*T) Clean

func (t *T) Clean()

func (*T) Run

func (t *T) Run(name string, fn func(cli runner.Client))

func (*T) RunWithBookInfo

func (t *T) RunWithBookInfo(withBookInfo bool, name string, fn func(cli runner.Client))

Run command and clean environment after finished

Jump to

Keyboard shortcuts

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