aws

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package AWS implements AWS repository importer.

Index

Constants

View Source
const (
	// RepoName contains the importer repository name.
	RepoName = "AWS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo holds data related to AWS repository.

func NewRepo

func NewRepo(ctx context.Context, hashrEc2Client *ec2.Client, hashrS3Client *s3.Client, hashrBucketName string, hashrSSHUser string, osfilter string, osarchs []string) (*Repo, error)

NewRepo returns a new instance of AWS repository (Repo).

func (*Repo) DiscoverRepo

func (r *Repo) DiscoverRepo() ([]hashr.Source, error)

DiscoverRepo returns a list of AMI matching the AMI filters.

func (*Repo) RepoName

func (r *Repo) RepoName() string

RepoName returns AWS repository name.

func (*Repo) RepoPath

func (r *Repo) RepoPath() string

RepoPath returns the Amazon AMI OS filters.

Jump to

Keyboard shortcuts

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