package cloud
import "github.com/oslokommune/okctl/pkg/cloud"
Package cloud provides access to AWS APIs
Index ¶
- func NewSession(region string, auth awsauth.Authenticator) (*session.Session, *awsauth.Credentials, error)
- func NewSessionFromEnv(region string) (*session.Session, error)
- type Provider
- func New(region string, a awsauth.Authenticator) (*Provider, error)
- func NewFromSession(region, principalARN string, sess *session.Session) (*Provider, error)
- type Services
- func (s *Services) ACM() acmiface.ACMAPI
- func (s *Services) CloudFormation() cloudformationiface.CloudFormationAPI
- func (s *Services) CloudFront() cloudfrontiface.CloudFrontAPI
- func (s *Services) CloudWatch() cloudwatchiface.CloudWatchAPI
- func (s *Services) CognitoIdentityProvider() cognitoidentityprovideriface.CognitoIdentityProviderAPI
- func (s *Services) DynamoDB() dynamodbiface.DynamoDBAPI
- func (s *Services) EC2() ec2iface.EC2API
- func (s *Services) ECR() ecriface.ECRAPI
- func (s *Services) EKS() eksiface.EKSAPI
- func (s *Services) ELBV2() elbv2iface.ELBV2API
- func (s *Services) IAM() iamiface.IAMAPI
- func (s *Services) PrincipalARN() string
- func (s *Services) Region() string
- func (s *Services) Route53() route53iface.Route53API
- func (s *Services) S3() s3iface.S3API
- func (s *Services) SSM() ssmiface.SSMAPI
- func (s *Services) SecretsManager() secretsmanageriface.SecretsManagerAPI
- func (s *Services) ServiceQuotas() servicequotasiface.ServiceQuotasAPI
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 ¶
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 ¶
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 ¶
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 ¶
func (s *Services) CognitoIdentityProvider() cognitoidentityprovideriface.CognitoIdentityProviderAPI
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 ¶
EC2 returns an interface to the AWS EC2 API
func (*Services) ECR ¶
ECR returns an interface to the ECR API
func (*Services) EKS ¶
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 ¶
IAM returns an interface to the IAM API
func (*Services) PrincipalARN ¶
PrincipalARN return the principal arn of the authenticated party
func (*Services) Region ¶
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 ¶
S3 returns an interface to the S3 API
func (*Services) SSM ¶
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 ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 38 packages
- Last checked
- 18 hours ago –
Tools for package owners.