Documentation ¶
Index ¶
- func GetAWSProfiles() ([]string, error)
- func NewAWSClient(ctx context.Context, opts ...AWSClientOpt) (interfaces.AWSClient, error)
- func Scrape(ctx context.Context, opts ...AWSClientOpt) (*types.InventoryReport, error)
- type AWSClientOpt
- type ArtifactHubPackage
- type ArtifactHubRepository
- type ArtifactHubSearchResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSProfiles ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.