testutil

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTestData

func FindTestData(uri string) error

func InsertTestData

func InsertTestData(uri string) error

func WaitForConsul

func WaitForConsul(pool *dockertest.Pool, endpoint string) error

func WaitForMongoDB

func WaitForMongoDB(pool *dockertest.Pool, uri string) error

func WaitForS3

func WaitForS3(pool *dockertest.Pool, endpoint, accessKeyID, secretAccessKey string) error

Types

type HelmEnv

type HelmEnv struct {
	Config *HelmEnvConfig
	Dir    string
	Bin    string
	Env    []string
	// contains filtered or unexported fields
}

func NewHelmEnv

func NewHelmEnv(config *HelmEnvConfig) (*HelmEnv, error)

func (*HelmEnv) Close

func (e *HelmEnv) Close() error

func (*HelmEnv) Install

func (e *HelmEnv) Install(namespace, release, chart string, args ...string) error

func (*HelmEnv) RepoAdd

func (e *HelmEnv) RepoAdd(name, url string) error

func (*HelmEnv) RepoUpdate

func (e *HelmEnv) RepoUpdate() error

func (*HelmEnv) Uninstall

func (e *HelmEnv) Uninstall(namespace, release string, args ...string) error

type HelmEnvConfig

type HelmEnvConfig struct {
	Kubeconfig string
	Stdout     io.Writer
	Stderr     io.Writer
}

type KindEnv

type KindEnv struct {
	Config     *KindEnvConfig
	Dir        string
	Bin        string
	Name       string
	Kubeconfig string
	// contains filtered or unexported fields
}

func NewKindEnv

func NewKindEnv(config *KindEnvConfig) (*KindEnv, error)

func (*KindEnv) Close

func (e *KindEnv) Close() error

func (*KindEnv) LoadDockerImage

func (e *KindEnv) LoadDockerImage(image string) error

type KindEnvConfig

type KindEnvConfig struct {
	Stdout io.Writer
	Stderr io.Writer
}

Jump to

Keyboard shortcuts

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