backendservice

package
v25.2.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	InstanceGroupLink string
	InstanceGroupID   string
	InstanceGroupZone string
}

func FromComputeBackends

func FromComputeBackends(b []*compute.Backend) []Backend

FromComputeBackends returns a list of Backends that make working with associated Instance Groups simpler. If zone is not nill, only backends with matching zones will be returned.

type BackendService

type BackendService struct {
	Name     string
	Backends []Backend
	SelfLink string
}

type GoogleBackendServiceService

type GoogleBackendServiceService struct {
	// contains filtered or unexported fields
}

func NewGoogleBackendServiceService

func NewGoogleBackendServiceService(
	project string,
	computeService *compute.Service,
	operationService operation.Service,
	logger boshlog.Logger,
) GoogleBackendServiceService

func (GoogleBackendServiceService) AddInstance

func (i GoogleBackendServiceService) AddInstance(id, vmLink string) error

AddInstance will add an instance to a Backend Service. A Backend Service may have more than one backend/instance group associated with it. In that case, the instance will be added to each backend/instance group that is in the same zone as the instance.

func (GoogleBackendServiceService) RemoveInstance

func (i GoogleBackendServiceService) RemoveInstance(vmLink string) error

RemoveInstance will remove an instance from all associated Backend Services.

type Service

type Service interface {
	AddInstance(id, instanceId string) error
	RemoveInstance(vmLink string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL