Documentation ¶
Index ¶
- func DecodeGCELabel(s string) (string, error)
- func WaitForOp(client *compute.Service, op *compute.Operation) error
- type GCEVolumes
- func (g *GCEVolumes) AttachVolume(volume *volumes.Volume) error
- func (g *GCEVolumes) FindMountedVolume(volume *volumes.Volume) (string, error)
- func (g *GCEVolumes) FindVolumes() ([]*volumes.Volume, error)
- func (g *GCEVolumes) MyIP() (string, error)
- func (g *GCEVolumes) Poll() (map[string]discovery.Node, error)
- type GoogleCloudURL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGCELabel ¶
DecodeGCELabel reverse EncodeGCELabel, taking the encoded RFC1035 compatible value back to a string
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)
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
Click to show internal directories.
Click to hide internal directories.