Documentation ¶
Overview ¶
Package gce_cloud is an implementation of Interface, TCPLoadBalancer and Instances for Google Compute Engine.
Index ¶
- type GCEAffinityType
- type GCECloud
- func (gce *GCECloud) AttachDisk(diskName string, readOnly bool) error
- func (gce *GCECloud) Clusters() (cloudprovider.Clusters, bool)
- func (gce *GCECloud) CreateTCPLoadBalancer(name, region string, externalIP net.IP, port int, hosts []string, ...) (string, error)
- func (gce *GCECloud) DeleteTCPLoadBalancer(name, region string) error
- func (gce *GCECloud) DetachDisk(devicePath string) error
- func (gce *GCECloud) ExternalID(instance string) (string, error)
- func (gce *GCECloud) GetNodeResources(name string) (*api.NodeResources, error)
- func (gce *GCECloud) GetZone() (cloudprovider.Zone, 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) Master(clusterName string) (string, error)
- func (gce *GCECloud) NodeAddresses(instance string) ([]api.NodeAddress, error)
- func (gce *GCECloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
- func (gce *GCECloud) TCPLoadBalancerExists(name, region string) (bool, error)
- func (gce *GCECloud) UpdateTCPLoadBalancer(name, region string, hosts []string) error
- func (gce *GCECloud) Zones() (cloudprovider.Zones, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCEAffinityType ¶
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) CreateTCPLoadBalancer ¶
func (gce *GCECloud) CreateTCPLoadBalancer(name, region string, externalIP net.IP, port int, hosts []string, affinityType api.AffinityType) (string, error)
CreateTCPLoadBalancer is an implementation of TCPLoadBalancer.CreateTCPLoadBalancer.
func (*GCECloud) DeleteTCPLoadBalancer ¶
DeleteTCPLoadBalancer is an implementation of TCPLoadBalancer.DeleteTCPLoadBalancer.
func (*GCECloud) DetachDisk ¶
func (*GCECloud) ExternalID ¶
ExternalID returns the cloud provider ID of the specified instance.
func (*GCECloud) GetNodeResources ¶
func (gce *GCECloud) GetNodeResources(name string) (*api.NodeResources, error)
func (*GCECloud) Instances ¶
func (gce *GCECloud) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for Google Compute Engine.
func (*GCECloud) ListClusters ¶
func (*GCECloud) NodeAddresses ¶
func (gce *GCECloud) NodeAddresses(instance string) ([]api.NodeAddress, error)
NodeAddresses is an implementation of Instances.NodeAddresses.
func (*GCECloud) TCPLoadBalancer ¶
func (gce *GCECloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
TCPLoadBalancer returns an implementation of TCPLoadBalancer for Google Compute Engine.
func (*GCECloud) TCPLoadBalancerExists ¶
TCPLoadBalancerExists is an implementation of TCPLoadBalancer.TCPLoadBalancerExists.
func (*GCECloud) UpdateTCPLoadBalancer ¶
UpdateTCPLoadBalancer is an implementation of TCPLoadBalancer.UpdateTCPLoadBalancer.