Documentation ¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func NewAwsV2(region string) (aws.Config, error)
- func NewAwsV3(region, accessKeyID, secretAccessKey, sessionToken string) (aws.Config, error)
- func NewClientset(cluster *eks.Cluster) (*kubernetes.Clientset, error)
- func NewRestConfig(cluster *eks.Cluster) (*rest.Config, error)
- type ARecord
- type Configuration
- func (conf *Configuration) CheckAvailabilityZones(region string) (bool, error)
- func (conf *Configuration) CreateBucket(bucketName string) (*s3.CreateBucketOutput, error)
- func (conf *Configuration) DeleteBucket(bucketName string) error
- func (conf *Configuration) DeleteEKSSecurityGroups(region string, clusterName string) error
- func (conf *Configuration) DeleteElasticLoadBalancer(elbdp ElbDeletionParameters) error
- func (conf *Configuration) DeleteSecurityGroup(region string, sgID string) error
- func (conf *Configuration) GetCallerIdentity() (*sts.GetCallerIdentityOutput, error)
- func (conf *Configuration) GetECRAuthToken() (string, error)
- func (conf *Configuration) GetHostedZone(hostedZoneID string) (*route53.GetHostedZoneOutput, error)
- func (conf *Configuration) GetHostedZoneID(hostedZoneName string) (string, error)
- func (conf *Configuration) GetHostedZoneNameServers(domainName string) (bool, []string, error)
- func (conf *Configuration) GetHostedZones() ([]string, error)
- func (conf *Configuration) GetIamRole(roleName string) (*iam.GetRoleOutput, error)
- func (conf *Configuration) GetKmsKeyID(keyAlias string) (string, error)
- func (conf *Configuration) GetLoadBalancersForDeletion(eksClusterName string) ([]ElbDeletionParameters, error)
- func (conf *Configuration) GetRegions() ([]string, error)
- func (conf *Configuration) GetServiceQuotas(services []string) (map[string][]QuotaDetailResponse, error)
- func (conf *Configuration) ListBuckets() (*s3.ListBucketsOutput, error)
- func (conf *Configuration) ListCompatibleRegions() ([]string, error)
- func (conf *Configuration) ListInstanceSizesForRegion() ([]string, error)
- func (conf *Configuration) ListQuotas() (*servicequotas.GetServiceQuotaOutput, error)
- func (conf *Configuration) Route53AlterResourceRecord(r *Route53AlterResourceRecord) (*route53.ChangeResourceRecordSetsOutput, error)
- func (conf *Configuration) Route53ListARecords(hostedZoneID string) ([]ARecord, error)
- func (conf *Configuration) Route53ListTXTRecords(hostedZoneID string) ([]TXTRecord, error)
- func (conf *Configuration) TestHostedZoneLiveness(hostedZoneName string) bool
- func (conf *Configuration) TestHostedZoneLivenessWithTxtRecords(hostedZoneName string) (bool, error)
- type ElbDeletionParameters
- type ElbTags
- type QuotaDetailResponse
- type Route53AlterResourceRecord
- type TXTRecord
Constants ¶
const (
CloudProvider = "aws"
)
Variables ¶
This section is empty.
Functions ¶
func NewClientset ¶
func NewClientset(cluster *eks.Cluster) (*kubernetes.Clientset, error)
Types ¶
type ARecord ¶
type ARecord struct { Name string RecordType string TTL *int64 AliasTarget *route53Types.AliasTarget }
ARecord stores Route53 A record data
type Configuration ¶
Configuration stores session data to organize all AWS functions into a single struct
func (*Configuration) CheckAvailabilityZones ¶
func (conf *Configuration) CheckAvailabilityZones(region string) (bool, error)
CheckAvailabilityZones determines whether or not an aws region is compatible with the minimum availability zone requirement specified by consumption of aws Terraform modules
func (*Configuration) CreateBucket ¶
func (conf *Configuration) CreateBucket(bucketName string) (*s3.CreateBucketOutput, error)
CreateBucket
func (*Configuration) DeleteBucket ¶
func (conf *Configuration) DeleteBucket(bucketName string) error
DeleteBucket
func (*Configuration) DeleteEKSSecurityGroups ¶
func (conf *Configuration) DeleteEKSSecurityGroups(region string, clusterName string) error
DeleteEKSSecurityGroups deletes security groups associated with an EKS cluster
func (*Configuration) DeleteElasticLoadBalancer ¶
func (conf *Configuration) DeleteElasticLoadBalancer(elbdp ElbDeletionParameters) error
DeleteElasticLoadBalancer deletes an Elastic Load Balancer associated with an EKS cluster
func (*Configuration) DeleteSecurityGroup ¶
func (conf *Configuration) DeleteSecurityGroup(region string, sgID string) error
DeleteSecurityGroup deletes a security group
func (*Configuration) GetCallerIdentity ¶
func (conf *Configuration) GetCallerIdentity() (*sts.GetCallerIdentityOutput, error)
func (*Configuration) GetECRAuthToken ¶
func (conf *Configuration) GetECRAuthToken() (string, error)
func (*Configuration) GetHostedZone ¶
func (conf *Configuration) GetHostedZone(hostedZoneID string) (*route53.GetHostedZoneOutput, error)
GetHostedZone returns an object detailing a hosted zone
func (*Configuration) GetHostedZoneID ¶
func (conf *Configuration) GetHostedZoneID(hostedZoneName string) (string, error)
GetHostedZoneID returns the ID of a hosted zone if valid
func (*Configuration) GetHostedZoneNameServers ¶
func (conf *Configuration) GetHostedZoneNameServers(domainName string) (bool, []string, error)
GetHostedZoneNameServers returns nameservers for a hosted zone if available for private zones, nothing is returned
func (*Configuration) GetHostedZones ¶
func (conf *Configuration) GetHostedZones() ([]string, error)
GetHostedZone returns an object detailing a hosted zone
func (*Configuration) GetIamRole ¶
func (conf *Configuration) GetIamRole(roleName string) (*iam.GetRoleOutput, error)
func (*Configuration) GetKmsKeyID ¶
func (conf *Configuration) GetKmsKeyID(keyAlias string) (string, error)
func (*Configuration) GetLoadBalancersForDeletion ¶
func (conf *Configuration) GetLoadBalancersForDeletion(eksClusterName string) ([]ElbDeletionParameters, error)
GetLoadBalancersForDeletion gets all load balancers and returns details for a load balancer associated with the target EKS cluster
func (*Configuration) GetRegions ¶
func (conf *Configuration) GetRegions() ([]string, error)
GetRegions lists all available regions
func (*Configuration) GetServiceQuotas ¶
func (conf *Configuration) GetServiceQuotas(services []string) (map[string][]QuotaDetailResponse, error)
GetServiceQuotas
func (*Configuration) ListBuckets ¶
func (conf *Configuration) ListBuckets() (*s3.ListBucketsOutput, error)
func (*Configuration) ListCompatibleRegions ¶
func (conf *Configuration) ListCompatibleRegions() ([]string, error)
ListCompatibleRegions returns aws regions that have the minimum number of availability zones required to support the kubefirst platform
func (*Configuration) ListInstanceSizesForRegion ¶
func (conf *Configuration) ListInstanceSizesForRegion() ([]string, error)
func (*Configuration) ListQuotas ¶
func (conf *Configuration) ListQuotas() (*servicequotas.GetServiceQuotaOutput, error)
func (*Configuration) Route53AlterResourceRecord ¶
func (conf *Configuration) Route53AlterResourceRecord(r *Route53AlterResourceRecord) (*route53.ChangeResourceRecordSetsOutput, error)
Route53AlterResourceRecord simplifies manipulation of Route53 records
func (*Configuration) Route53ListARecords ¶
func (conf *Configuration) Route53ListARecords(hostedZoneID string) ([]ARecord, error)
Route53ListARecords retrieves all DNS A records for a hosted zone
func (*Configuration) Route53ListTXTRecords ¶
func (conf *Configuration) Route53ListTXTRecords(hostedZoneID string) ([]TXTRecord, error)
Route53ListTXTRecords retrieves all DNS TXT record type for a hosted zone
func (*Configuration) TestHostedZoneLiveness ¶
func (conf *Configuration) TestHostedZoneLiveness(hostedZoneName string) bool
TestHostedZoneLiveness checks Route53 for the liveness test record
func (*Configuration) TestHostedZoneLivenessWithTxtRecords ¶
func (conf *Configuration) TestHostedZoneLivenessWithTxtRecords(hostedZoneName string) (bool, error)
TestHostedZoneLivenessWithTxtRecords determines whether or not a target hosted zone is initialized and ready to accept records
type ElbDeletionParameters ¶
ElbDeletionParameters describes an Elastic Load Balancer name and source security group to delete
type QuotaDetailResponse ¶
type Route53AlterResourceRecord ¶
type Route53AlterResourceRecord struct {
// contains filtered or unexported fields
}