Documentation ¶
Index ¶
- func ELBName(s scope.ELBScope) (string, error)
- func GenerateELBName(clusterName string) (string, error)
- func IsAccessDenied(err error) bool
- func IsConflict(err error) bool
- func IsNotFound(err error) bool
- func IsSDKError(err error) (ok bool)
- func NewConflict(msg string) error
- func NewNotFound(msg string) error
- func ReasonForError(err error) int
- type ELBError
- type Service
- func (s *Service) DeleteLoadbalancers() error
- func (s *Service) DeregisterInstanceFromAPIServerELB(i *infrav1.Instance) error
- func (s *Service) IsInstanceRegisteredWithAPIServerELB(i *infrav1.Instance) (bool, error)
- func (s *Service) ReconcileLoadbalancers() error
- func (s *Service) RegisterInstanceWithAPIServerELB(i *infrav1.Instance) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ELBName ¶ added in v1.2.0
ELBName returns the user-defined API Server ELB name, or a generated default if the user has not defined the ELB name.
func GenerateELBName ¶
GenerateELBName generates a formatted ELB name via either concatenating the cluster name to the "-apiserver" suffix or computing a hash for clusters with names above 32 characters.
WARNING If this function's output is changed, a controller using the new function will fail to generate the load balancer of an existing cluster whose load balancer name was generated using the old function.
func IsAccessDenied ¶ added in v0.5.4
IsAccessDenied returns true if the error is AccessDenied.
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 an error which indicates that the request cannot be processed due to a conflict.
func NewNotFound ¶
NewNotFound returns an 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 { EC2Client ec2iface.EC2API ELBClient elbiface.ELBAPI ResourceTaggingClient resourcegroupstaggingapiiface.ResourceGroupsTaggingAPIAPI // 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) DeregisterInstanceFromAPIServerELB ¶ added in v0.5.4
DeregisterInstanceFromAPIServerELB de-registers an instance from a classic ELB.
func (*Service) IsInstanceRegisteredWithAPIServerELB ¶ added in v1.4.0
IsInstanceRegisteredWithAPIServerELB returns true if the instance is already registered with the APIServer ELB.
func (*Service) ReconcileLoadbalancers ¶
ReconcileLoadbalancers reconciles the load balancers for the given cluster.
Directories ¶
Path | Synopsis |
---|---|
Package mock_elbiface is a generated GoMock package.
|
Package mock_elbiface is a generated GoMock package. |
Package mock_resourcegroupstaggingapiiface is a generated GoMock package.
|
Package mock_resourcegroupstaggingapiiface is a generated GoMock package. |