aws

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAWSProfiles

func GetAWSProfiles() ([]string, error)

func NewAWSClient

func NewAWSClient(ctx context.Context, profile, region string) (interfaces.AWSClient, error)

func Scrape

func Scrape(profile string) (*types.InventoryReport, error)

If profile is not passed it is assumed implicitly based on environment variables, like AWS_PROFILE

Types

type ArtifactHubPackage

type ArtifactHubPackage struct {
	PackageId                    string                `json:"package_id"`
	Name                         string                `json:"name"`
	NormalizedName               string                `json:"normalized_name"`
	LogoImageId                  string                `json:"logo_image_id"`
	Stars                        int                   `json:"stars"`
	Description                  string                `json:"description"`
	Version                      string                `json:"version"`
	AppVersion                   string                `json:"app_version"`
	Deprecated                   bool                  `json:"deprecated"`
	Signed                       bool                  `json:"signed"`
	ProductionOrganizationsCount int                   `json:"production_organizations_count"`
	Ts                           int                   `json:"ts"`
	Repository                   ArtifactHubRepository `json:"repository"`
}

type ArtifactHubRepository

type ArtifactHubRepository struct {
	Url                     string `json:"url"`
	Kind                    int    `json:"kind"`
	Name                    string `json:"name"`
	Official                bool   `json:"official"`
	DisplayName             string `json:"display_name"`
	RepositoryId            string `json:"repository_id"`
	ScannerDisabled         bool   `json:"scanner_disabled"`
	OrganizationName        string `json:"organization_name"`
	VerifiedPublisher       bool   `json:"verified_publisher"`
	OrganizationDisplayName string `json:"organization_display_name"`
}

type ArtifactHubSearchResults

type ArtifactHubSearchResults struct {
	Packages []ArtifactHubPackage `json:"packages"`
}

Jump to

Keyboard shortcuts

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