Documentation
¶
Overview ¶
Package resource provides definitions for AWS resource types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSResource ¶
type AWSResource struct { Partition string `json:"partition"` Service string `json:"service"` Region string `json:"region"` AccountID string `json:"account_id"` Resource string `json:"resource"` ARN string `json:"arn"` }
AWSResource defines an AWS resource.
type AWSResourceList ¶
type AWSResourceList struct { ClusterName string `json:"cluster_name"` AWSResources []AWSResource `json:"aws_resources"` }
AWSResourceList defines list of AWSResources.
func ListAWSResource ¶
func ListAWSResource(region, clusterName *string) (AWSResourceList, error)
ListAWSResource fetches all AWS resources created by CAPA.
func (*AWSResourceList) ToTable ¶
func (a *AWSResourceList) ToTable() *metav1.Table
ToTable converts AWSResourceList to Table.
Click to show internal directories.
Click to hide internal directories.