targetpool

package
v0.0.0-...-5b51137 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleTargetPoolService

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

func NewGoogleTargetPoolService

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

func (GoogleTargetPoolService) AddInstance

func (t GoogleTargetPoolService) AddInstance(id string, vmLink string) error

func (GoogleTargetPoolService) Find

func (t GoogleTargetPoolService) Find(id string, region string) (TargetPool, bool, error)

func (GoogleTargetPoolService) FindByInstance

func (t GoogleTargetPoolService) FindByInstance(vmLink string, region string) (string, bool, error)

func (GoogleTargetPoolService) List

func (t GoogleTargetPoolService) List(region string) ([]TargetPool, error)

func (GoogleTargetPoolService) RemoveInstance

func (t GoogleTargetPoolService) RemoveInstance(id string, vmLink string) error

type Service

type Service interface {
	AddInstance(id string, vmLink string) error
	Find(id string, region string) (TargetPool, bool, error)
	FindByInstance(vmLink string, region string) (string, bool, error)
	List(region string) ([]TargetPool, error)
	RemoveInstance(id string, vmLink string) error
}

type TargetPool

type TargetPool struct {
	Name      string
	Instances []string
	SelfLink  string
	Region    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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