package cloud

import "github.com/oslokommune/okctl/pkg/cloud"

Package cloud provides access to AWS APIs

Index

Functions

func NewSession

func NewSession(region string, auth awsauth.Authenticator) (*session.Session, *awsauth.Credentials, error)

NewSession returns an AWS session using the provided authenticator

func NewSessionFromEnv

func NewSessionFromEnv(region string) (*session.Session, error)

NewSessionFromEnv returns an initialised session

Types

type Provider

type Provider struct {
	Provider v1alpha1.CloudProvider
}

Provider stores state required for interacting with the AWS API

func New

func New(region string, a awsauth.Authenticator) (*Provider, error)

New returns a new AWS API provider and builds a session from the provided authenticator

func NewFromSession

func NewFromSession(region, principalARN string, sess *session.Session) (*Provider, error)

NewFromSession returns a new AWS API provider and builds a session from the provided authenticator

type Services

type Services struct {
	// contains filtered or unexported fields
}

Services stores access to the various AWS APIs

func (*Services) ACM

func (s *Services) ACM() acmiface.ACMAPI

ACM returns an interface to the AWS ACM API

func (*Services) CloudFormation

func (s *Services) CloudFormation() cloudformationiface.CloudFormationAPI

CloudFormation returns an interface to the AWS CloudFormation API

func (*Services) CloudFront

func (s *Services) CloudFront() cloudfrontiface.CloudFrontAPI

CloudFront returns an interface to the AWS CloudFront API

func (*Services) CloudWatch

func (s *Services) CloudWatch() cloudwatchiface.CloudWatchAPI

CloudWatch returns an interface to the CloudWatch API

func (*Services) CognitoIdentityProvider

CognitoIdentityProvider returns an interface to the AWS Cognito API

func (*Services) DynamoDB

func (s *Services) DynamoDB() dynamodbiface.DynamoDBAPI

DynamoDB returns an interface to the DynamoDB API

func (*Services) EC2

func (s *Services) EC2() ec2iface.EC2API

EC2 returns an interface to the AWS EC2 API

func (*Services) ECR

func (s *Services) ECR() ecriface.ECRAPI

ECR returns an interface to the ECR API

func (*Services) EKS

func (s *Services) EKS() eksiface.EKSAPI

EKS returns an interface to the AWS EKS API

func (*Services) ELBV2

func (s *Services) ELBV2() elbv2iface.ELBV2API

ELBV2 returns an interface to the AWS ELBV2 API

func (*Services) IAM

func (s *Services) IAM() iamiface.IAMAPI

IAM returns an interface to the IAM API

func (*Services) PrincipalARN

func (s *Services) PrincipalARN() string

PrincipalARN return the principal arn of the authenticated party

func (*Services) Region

func (s *Services) Region() string

Region returns the configured AWS region

func (*Services) Route53

func (s *Services) Route53() route53iface.Route53API

Route53 returns an interface to the AWS Route53 API

func (*Services) S3

func (s *Services) S3() s3iface.S3API

S3 returns an interface to the S3 API

func (*Services) SSM

func (s *Services) SSM() ssmiface.SSMAPI

SSM returns an interface to the AWS SSM API

func (*Services) SecretsManager

func (s *Services) SecretsManager() secretsmanageriface.SecretsManagerAPI

SecretsManager returns an interface to the SecretsManager API

func (*Services) ServiceQuotas

func (s *Services) ServiceQuotas() servicequotasiface.ServiceQuotasAPI

ServiceQuotas returns an interface to AWS ServiceQuota API

Source Files

provider.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
38 packages
Last checked
18 hours ago

Tools for package owners.