Documentation ¶
Index ¶
- func GenerateELBName(clusterName string, elbName string) string
- func IsConflict(err error) bool
- func IsNotFound(err error) bool
- func IsSDKError(err error) (ok bool)
- func NewConflict(err error) error
- func NewNotFound(err error) error
- func ReasonForError(err error) int
- type ELBError
- type Service
- func (s *Service) DeleteLoadbalancers() error
- func (s *Service) GetAPIServerDNSName() (string, error)
- func (s *Service) ReconcileLoadbalancers() error
- func (s *Service) RegisterInstanceWithAPIServerELB(instanceID string) error
- func (s *Service) RegisterInstanceWithClassicELB(instanceID string, loadBalancer string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateELBName ¶
GenerateELBName generates a formatted ELB name
func IsConflict ¶
IsConflict returns true if the error was created by NewConflict.
func IsNotFound ¶
IsNotFound returns true if the error was created by NewNotFound.
func IsSDKError ¶
IsSDKError returns true if the error is of type awserr.Error.
func NewConflict ¶
NewConflict returns a new error which indicates that the request cannot be processed due to a conflict.
func NewNotFound ¶
NewNotFound returns a new error which indicates that the resource of the kind and the name was not found.
func ReasonForError ¶
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.
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 ¶
NewService returns a new service given the api clients.
func (*Service) DeleteLoadbalancers ¶
DeleteLoadbalancers deletes the load balancers for the given cluster.
func (*Service) GetAPIServerDNSName ¶
GetAPIServerDNSName returns the DNS name endpoint for the API server
func (*Service) ReconcileLoadbalancers ¶
ReconcileLoadbalancers reconciles the load balancers for the given cluster.
func (*Service) RegisterInstanceWithAPIServerELB ¶
RegisterInstanceWithAPIServerELB registers an instance with a classic ELB
Directories ¶
Path | Synopsis |
---|---|
Package mock_elbiface is a generated GoMock package.
|
Package mock_elbiface is a generated GoMock package. |