gce

package
v1.32.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCERunner

func NewGCERunner(cfg remote.Config) remote.Runner

Types

type Accelerator

type Accelerator struct {
	Type  string `json:"type,omitempty"`
	Count int64  `json:"count,omitempty"`
}

Accelerator contains type and count about resource.

type GCEImage

type GCEImage struct {
	Image      string `json:"image,omitempty"`
	ImageRegex string `json:"image_regex,omitempty"`
	// ImageFamily is the image family to use. The latest image from the image family will be used, e.g cos-81-lts.
	ImageFamily     string    `json:"image_family,omitempty"`
	ImageDesc       string    `json:"image_description,omitempty"`
	KernelArguments []string  `json:"kernel_arguments,omitempty"`
	Project         string    `json:"project"`
	Metadata        string    `json:"metadata"`
	Machine         string    `json:"machine,omitempty"`
	Resources       Resources `json:"resources,omitempty"`
}

GCEImage contains some information about GCE Image.

type GCEImageConfig

type GCEImageConfig struct {
	Images map[string]GCEImage `json:"images"`
}

GCEImageConfig specifies what images should be run and how for these tests. It can be created via the `--images` and `--image-project` flags, or by specifying the `--image-config-file` flag, pointing to a json or yaml file of the form:

images:
  short-name:
    image: gce-image-name
    project: gce-image-project
    machine: for benchmark only, the machine type (GCE instance) to run test
    tests: for benchmark only, a list of ginkgo focus strings to match tests

TODO(coufon): replace 'image' with 'node' in configurations and we plan to support testing custom machines other than GCE by specifying Host

type GCERunner

type GCERunner struct {
	// contains filtered or unexported fields
}

func (*GCERunner) DeleteGCEInstance added in v1.30.0

func (g *GCERunner) DeleteGCEInstance(host string)

func (*GCERunner) StartTests

func (g *GCERunner) StartTests(suite remote.TestSuite, archivePath string, results chan *remote.TestResult) (numTests int)

func (*GCERunner) Validate

func (g *GCERunner) Validate() error

type Resources

type Resources struct {
	Accelerators []Accelerator `json:"accelerators,omitempty"`
}

Resources contains accelerators array.

Jump to

Keyboard shortcuts

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