Documentation ¶
Index ¶
- type GCEClient
- func (gce *GCEClient) AddInstanceToTargetPool(region, name string, toAdd []*compute.InstanceReference) error
- func (gce *GCEClient) AddInstancesToInstanceGroup(name, zone string, instances []*compute.InstanceReference) error
- func (gce *GCEClient) CreateBackendService(name string, port string, zones []string) error
- func (gce *GCEClient) CreateExternalIP(region, name string) (*compute.Address, error)
- func (gce *GCEClient) CreateFirewall(name string, network string, port string, tags []string) error
- func (gce *GCEClient) CreateForwardingRule(region, name, address, port string) (*compute.ForwardingRule, error)
- func (gce *GCEClient) CreateHealthCheck(name string, port string) error
- func (gce *GCEClient) CreateInstanceGroup(project, zone, name string) (*compute.InstanceGroup, error)
- func (gce *GCEClient) CreateTargetPool(region, name string, instances []string) (*compute.TargetPool, error)
- func (gce *GCEClient) DeleteInstanceFromTargetPool(region, name string, toDel []*compute.InstanceReference) error
- func (gce *GCEClient) DeleteInstanceGroup(project, zone, name string) error
- func (gce *GCEClient) GetAvailableZones() (*compute.ZoneList, error)
- func (gce *GCEClient) GetBackendService(name string) (*compute.BackendService, error)
- func (gce *GCEClient) GetExternalIP(region, name string) (*compute.Address, error)
- func (gce *GCEClient) GetForwardingRule(region, name string) (*compute.ForwardingRule, error)
- func (gce *GCEClient) GetHealthCheck(name, port string) (*compute.HealthCheck, error)
- func (gce *GCEClient) GetInstanceGroup(project, zone, name string) (*compute.InstanceGroup, error)
- func (gce *GCEClient) GetTargetPool(region, name string) (*compute.TargetPool, error)
- func (gce *GCEClient) ListInstancesInInstanceGroupForZone(name string, zone string) (*compute.InstanceGroupsListInstances, error)
- func (gce *GCEClient) ListInstancesInZone(zone string, tags, labels []string) (*compute.InstanceList, error)
- func (gce *GCEClient) ListZonesInRegion(project, region string) ([]string, error)
- func (gce *GCEClient) RemoveBackendService(name string) error
- func (gce *GCEClient) RemoveExternalIP(name, region string) error
- func (gce *GCEClient) RemoveFirewall(name string) error
- func (gce *GCEClient) RemoveForwardingRule(name, region string) error
- func (gce *GCEClient) RemoveHealthCheck(name string) error
- func (gce *GCEClient) RemoveInstancesFromInstanceGroup(name, zone string, instances []*compute.InstanceReference) error
- func (gce *GCEClient) RemoveTargetPool(name, region string) error
- func (gce *GCEClient) UpdateBackendService(name string, port string, zones []string) error
- func (gce *GCEClient) UpdateFirewall(name string, network string, port string, tags []string) error
- func (gce *GCEClient) UpdateHealthCheck(name string, port string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCEClient ¶
type GCEClient struct {
// contains filtered or unexported fields
}
GCEClient is a placeholder for GCE stuff.
func CreateGCECloud ¶
CreateGCECloud creates a new instance of GCECloud.
func (*GCEClient) AddInstanceToTargetPool ¶
func (gce *GCEClient) AddInstanceToTargetPool(region, name string, toAdd []*compute.InstanceReference) error
AddInstanceToTargetPool adds instances to the targetpool
func (*GCEClient) AddInstancesToInstanceGroup ¶
func (gce *GCEClient) AddInstancesToInstanceGroup(name, zone string, instances []*compute.InstanceReference) error
AddInstancesToInstanceGroup adds given instance to an Instance Group
func (*GCEClient) CreateBackendService ¶
CreateBackendService creates the given BackendService.
func (*GCEClient) CreateExternalIP ¶
CreateExternalIP creates a new external IP to be used with LB
func (*GCEClient) CreateFirewall ¶
CreateFirewall creates a global firewall rule
func (*GCEClient) CreateForwardingRule ¶
func (gce *GCEClient) CreateForwardingRule(region, name, address, port string) (*compute.ForwardingRule, error)
CreateForwardingRule creates and returns a GlobalForwardingRule that points to the given TargetHttpProxy.
func (*GCEClient) CreateHealthCheck ¶
CreateHealthCheck creates the given HttpHealthCheck.
func (*GCEClient) CreateInstanceGroup ¶
func (gce *GCEClient) CreateInstanceGroup(project, zone, name string) (*compute.InstanceGroup, error)
CreateInstanceGroup returns an instance group by name
func (*GCEClient) CreateTargetPool ¶
func (gce *GCEClient) CreateTargetPool(region, name string, instances []string) (*compute.TargetPool, error)
CreateTargetPool creates a targetpool
func (*GCEClient) DeleteInstanceFromTargetPool ¶
func (gce *GCEClient) DeleteInstanceFromTargetPool(region, name string, toDel []*compute.InstanceReference) error
DeleteInstanceFromTargetPool deletes instances from the targetpool
func (*GCEClient) DeleteInstanceGroup ¶
DeleteInstanceGroup returns an instance group by name
func (*GCEClient) GetAvailableZones ¶
GetAvailableZones returns all available zones for this project
func (*GCEClient) GetBackendService ¶
func (gce *GCEClient) GetBackendService(name string) (*compute.BackendService, error)
GetBackendService retrieves a backend by name.
func (*GCEClient) GetExternalIP ¶
GetExternalIP confirms that the named External IP exists
func (*GCEClient) GetForwardingRule ¶
func (gce *GCEClient) GetForwardingRule(region, name string) (*compute.ForwardingRule, error)
func (*GCEClient) GetHealthCheck ¶
func (gce *GCEClient) GetHealthCheck(name, port string) (*compute.HealthCheck, error)
healthcheck management GetHealthCheck returns the given HttpHealthCheck by name.
func (*GCEClient) GetInstanceGroup ¶
func (gce *GCEClient) GetInstanceGroup(project, zone, name string) (*compute.InstanceGroup, error)
GetInstanceGroup returns an instance group by name
func (*GCEClient) GetTargetPool ¶
func (gce *GCEClient) GetTargetPool(region, name string) (*compute.TargetPool, error)
GetTargetPool gets the list of instances in a targetpool
func (*GCEClient) ListInstancesInInstanceGroupForZone ¶
func (gce *GCEClient) ListInstancesInInstanceGroupForZone(name string, zone string) (*compute.InstanceGroupsListInstances, error)
ListInstancesInInstanceGroupForZone lists all the instances in a given instance group for the given zone.
func (*GCEClient) ListInstancesInZone ¶
func (gce *GCEClient) ListInstancesInZone(zone string, tags, labels []string) (*compute.InstanceList, error)
ListInstancesInZone returns all instances in a zone
func (*GCEClient) ListZonesInRegion ¶
ListZonesInRegion gets a list of zones in a given region
func (*GCEClient) RemoveBackendService ¶
RemoveBackendService deletes the given BackendService by name.
func (*GCEClient) RemoveExternalIP ¶
RemoveExternalIP deletes the ExternalIP by name.
func (*GCEClient) RemoveFirewall ¶
RemoveFirewall removes a global firewall rule
func (*GCEClient) RemoveForwardingRule ¶
RemoveForwardingRule deletes the GlobalForwardingRule by name.
func (*GCEClient) RemoveHealthCheck ¶
RemoveHealthCheck deletes the given HttpHealthCheck by name.
func (*GCEClient) RemoveInstancesFromInstanceGroup ¶
func (gce *GCEClient) RemoveInstancesFromInstanceGroup(name, zone string, instances []*compute.InstanceReference) error
RemoveInstancesFromInstanceGroup adds given instance to an Instance Group
func (*GCEClient) RemoveTargetPool ¶
RemoveTargetPool deletes the TargetPool by name.
func (*GCEClient) UpdateBackendService ¶
UpdateBackendService applies the given BackendService as an update to an existing service.
func (*GCEClient) UpdateFirewall ¶
UpdateFirewall updates a global firewall rule