aws

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 38 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, opts ...AWSClientOpt) (interfaces.AWSClient, error)

func Scrape

func Scrape(ctx context.Context, opts ...AWSClientOpt) (*types.InventoryReport, error)

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

Types

type AWSClientOpt added in v0.16.0

type AWSClientOpt func(*awsClient)

func WithProfile added in v0.16.0

func WithProfile(profile string) AWSClientOpt

func WithRegion added in v0.16.0

func WithRegion(region string) AWSClientOpt

func WithRoleARN added in v0.16.0

func WithRoleARN(roleARN string) AWSClientOpt

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