resource

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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