aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Regions = []string{
	"af-south-1",
	"ap-east-1",
	"ap-northeast-1",
	"ap-northeast-2",
	"ap-northeast-3",
	"ap-south-1",
	"ap-southeast-1",
	"ap-southeast-2",
	"ca-central-1",
	"eu-central-1",
	"eu-north-1",
	"eu-south-1",
	"eu-west-1",
	"eu-west-2",
	"eu-west-3",
	"me-south-1",
	"sa-east-1",
	"us-east-1",
	"us-east-2",
	"us-gov-east-1",
	"us-gov-west-1",
	"us-west-1",
	"us-west-2",
}

Functions

func ConnectToEKSCluster

func ConnectToEKSCluster(cluster string) error

func ListEKSClusters

func ListEKSClusters(region ...string) ([]string, error)

func ListProfiles

func ListProfiles() ([]string, error)

func SelectEKSCluster

func SelectEKSCluster() (string, error)

func SelectProfiles

func SelectProfiles() ([]string, error)

Types

type Cluster

type Cluster struct {
	Name      string `json:"name"`
	Arn       string `json:"arn"`
	CreatedAt string `json:"createdAt"`
	Version   string `json:"version"`
	Endpoint  string `json:"endpoint"`
	RoleArn   string `json:"roleArn"`
	Vpc       struct {
		SubnetIds        []string `json:"subnetIds"`
		SecurityGroupIds []string `json:"securityGroupIds"`
		ID               string   `json:"vpcId"`
	} `json:"resourcesVpcConfig"`
	Status               string `json:"status"`
	CertificateAuthority struct {
		Data string `json:"data"`
	} `json:"certificateAuthority"`
}

func DescribeEKSCluster

func DescribeEKSCluster(cluster string) (*Cluster, error)

type ECRImage

type ECRImage struct {
	RegistryID     string   `json:"registryId"`
	RepositoryName string   `json:"repositoryName"`
	Digest         string   `json:"imageDigest"`
	Tags           []string `json:"imageTags"`
	SizeInBytes    int      `json:"imageSizeInBytes"`
	PushedAt       string   `json:"imagePushedAt"`
}

type ECRImages

type ECRImages struct {
	Items []*ECRImage `json:"imageDetails"`
}

func ListECRImages

func ListECRImages(repo *ECRRepository) (*ECRImages, error)

type ECRRepositories

type ECRRepositories struct {
	Items []*ECRRepository `json:"repositories"`
}

func ListECRRepositories

func ListECRRepositories() (*ECRRepositories, error)

func (*ECRRepositories) SelectMany

func (e *ECRRepositories) SelectMany() (*ECRRepositories, error)

type ECRRepository

type ECRRepository struct {
	Arn                        string `json:"repositoryArn"`
	RegistryID                 string `json:"registryId"`
	Name                       string `json:"repositoryName"`
	URI                        string `json:"repositoryUri"`
	CreatedAt                  string `json:"createdAt"`
	ImageTagMutability         string `json:"imageTagMutability"`
	ImageScanningConfiguration struct {
		ScanOnPush bool `json:"scanOnPush"`
	} `json:"imageScanningConfiguration"`
	EncryptionConfiguration struct {
		EncryptionType string `json:"encryptionType"`
	} `json:"encryptionConfiguration"`
}

type HostedZone

type HostedZone struct {
	ID              string `json:"Id"`
	Name            string `json:"Name"`
	CallerReference string `json:"CallerReference"`
	Config          struct {
		Comment     string `json:"Comment"`
		PrivateZone bool   `json:"PrivateZone"`
	} `json:"Config"`
	ResourceRecordSetCount int `json:"ResourceRecordSetCount"`
}

type HostedZones

type HostedZones struct {
	Items []*HostedZone `json:"HostedZones"`
}

func ListHostedZones

func ListHostedZones() (*HostedZones, error)

func ListHostedZonesByProfile

func ListHostedZonesByProfile(profile string) (*HostedZones, error)

type ResourceRecordSet

type ResourceRecordSet struct {
	Name            string `json:"Name"`
	Type            string `json:"Type"`
	TTL             int    `json:"TTL"`
	ResourceRecords []struct {
		Value string `json:"Value"`
	} `json:"ResourceRecords"`
	Profile    string
	HostedZone *HostedZone
}

type ResourceRecordSets

type ResourceRecordSets struct {
	Items []*ResourceRecordSet `json:"ResourceRecordSets"`
}

func ListAllRecords

func ListAllRecords() (*ResourceRecordSets, error)

func ListAllRecordsByProfile

func ListAllRecordsByProfile(profile string) (*ResourceRecordSets, error)

func ListRecordsByHostedZone

func ListRecordsByHostedZone(hostedZone *HostedZone) (*ResourceRecordSets, error)

func ListRecordsByHostedZoneByProfile

func ListRecordsByHostedZoneByProfile(hostedZone *HostedZone, profile string) (*ResourceRecordSets, error)

func (*ResourceRecordSets) RenderTable

func (s *ResourceRecordSets) RenderTable()

Jump to

Keyboard shortcuts

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