testconfig

package
v0.0.0-...-66439cb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	sync.Mutex

	TestProjectID        string
	ServiceAccountEmail  string
	ServiceAccountScopes []string
	// contains filtered or unexported fields
}

Project is details of test Project.

func GetProject

func GetProject() *Project

GetProject creates a test Project to be used.

func (*Project) AcquireZone

func (p *Project) AcquireZone() string

AcquireZone returns a random zone that still has capacity, or waits until there is one.

func (*Project) ReleaseZone

func (p *Project) ReleaseZone(z string)

ReleaseZone returns a zone so other tests can use it.

Jump to

Keyboard shortcuts

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