compute

package
v0.0.0-...-3d6bb46 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The key name used in metadata will be used by konlet.
	ContainerDeclarationMetadata string = "gce-container-declaration"

	// Used as the name of node template / node group / instance.
	SoleTenantName        string = "dedicated"
	NodeGroupInitialCount int64  = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVars

type EnvVars []struct {
	Name  string
	Value string
}

type Manager

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

func New

func New() (*Manager, error)

func (*Manager) CreateContainer

func (m *Manager) CreateContainer(image string, cmd []string, args []string, env EnvVars) error

func (*Manager) DeleteInstance

func (m *Manager) DeleteInstance() error

func (*Manager) DeleteNodeGroup

func (m *Manager) DeleteNodeGroup() error

func (*Manager) DeleteNodeTemplate

func (m *Manager) DeleteNodeTemplate() error

func (*Manager) GetInstance

func (m *Manager) GetInstance() (*compute.Instance, error)

func (*Manager) SetMetadata

func (m *Manager) SetMetadata(keyVals map[string]string) error

Jump to

Keyboard shortcuts

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