elb

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateELBName

func GenerateELBName(clusterName string, elbName string) string

GenerateELBName generates a formatted ELB name

func IsConflict

func IsConflict(err error) bool

IsConflict returns true if the error was created by NewConflict.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the error was created by NewNotFound.

func IsSDKError

func IsSDKError(err error) (ok bool)

IsSDKError returns true if the error is of type awserr.Error.

func NewConflict

func NewConflict(err error) error

NewConflict returns a new error which indicates that the request cannot be processed due to a conflict.

func NewNotFound

func NewNotFound(err error) error

NewNotFound returns a new error which indicates that the resource of the kind and the name was not found.

func ReasonForError

func ReasonForError(err error) int

ReasonForError returns the HTTP status for a particular error.

Types

type ELBError

type ELBError struct {
	Code int
	// contains filtered or unexported fields
}

ELBError is an error exposed to users of this library.

func (*ELBError) Error

func (e *ELBError) Error() string

Error implements the Error interface.

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 ec2 client.

func NewService

func NewService(scope *scope.ClusterScope) *Service

NewService returns a new service given the api clients.

func (*Service) DeleteLoadbalancers

func (s *Service) DeleteLoadbalancers() error

DeleteLoadbalancers deletes the load balancers for the given cluster.

func (*Service) GetAPIServerDNSName

func (s *Service) GetAPIServerDNSName() (string, error)

GetAPIServerDNSName returns the DNS name endpoint for the API server

func (*Service) ReconcileLoadbalancers

func (s *Service) ReconcileLoadbalancers() error

ReconcileLoadbalancers reconciles the load balancers for the given cluster.

func (*Service) RegisterInstanceWithAPIServerELB

func (s *Service) RegisterInstanceWithAPIServerELB(i *infrav1.Instance) error

RegisterInstanceWithAPIServerELB registers an instance with a classic ELB

func (*Service) RegisterInstanceWithClassicELB

func (s *Service) RegisterInstanceWithClassicELB(instanceID string, loadBalancer string) error

RegisterInstanceWithClassicELB registers an instance with a classic ELB

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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