Documentation ¶
Index ¶
- Variables
- func AddRecordsToCloudflare(cfClient *cloudflare.API, zoneName string, ...) []*cloudflare.DNSRecordResponse
- func DescribeEKSCluster(clusterName *string) *eks.DescribeClusterOutput
- func Execute()
- func GetIAMRoleArnToAssume(projectName string, environmentName string) *string
- func GetKubeConfigData() ([]byte, error)
- func GetNetworkInterfaces(input *ec2.DescribeNetworkInterfacesInput) *ec2.DescribeNetworkInterfacesOutput
- func GetPrivateMasterIP(clusterName *string) *string
- func GetR53Zone(zoneId string)
- func GetRoute53ZoneID(zoneName string) (string, error)
- func GetUserHomeDir() string
- func KubeConfigPath() (string, error)
- func ListEKSClusters(details bool) *eks.ListClustersOutput
- func ListR53RecordSets(svc route53iface.Route53API, zoneId string) *route53.ListResourceRecordSetsOutput
- func ListR53Zones()
- func SetKubeConfigCurrentContext(contextName string) error
- func WriteKubeConfig(kd kubeConfigData) error
- func WriteKubeConfigToFile(clusterData *eks.DescribeClusterOutput, projectName string, environment string) error
- type ClusterConfig
- type ClusterContext
- type ClusterUser
- type ClusterUserExecDetails
- type KubeConfigType
- type RouteContainer
- type SecurityGroupRule
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyPath string
View Source
var PrivateIP bool
View Source
var PublicIP bool
View Source
var RootCmd = &cobra.Command{
Use: "yawsi",
Short: "Yet Another AWS Command Line Interface",
}
View Source
var ShowCommand bool
Functions ¶
func AddRecordsToCloudflare ¶
func AddRecordsToCloudflare(cfClient *cloudflare.API, zoneName string, recordSet *route53.ListResourceRecordSetsOutput) []*cloudflare.DNSRecordResponse
func DescribeEKSCluster ¶
func DescribeEKSCluster(clusterName *string) *eks.DescribeClusterOutput
func Execute ¶
func Execute()
Execute is called by main.main(). It only needs to happen once to the rootCmd.
func GetIAMRoleArnToAssume ¶
func GetKubeConfigData ¶
func GetNetworkInterfaces ¶
func GetNetworkInterfaces(input *ec2.DescribeNetworkInterfacesInput) *ec2.DescribeNetworkInterfacesOutput
func GetPrivateMasterIP ¶
Idea from http://www.studytrails.com/devops/kubernetes/local-dns-resolution-for-eks-with-private-endpoint/
func GetR53Zone ¶
func GetR53Zone(zoneId string)
func GetRoute53ZoneID ¶
func GetUserHomeDir ¶
func GetUserHomeDir() string
func KubeConfigPath ¶
func ListEKSClusters ¶
func ListEKSClusters(details bool) *eks.ListClustersOutput
func ListR53RecordSets ¶
func ListR53RecordSets(svc route53iface.Route53API, zoneId string) *route53.ListResourceRecordSetsOutput
func ListR53Zones ¶
func ListR53Zones()
func WriteKubeConfig ¶
func WriteKubeConfig(kd kubeConfigData) error
func WriteKubeConfigToFile ¶
func WriteKubeConfigToFile(clusterData *eks.DescribeClusterOutput, projectName string, environment string) error
Write kubeconfig to file
Types ¶
type ClusterConfig ¶
type ClusterContext ¶
func GetKubeConfigContexts ¶
func GetKubeConfigContexts() []ClusterContext
type ClusterUser ¶
type ClusterUser struct { Name string `yaml:"name"` User map[string]ClusterUserExecDetails `yaml:"user"` }
type ClusterUserExecDetails ¶
type KubeConfigType ¶
type KubeConfigType struct { APIVersion string `yaml:"apiVersion"` CurrentContext string `yaml:"current-context"` Clusters []ClusterConfig `yaml:"clusters"` Contexts []ClusterContext `yaml:"contexts"` Kind string `yaml:"kind"` Users []ClusterUser `yaml:"users"` }
type RouteContainer ¶
RouteContainer represents a set of routes and whether it is associated to the VPC main route table or not
type SecurityGroupRule ¶
type SecurityGroupRule struct {
// contains filtered or unexported fields
}
Embdes ec2.IpPermission and adds an additional field to mark whether this is an inbound or outbound security group rule
Source Files ¶
- asg.go
- asgList.go
- bashCompletion.go
- dms.go
- dmsTaskStatus.go
- ec2.go
- ec2DescribeInstances.go
- ec2GetMetadata.go
- ec2GetWindowsPassword.go
- ec2Inspect.go
- ec2InspectConnectivity.go
- ec2InspectRoutingtables.go
- ec2LaunchMoreLike.go
- ec2RDPWindows.go
- ec2SSHLinux.go
- eks.go
- eksCreateKubeConfigCmd.go
- eksHelpers.go
- eksListCmd.go
- eksListContextsCmd.go
- eksSetContextCmd.go
- eksWhois.go
- getWindowsPasswordHelper.go
- helpers.go
- r53.go
- r53ExportZoneCloudFlare.go
- r53ListRecordsets.go
- r53zonesListCmd.go
- root.go
- tfCmd.go
- tfGeneralNaclRules.go
- types.go
- versionCmd.go
- vpc.go
- vpcListCmd.go
- vpcNACLEntriesList.go
- vpcSubnetList.go
Click to show internal directories.
Click to hide internal directories.