types

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTargetManifest

func GetTargetManifest() *provider.ProviderTargetManifest

Types

type TargetOptions

type TargetOptions struct {
	CredentialFile string `json:"Credential File"`
	ProjectID      string `json:"Project Id"`
	Zone           string `json:"Zone"`
	MachineType    string `json:"Machine Type"`
	DiskType       string `json:"Disk Type"`
	DiskSize       int    `json:"Disk Size"`
	VMImage        string `json:"VM Image"`
}

func ParseTargetOptions

func ParseTargetOptions(optionsJson string) (*TargetOptions, error)

ParseTargetOptions parses the target options from the JSON string.

type WorkspaceMetadata

type WorkspaceMetadata struct {
	VirtualMachineId   uint64
	VirtualMachineName string
	Platform           string
	Location           string
	Created            string
}

func ToWorkspaceMetadata

func ToWorkspaceMetadata(vm *computepb.Instance) WorkspaceMetadata

ToWorkspaceMetadata converts and maps values from an *computepb.Instance to a WorkspaceMetadata.

Jump to

Keyboard shortcuts

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