scope

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoute53Client

func NewRoute53Client(session cloud.Session, arn string, target runtime.Object) *route53.Route53

NewRoute53Client creates a new Route53 API client for a given session

Types

type AWSClients

type AWSClients struct {
	Route53 *route53.Route53
}

AWSClients contains all the aws clients used by the scopes

type ClusterScope

type ClusterScope struct {
	AWSCluster *infrav1.AWSCluster

	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) APIEndpoint

func (s *ClusterScope) APIEndpoint() string

APIEndpoint returns the AWS infrastructure Kubernetes API endpoint.

func (*ClusterScope) ARN

func (s *ClusterScope) ARN() string

ARN returns the AWS SDK assumed role. Used for creating workload cluster client.

func (*ClusterScope) BaseDomain

func (s *ClusterScope) BaseDomain() string

BaseDomain returns the workload cluster basedomain.

func (*ClusterScope) InfraCluster

func (s *ClusterScope) InfraCluster() cloud.ClusterObject

InfraCluster returns the AWS infrastructure cluster or control plane object.

func (*ClusterScope) Name

func (s *ClusterScope) Name() string

Name returns the AWS infrastructure cluster name.

func (*ClusterScope) Region

func (s *ClusterScope) Region() string

Region returns the cluster region.

func (*ClusterScope) Session

func (s *ClusterScope) Session() awsclient.ConfigProvider

Session returns the AWS SDK session. Used for creating workload cluster client.

type ClusterScopeParams

type ClusterScopeParams struct {
	ARN        string
	AWSCluster *infrav1.AWSCluster
	BaseDomain string
	Logger     logr.Logger
	Session    awsclient.ConfigProvider
}

ClusterScopeParams defines the input parameters used to create a new Scope.

type ManagementClusterScope

type ManagementClusterScope struct {
	AWSCluster *infrav1.AWSCluster

	logr.Logger
	// contains filtered or unexported fields
}

ManagementClusterScope defines the basic context for an actuator to operate upon.

func NewManagementClusterScope

func NewManagementClusterScope(params ManagementClusterScopeParams) (*ManagementClusterScope, error)

NewManagementClusterScope creates a new Scope from the supplied parameters. This is meant to be called for each reconcile iteration.

func (*ManagementClusterScope) ARN

func (s *ManagementClusterScope) ARN() string

ARN returns the AWS SDK assumed role. Used for creating workload cluster client.

func (*ManagementClusterScope) BaseDomain

func (s *ManagementClusterScope) BaseDomain() string

BaseDomain returns the management cluster basedomain.

func (*ManagementClusterScope) InfraCluster

func (s *ManagementClusterScope) InfraCluster() cloud.ClusterObject

InfraCluster returns the AWS infrastructure cluster or control plane object.

func (*ManagementClusterScope) Session

Session returns the AWS SDK session. Used for creating workload cluster client.

type ManagementClusterScopeParams

type ManagementClusterScopeParams struct {
	ARN        string
	AWSCluster *infrav1.AWSCluster
	BaseDomain string
	Logger     logr.Logger
	Session    awsclient.ConfigProvider
}

ManagementClusterScopeParams defines the input parameters used to create a new Scope.

type ManagementRoute53Scope

type ManagementRoute53Scope interface {
	cloud.ManagementClusterScoper
}

ManagementRoute53Scope is a scope for use with the Route53 reconciling service in management cluster

type Route53Scope

type Route53Scope interface {
	cloud.ClusterScoper
}

Route53Scope is a scope for use with the Route53 reconciling service in workload cluster

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