Documentation
¶
Overview ¶
Package gce_cloud is an implementation of Interface, TCPLoadBalancer and Instances for Google Compute Engine.
Index ¶
- Constants
- type Config
- type GCEAffinityType
- type GCECloud
- func (gce *GCECloud) AddSSHKeyToAllInstances(user string, keyData []byte) error
- func (gce *GCECloud) AttachDisk(diskName string, readOnly bool) error
- func (gce *GCECloud) Clusters() (cloudprovider.Clusters, bool)
- func (gce *GCECloud) CreateRoute(route *cloudprovider.Route) error
- func (gce *GCECloud) CreateTCPLoadBalancer(name, region string, externalIP net.IP, ports []*api.ServicePort, ...) (*api.LoadBalancerStatus, error)
- func (gce *GCECloud) DeleteRoute(name string) error
- func (gce *GCECloud) DetachDisk(devicePath string) error
- func (gce *GCECloud) EnsureTCPLoadBalancerDeleted(name, region string) error
- func (gce *GCECloud) ExternalID(instance string) (string, error)
- func (gce *GCECloud) GetNodeResources(name string) (*api.NodeResources, error)
- func (gce *GCECloud) GetTCPLoadBalancer(name, region string) (*api.LoadBalancerStatus, bool, error)
- func (gce *GCECloud) GetZone() (cloudprovider.Zone, error)
- func (gce *GCECloud) InstanceID(instance string) (string, error)
- func (gce *GCECloud) Instances() (cloudprovider.Instances, bool)
- func (gce *GCECloud) List(filter string) ([]string, error)
- func (gce *GCECloud) ListClusters() ([]string, error)
- func (gce *GCECloud) ListRoutes(filter string) ([]*cloudprovider.Route, error)
- func (gce *GCECloud) Master(clusterName string) (string, error)
- func (gce *GCECloud) NodeAddresses(_ string) ([]api.NodeAddress, error)
- func (gce *GCECloud) ProviderName() string
- func (gce *GCECloud) Routes() (cloudprovider.Routes, bool)
- func (gce *GCECloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
- func (gce *GCECloud) UpdateTCPLoadBalancer(name, region string, hosts []string) error
- func (gce *GCECloud) Zones() (cloudprovider.Zones, bool)
Constants ¶
const ( ProviderName = "gce" EXTERNAL_IP_METADATA_URL = "http://169.254.169.254/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" INTERNAL_IP_METADATA_URL = "http://169.254.169.254/computeMetadata/v1/instance/network-interfaces/0/ip" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCEAffinityType ¶ added in v0.8.2
type GCEAffinityType string
Session Affinity Type string
const ( // AffinityTypeNone - no session affinity. GCEAffinityTypeNone GCEAffinityType = "None" // AffinityTypeClientIP is the Client IP based. GCEAffinityTypeClientIP GCEAffinityType = "CLIENT_IP" // AffinityTypeClientIP is the Client IP based. GCEAffinityTypeClientIPProto GCEAffinityType = "CLIENT_IP_PROTO" )
type GCECloud ¶
type GCECloud struct {
// contains filtered or unexported fields
}
GCECloud is an implementation of Interface, TCPLoadBalancer and Instances for Google Compute Engine.
func (*GCECloud) AddSSHKeyToAllInstances ¶ added in v0.19.0
func (*GCECloud) Clusters ¶ added in v0.5.1
func (gce *GCECloud) Clusters() (cloudprovider.Clusters, bool)
func (*GCECloud) CreateRoute ¶ added in v0.18.0
func (gce *GCECloud) CreateRoute(route *cloudprovider.Route) error
func (*GCECloud) CreateTCPLoadBalancer ¶
func (gce *GCECloud) CreateTCPLoadBalancer(name, region string, externalIP net.IP, ports []*api.ServicePort, hosts []string, affinityType api.ServiceAffinity) (*api.LoadBalancerStatus, error)
CreateTCPLoadBalancer is an implementation of TCPLoadBalancer.CreateTCPLoadBalancer. TODO(a-robinson): Don't just ignore specified IP addresses. Check if they're owned by the project and available to be used, and use them if they are.
func (*GCECloud) DeleteRoute ¶ added in v0.18.0
func (*GCECloud) DetachDisk ¶
func (*GCECloud) EnsureTCPLoadBalancerDeleted ¶ added in v0.18.0
EnsureTCPLoadBalancerDeleted is an implementation of TCPLoadBalancer.EnsureTCPLoadBalancerDeleted.
func (*GCECloud) ExternalID ¶ added in v0.12.0
ExternalID returns the cloud provider ID of the specified instance (deprecated).
func (*GCECloud) GetNodeResources ¶
func (gce *GCECloud) GetNodeResources(name string) (*api.NodeResources, error)
func (*GCECloud) GetTCPLoadBalancer ¶ added in v0.17.0
GetTCPLoadBalancer is an implementation of TCPLoadBalancer.GetTCPLoadBalancer
func (*GCECloud) InstanceID ¶ added in v0.18.0
InstanceID returns the cloud provider ID of the specified instance.
func (*GCECloud) Instances ¶
func (gce *GCECloud) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for Google Compute Engine.
func (*GCECloud) ListClusters ¶ added in v0.5.1
func (*GCECloud) ListRoutes ¶ added in v0.18.0
func (gce *GCECloud) ListRoutes(filter string) ([]*cloudprovider.Route, error)
func (*GCECloud) NodeAddresses ¶ added in v0.13.1
func (gce *GCECloud) NodeAddresses(_ string) ([]api.NodeAddress, error)
NodeAddresses is an implementation of Instances.NodeAddresses.
func (*GCECloud) ProviderName ¶ added in v0.18.0
ProviderName returns the cloud provider ID.
func (*GCECloud) Routes ¶ added in v0.18.0
func (gce *GCECloud) Routes() (cloudprovider.Routes, bool)
Routes returns an implementation of Routes for Google Compute Engine.
func (*GCECloud) TCPLoadBalancer ¶
func (gce *GCECloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
TCPLoadBalancer returns an implementation of TCPLoadBalancer for Google Compute Engine.
func (*GCECloud) UpdateTCPLoadBalancer ¶
UpdateTCPLoadBalancer is an implementation of TCPLoadBalancer.UpdateTCPLoadBalancer.