Documentation
¶
Index ¶
- func NewASGClient(session aws.Session, arn string) *autoscaling.AutoScaling
- type ASGScope
- type AWSClients
- type ClusterScope
- func (s *ClusterScope) ARN() string
- func (s *ClusterScope) AccountID() string
- func (s *ClusterScope) ClusterName() string
- func (s *ClusterScope) ClusterNamespace() string
- func (s *ClusterScope) Installation() string
- func (s *ClusterScope) Region() string
- func (s *ClusterScope) Session() awsclient.ConfigProvider
- type ClusterScopeParams
- type ServiceEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewASGClient ¶
func NewASGClient(session aws.Session, arn string) *autoscaling.AutoScaling
NewASGClient creates a new ASG API client for a given session
Types ¶
type ASGScope ¶
type ASGScope interface { aws.ClusterScoper }
ASGScope is a scope for use with the ASG reconciling service in cluster
type AWSClients ¶
type AWSClients struct {
ASG *autoscaling.AutoScaling
}
AWSClients contains all the aws clients used by the scopes
type ClusterScope ¶
ClusterScope defines the basic context for an actuator to operate upon.
func NewClusterScope ¶
func NewClusterScope(params ClusterScopeParams) (*ClusterScope, error)
NewClusterScope creates a new Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*ClusterScope) ARN ¶
func (s *ClusterScope) ARN() string
ARN returns the AWS SDK assumed role.
func (*ClusterScope) AccountID ¶
func (s *ClusterScope) AccountID() string
AccountID returns the account ID of the assumed role.
func (*ClusterScope) ClusterName ¶
func (s *ClusterScope) ClusterName() string
ClusterName returns the name of AWS infrastructure cluster object.
func (*ClusterScope) ClusterNamespace ¶
func (s *ClusterScope) ClusterNamespace() string
ClusterNameSpace returns the namespace of AWS infrastructure cluster object.
func (*ClusterScope) Installation ¶
func (s *ClusterScope) Installation() string
Installation returns the name of the installation where the cluster object is located.
func (*ClusterScope) Region ¶
func (s *ClusterScope) Region() string
Region returns the region of the AWS infrastructure cluster object.
func (*ClusterScope) Session ¶
func (s *ClusterScope) Session() awsclient.ConfigProvider
Session returns the AWS SDK session.
type ClusterScopeParams ¶
type ClusterScopeParams struct { AccountID string ARN string ClusterName string ClusterNamespace string ConfigName string Installation string Region string Logger logr.Logger Session awsclient.ConfigProvider }
ClusterScopeParams defines the input parameters used to create a new Scope.
type ServiceEndpoint ¶
ServiceEndpoint defines a tuple containing AWS Service resolution information