Documentation
¶
Overview ¶
Package eks contains all of the logic and data structures relevant to enumerating EKS instances and their related resources. It is primarily leveraged by the `methodaws eks` subcommand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSResourceReport ¶
type AWSResourceReport struct { AccountID string `json:"account_id" yaml:"account_id"` Resources AWSResources `json:"resources"` Errors []string `json:"errors"` }
AWSResourceReport contains the EKS resources and any non-fatal errors that occurred during the execution of the
func EnumerateEks ¶
EnumerateEks enumerates all EKS clusters and their associated node groups and EC2 instances. Non-fatal errors will be captured and returned in the report. However, if a fatal error occurs (e.g., during the initial listing of clusters), the function will return early with the error.
type AWSResources ¶
type AWSResources struct {
EKSClusters []ClusterInfo `json:"eks_clusters" yaml:"eks_clusters"`
}
AWSResources contains all EKS resources.
type ClusterInfo ¶
type ClusterInfo struct { eksTypes.Cluster NodeGroups []NodeGroup `json:"node_groups" yaml:"node_groups"` }
ClusterInfo represents an EKS cluster and its associated node groups.
type EC2Instance ¶
type EC2Instance struct {
InstanceID string `json:"instance_id" yaml:"instance_id"`
}
EC2Instance represents an EC2 instance in the context of an EKS node group.
type NodeGroup ¶
type NodeGroup struct { Name string `json:"name" yaml:"name"` NodeRole string `json:"node_role" yaml:"node_role"` Instances []EC2Instance `json:"instances" yaml:"instances"` }
NodeGroup represents an EKS node group and its associated EC2 instances.