scope

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceQuotasClient

func NewServiceQuotasClient(session aws.Session, arn string, target runtime.Object) *servicequotas.ServiceQuotas

NewServiceQuotasClient creates a new ServiceQuotas API client for a given session

Types

type AWSClients

type AWSClients struct {
	ServiceQuotas *servicequotas.ServiceQuotas
}

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 added in v0.3.0

func (s *ClusterScope) AccountId() string

AccountId returns the AWS account id from cluster object.

func (*ClusterScope) Cluster

func (s *ClusterScope) Cluster() runtime.Object

Cluster returns the AWS infrastructure cluster object.

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) ManagementAccountId added in v0.4.0

func (s *ClusterScope) ManagementAccountId() string

ManagementAccountId returns the AWS account id from management cluster.

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
	ManagementAccountId string
	ARN                 string
	Cluster             runtime.Object
	ClusterName         string
	ClusterNamespace    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

type ServiceQuotasScope

type ServiceQuotasScope interface {
	aws.ClusterScoper
}

ServiceQuotasScope is a scope for use with the ServiceQuotas reconciling service in cluster

Jump to

Keyboard shortcuts

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