Versions in this module Expand all Collapse all v1 v1.8.0 Feb 7, 2018 Changes in this version + const DiskTypeSSD + const DiskTypeStandard + const ProviderName + func GetGCERegion(zone string) (string, error) + func NewAltTokenSource(tokenURL, tokenBody string) oauth2.TokenSource + type AltTokenSource struct + func (a *AltTokenSource) Token() (*oauth2.Token, error) + type Cloud struct + func CreateGCECloud(projectID, region, zone string, managedZones []string, networkURL string, ...) (*Cloud, error) + func (gce *Cloud) AddInstancesToInstanceGroup(name string, zone string, instanceNames []string) error + func (gce *Cloud) AddPortToInstanceGroup(ig *compute.InstanceGroup, port int64) (*compute.NamedPort, error) + func (gce *Cloud) AddSSHKeyToAllInstances(user string, keyData []byte) error + func (gce *Cloud) AttachDisk(diskName string, nodeName types.NodeName, readOnly bool) error + func (gce *Cloud) Clusters() (cloudprovider.Clusters, bool) + func (gce *Cloud) CreateBackendService(bg *compute.BackendService) error + func (gce *Cloud) CreateDisk(name string, diskType string, zone string, sizeGb int64, ...) error + func (gce *Cloud) CreateDiskFromSnapshot(snapshot string, name string, diskType string, zone string, sizeGb int64, ...) error + func (gce *Cloud) CreateFirewall(name, desc string, sourceRanges netsets.IPNet, ports []int64, ...) error + func (gce *Cloud) CreateGlobalForwardingRule(targetProxyLink, ip, name, portRange string) (*compute.ForwardingRule, error) + func (gce *Cloud) CreateHTTPHealthCheck(hc *compute.HttpHealthCheck) error + func (gce *Cloud) CreateInstanceGroup(name string, zone string) (*compute.InstanceGroup, error) + func (gce *Cloud) CreateRoute(clusterName string, nameHint string, route *cloudprovider.Route) error + func (gce *Cloud) CreateSnapshot(diskName string, zone string, snapshotName string, tags map[string]string) error + func (gce *Cloud) CreateSslCertificate(sslCerts *compute.SslCertificate) (*compute.SslCertificate, error) + func (gce *Cloud) CreateTargetHTTPProxy(urlMap *compute.UrlMap, name string) (*compute.TargetHttpProxy, error) + func (gce *Cloud) CreateTargetHTTPSProxy(urlMap *compute.UrlMap, sslCert *compute.SslCertificate, name string) (*compute.TargetHttpsProxy, error) + func (gce *Cloud) CreateURLMap(backend *compute.BackendService, name string) (*compute.UrlMap, error) + func (gce *Cloud) CurrentNodeName(hostname string) (types.NodeName, error) + func (gce *Cloud) DeleteBackendService(name string) error + func (gce *Cloud) DeleteDisk(diskToDelete string) error + func (gce *Cloud) DeleteFirewall(name string) error + func (gce *Cloud) DeleteForwardingRule(name string) error + func (gce *Cloud) DeleteGlobalForwardingRule(name string) error + func (gce *Cloud) DeleteGlobalStaticIP(name string) error + func (gce *Cloud) DeleteHTTPHealthCheck(name string) error + func (gce *Cloud) DeleteInstanceGroup(name string, zone string) error + func (gce *Cloud) DeleteRoute(clusterName string, route *cloudprovider.Route) error + func (gce *Cloud) DeleteSnapshot(snapshotToDelete string) error + func (gce *Cloud) DeleteSslCertificate(name string) error + func (gce *Cloud) DeleteTargetHTTPProxy(name string) error + func (gce *Cloud) DeleteTargetHTTPSProxy(name string) error + func (gce *Cloud) DeleteTargetPool(name string, hc *compute.HttpHealthCheck) error + func (gce *Cloud) DeleteURLMap(name string) error + func (gce *Cloud) DescribeSnapshot(snapshotToGet string) (status string, isCompleted bool, err error) + func (gce *Cloud) DetachDisk(devicePath string, nodeName types.NodeName) error + func (gce *Cloud) DiskIsAttached(diskName string, nodeName types.NodeName) (bool, error) + func (gce *Cloud) DisksAreAttached(diskNames []string, nodeName types.NodeName) (map[string]bool, error) + func (gce *Cloud) EnsureLoadBalancer(clusterName string, apiService *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error) + func (gce *Cloud) EnsureLoadBalancerDeleted(clusterName string, service *v1.Service) error + func (gce *Cloud) ExternalID(nodeName types.NodeName) (string, error) + func (gce *Cloud) FindSnapshot(tags map[string]string) ([]string, []string, error) + func (gce *Cloud) GetAllZones() (sets.String, error) + func (gce *Cloud) GetAutoLabelsForPD(name string, zone string) (map[string]string, error) + func (gce *Cloud) GetBackendService(name string) (*compute.BackendService, error) + func (gce *Cloud) GetComputeService() *compute.Service + func (gce *Cloud) GetFirewall(name string) (*compute.Firewall, error) + func (gce *Cloud) GetGlobalForwardingRule(name string) (*compute.ForwardingRule, error) + func (gce *Cloud) GetGlobalStaticIP(name string) (address *compute.Address, err error) + func (gce *Cloud) GetHTTPHealthCheck(name string) (*compute.HttpHealthCheck, error) + func (gce *Cloud) GetHealth(name string, instanceGroupLink string) (*compute.BackendServiceGroupHealth, error) + func (gce *Cloud) GetInstanceGroup(name string, zone string) (*compute.InstanceGroup, error) + func (gce *Cloud) GetLoadBalancer(clusterName string, service *v1.Service) (*v1.LoadBalancerStatus, bool, error) + func (gce *Cloud) GetSslCertificate(name string) (*compute.SslCertificate, error) + func (gce *Cloud) GetTargetHTTPProxy(name string) (*compute.TargetHttpProxy, error) + func (gce *Cloud) GetTargetHTTPSProxy(name string) (*compute.TargetHttpsProxy, error) + func (gce *Cloud) GetURLMap(name string) (*compute.UrlMap, error) + func (gce *Cloud) GetZone() (cloudprovider.Zone, error) + func (gce *Cloud) InstanceID(nodeName types.NodeName) (string, error) + func (gce *Cloud) InstanceType(nodeName types.NodeName) (string, error) + func (gce *Cloud) Instances() (cloudprovider.Instances, bool) + func (gce *Cloud) ListBackendServices() (*compute.BackendServiceList, error) + func (gce *Cloud) ListClusters() ([]string, error) + func (gce *Cloud) ListGlobalForwardingRules() (*compute.ForwardingRuleList, error) + func (gce *Cloud) ListHTTPHealthChecks() (*compute.HttpHealthCheckList, error) + func (gce *Cloud) ListInstanceGroups(zone string) (*compute.InstanceGroupList, error) + func (gce *Cloud) ListInstancesInInstanceGroup(name string, zone string, state string) (*compute.InstanceGroupsListInstances, error) + func (gce *Cloud) ListRoutes(clusterName string) ([]*cloudprovider.Route, error) + func (gce *Cloud) ListSslCertificates() (*compute.SslCertificateList, error) + func (gce *Cloud) ListTargetHTTPProxies() (*compute.TargetHttpProxyList, error) + func (gce *Cloud) ListTargetHTTPSProxies() (*compute.TargetHttpsProxyList, error) + func (gce *Cloud) ListURLMaps() (*compute.UrlMapList, error) + func (gce *Cloud) LoadBalancer() (cloudprovider.LoadBalancer, bool) + func (gce *Cloud) Master(clusterName string) (string, error) + func (gce *Cloud) NodeAddresses(_ types.NodeName) ([]v1.NodeAddress, error) + func (gce *Cloud) ProviderName() string + func (gce *Cloud) RemoveInstancesFromInstanceGroup(name string, zone string, instanceNames []string) error + func (gce *Cloud) ReserveGlobalStaticIP(name, ipAddress string) (address *compute.Address, err error) + func (gce *Cloud) Routes() (cloudprovider.Routes, bool) + func (gce *Cloud) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string) + func (gce *Cloud) SetProxyForGlobalForwardingRule(fw *compute.ForwardingRule, targetProxyLink string) error + func (gce *Cloud) SetSslCertificateForTargetHTTPSProxy(proxy *compute.TargetHttpsProxy, sslCert *compute.SslCertificate) error + func (gce *Cloud) SetURLMapForTargetHTTPProxy(proxy *compute.TargetHttpProxy, urlMap *compute.UrlMap) error + func (gce *Cloud) SetURLMapForTargetHTTPSProxy(proxy *compute.TargetHttpsProxy, urlMap *compute.UrlMap) error + func (gce *Cloud) UpdateBackendService(bg *compute.BackendService) error + func (gce *Cloud) UpdateFirewall(name, desc string, sourceRanges netsets.IPNet, ports []int64, ...) error + func (gce *Cloud) UpdateHTTPHealthCheck(hc *compute.HttpHealthCheck) error + func (gce *Cloud) UpdateLoadBalancer(clusterName string, service *v1.Service, nodes []*v1.Node) error + func (gce *Cloud) UpdateURLMap(urlMap *compute.UrlMap) (*compute.UrlMap, error) + func (gce *Cloud) Zones() (cloudprovider.Zones, bool) + type Config struct + Global struct{ ... } + type DiskType string + type Disks interface + AttachDisk func(diskName string, nodeName types.NodeName, readOnly bool) error + CreateDisk func(name string, diskType string, zone string, sizeGb int64, ...) error + CreateSnapshot func(diskName string, zone string, snapshotName string, tags map[string]string) error + DeleteDisk func(diskToDelete string) error + DeleteSnapshot func(snapshotToDelete string) error + DescribeSnapshot func(snapshotToGet string) (status string, isCompleted bool, err error) + DetachDisk func(devicePath string, nodeName types.NodeName) error + DiskIsAttached func(diskName string, nodeName types.NodeName) (bool, error) + DisksAreAttached func(diskNames []string, nodeName types.NodeName) (map[string]bool, error) + FindSnapshot func(tags map[string]string) ([]string, []string, error) + GetAutoLabelsForPD func(name string, zone string) (map[string]string, error) Incompatible versions in this module v4.0.0+incompatible Jul 11, 2018 v4.0.0-beta+incompatible Jul 9, 2018