fixtures

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBucket = "personal"
View Source
var MirrorBucket = "personal_mirror"

Functions

func DialGrpcClient

func DialGrpcClient(targetAddr string, a *RunAppCtx) (*grpc.ClientConn, error)

func GetTestConfig

func GetTestConfig() (*config.Flags, config.Config, env.SpaceEnv)

GetTestConfig returns a ConfigMap instance instantiated using the env variables

func RandomPathName

func RandomPathName() string

RandomPathName create a valid path segment name. Usually 10 characters in length

Types

type RunAppCtx

type RunAppCtx struct {
	App *app.App

	ClientAppToken string
	ClientMnemonic string
	// contains filtered or unexported fields
}

func RunApp

func RunApp() *RunAppCtx

func RunAppWithClientAppToken

func RunAppWithClientAppToken(appToken string) *RunAppCtx

RunAppWithClientAppToken creates an instance of RunAppCtx for test but with the ClientAppToken already set

func (*RunAppCtx) ClearMasterAppToken

func (a *RunAppCtx) ClearMasterAppToken()

func (*RunAppCtx) Client

func (a *RunAppCtx) Client() pb.SpaceApiClient

func (*RunAppCtx) Shutdown

func (a *RunAppCtx) Shutdown()

Jump to

Keyboard shortcuts

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