scope

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

type ClusterScope struct {
	logr.Logger
	// contains filtered or unexported fields
}

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

type ServiceEndpoint struct {
	ServiceID     string
	URL           string
	SigningRegion string
}

ServiceEndpoint defines a tuple containing AWS Service resolution information

Jump to

Keyboard shortcuts

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