testutil

package
v0.0.0-...-e6ba0f1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 17 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 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(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

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
	ConfigFile string // Kind specific config.yaml
	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) Start

func (e *KindEnv) Start(name string) error

func (*KindEnv) Stop

func (e *KindEnv) Stop() 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