compute

package
v0.0.0-...-af43c55 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateInstance(instanceName string) error
	// DeleteInstance bar
	DeleteInstance(instanceName string) error
	// GetInstanceStatus baz
	GetInstanceStatus(instanceName string) (string, error)
}

Client is the interface used for Compute management

type External

type External struct{}

External holds GCP management

func NewExternal

func NewExternal() *External

NewExternal returns a new client for Compute management

func (*External) CreateInstance

func (c *External) CreateInstance(instanceName string) error

CreateInstance create instance

func (*External) DeleteInstance

func (c *External) DeleteInstance(instanceName string) error

DeleteInstance delete instance

func (*External) GetInstanceStatus

func (c *External) GetInstanceStatus(instanceName string) (string, error)

GetInstanceStatus get instance

Jump to

Keyboard shortcuts

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