instancegroup

package
v29.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 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 GoogleInstanceGroupService

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

func NewGoogleInstanceGroupService

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

func (GoogleInstanceGroupService) AddInstance

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

func (GoogleInstanceGroupService) Find

func (GoogleInstanceGroupService) FindByInstance

func (i GoogleInstanceGroupService) FindByInstance(vmLink string, zone string) (string, bool, error)

func (GoogleInstanceGroupService) List

func (GoogleInstanceGroupService) ListInstances

func (i GoogleInstanceGroupService) ListInstances(id string, zone string) ([]string, error)

func (GoogleInstanceGroupService) RemoveInstance

func (i GoogleInstanceGroupService) RemoveInstance(id string, vmLink string) error

type InstanceGroup

type InstanceGroup struct {
	Name       string
	Instances  []string
	SelfLink   string
	Zone       string
	Subnetwork string
}

type Service

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

Jump to

Keyboard shortcuts

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