syzkaller: github.com/google/syzkaller/pkg/gce Index | Files

package gce

import "github.com/google/syzkaller/pkg/gce"

Package gce provides wrappers around Google Compute Engine (GCE) APIs. It is assumed that the program itself also runs on GCE as APIs operate on the current project/zone.

See https://cloud.google.com/compute/docs for details. In particular, API reference: https://cloud.google.com/compute/docs/reference/latest and Go API wrappers: https://godoc.org/google.golang.org/api/compute/v0.beta

Index

Package Files

gce.go

type Context Uses

type Context struct {
    ProjectID  string
    ZoneID     string
    Instance   string
    InternalIP string
    ExternalIP string
    Network    string
    Subnetwork string
    // contains filtered or unexported fields
}

func NewContext Uses

func NewContext() (*Context, error)

func (*Context) CreateImage Uses

func (ctx *Context) CreateImage(imageName, gcsFile string) error

func (*Context) CreateInstance Uses

func (ctx *Context) CreateInstance(name, machineType, image, sshkey string, preemptible bool) (string, error)

func (*Context) DeleteImage Uses

func (ctx *Context) DeleteImage(imageName string) error

func (*Context) DeleteInstance Uses

func (ctx *Context) DeleteInstance(name string, wait bool) error

func (*Context) IsInstanceRunning Uses

func (ctx *Context) IsInstanceRunning(name string) bool

Package gce imports 11 packages (graph) and is imported by 4 packages. Updated 2019-04-13. Refresh now. Tools for package owners.