google

package
v64.2.8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const TERMINATION_PATH = "/instance/preempted"

Variables

This section is empty.

Functions

func New

func New(runnercfg *cfg.RunnerConfig) (provider.Provider, error)

func Usage

func Usage() string

Types

type GoogleProvider

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

func (*GoogleProvider) ConfigureRun

func (p *GoogleProvider) ConfigureRun(state *run.State) error

func (*GoogleProvider) GetWorkerIdentityProof

func (p *GoogleProvider) GetWorkerIdentityProof() (map[string]interface{}, error)

func (*GoogleProvider) SetProtocol

func (p *GoogleProvider) SetProtocol(proto *workerproto.Protocol)

func (*GoogleProvider) UseCachedRun

func (p *GoogleProvider) UseCachedRun(run *run.State) error

func (*GoogleProvider) WorkerFinished

func (p *GoogleProvider) WorkerFinished(state *run.State) error

func (*GoogleProvider) WorkerStarted

func (p *GoogleProvider) WorkerStarted(state *run.State) error

type MetadataService

type MetadataService interface {
	// contains filtered or unexported methods
}

type UserData

type UserData struct {
	WorkerPoolID string `json:"workerPoolId"`
	ProviderID   string `json:"providerId"`
	WorkerGroup  string `json:"workerGroup"`
	RootURL      string `json:"rootUrl"`

	// NOTE: this is ignored, in preference to the configuration
	// returned from registerWorker
	ProviderWorkerConfig *json.RawMessage `json:"workerConfig"`
}

user-data sent to us from the worker-manager service

Jump to

Keyboard shortcuts

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