gce

package
v0.0.0-...-3442565 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGCELabel

func DecodeGCELabel(s string) (string, error)

DecodeGCELabel reverse EncodeGCELabel, taking the encoded RFC1035 compatible value back to a string

func WaitForOp

func WaitForOp(client *compute.Service, op *compute.Operation) error

Types

type GCEVolumes

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

GCEVolumes defines the aws volume implementation

func NewGCEVolumes

func NewGCEVolumes(clusterName string, volumeTags []string, nameTag string) (*GCEVolumes, error)

NewGCEVolumes returns a new aws volume provider

func (*GCEVolumes) AttachVolume

func (g *GCEVolumes) AttachVolume(volume *volumes.Volume) error

AttachVolume attaches the specified volume to this instance, returning the mountpoint & nil if successful

func (*GCEVolumes) FindMountedVolume

func (g *GCEVolumes) FindMountedVolume(volume *volumes.Volume) (string, error)

FindMountedVolume implements Volumes::FindMountedVolume

func (*GCEVolumes) FindVolumes

func (g *GCEVolumes) FindVolumes() ([]*volumes.Volume, error)

func (*GCEVolumes) MyIP

func (g *GCEVolumes) MyIP() (string, error)

func (*GCEVolumes) Poll

func (g *GCEVolumes) Poll() (map[string]discovery.Node, error)

type GoogleCloudURL

type GoogleCloudURL struct {
	Version string
	Project string
	Type    string
	Name    string
	Global  bool
	Region  string
	Zone    string
}

func ParseGoogleCloudURL

func ParseGoogleCloudURL(u string) (*GoogleCloudURL, error)

func (*GoogleCloudURL) BuildURL

func (u *GoogleCloudURL) BuildURL() string

Jump to

Keyboard shortcuts

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