compute

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIServerLoadBalancerProtocol            = "TCP"
	APIServerLoadBalancerHealthCheckProtocol = "SSL"
	APIServerLoadBalancerProxyHeader         = "NONE"
	APIServerLoadBalancerScheme              = "EXTERNAL"
	APIServerLoadBalancerIPVersion           = "IPV4"
	APIServerLoadBalancerBackendPortName     = "apiserver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the gcp client.

func NewService

func NewService(scope *scope.ClusterScope) *Service

NewService returns a new service given the gcp api client.

func (*Service) CreateInstance

func (s *Service) CreateInstance(scope *scope.MachineScope) (*compute.Instance, error)

CreateInstance runs a GCE instance.

func (*Service) DeleteFirewalls

func (s *Service) DeleteFirewalls() error

func (*Service) DeleteInstanceGroups

func (s *Service) DeleteInstanceGroups() error

func (*Service) DeleteLoadbalancers

func (s *Service) DeleteLoadbalancers() error

func (*Service) DeleteNetwork

func (s *Service) DeleteNetwork() error

func (*Service) EnsureInstanceGroupMember

func (s *Service) EnsureInstanceGroupMember(zone, name string, i *compute.Instance) error

func (*Service) GetInstanceGroupMembers

func (s *Service) GetInstanceGroupMembers(zone, name string) ([]*compute.InstanceWithNamedPorts, error)

func (*Service) GetOrCreateInstanceGroup

func (s *Service) GetOrCreateInstanceGroup(zone, name string) (*compute.InstanceGroup, error)

func (*Service) GetZones

func (s *Service) GetZones() ([]string, error)

func (*Service) InstanceIfExists

func (s *Service) InstanceIfExists(scope *scope.MachineScope) (*compute.Instance, error)

InstanceIfExists returns the existing instance or nothing if it doesn't exist.

func (*Service) ReconcileFirewalls

func (s *Service) ReconcileFirewalls() error

func (*Service) ReconcileInstanceGroups

func (s *Service) ReconcileInstanceGroups() error

func (*Service) ReconcileLoadbalancers

func (s *Service) ReconcileLoadbalancers() error

ReconcileLoadbalancers reconciles the api server load balancer.

func (*Service) ReconcileNetwork

func (s *Service) ReconcileNetwork() error

InstanceIfExists returns the existing instance or nothing if it doesn't exist.

func (*Service) TerminateInstanceAndWait

func (s *Service) TerminateInstanceAndWait(scope *scope.MachineScope) error

func (*Service) UpdateBackendServices

func (s *Service) UpdateBackendServices() error

Jump to

Keyboard shortcuts

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