Documentation
¶
Index ¶
- Constants
- func ProcessRepositories(ctx context.Context, registry1, registry2, project1, project2 string, ...) (int, int, error)
- func RunRetrieveDigests(project string) (successful int, failed int, err error)
- type CSVWriter
- type ORASRepositoryFetcher
- func (o *ORASRepositoryFetcher) FetchDigest(ctx context.Context, registry, image, tag string) (string, error)
- func (o *ORASRepositoryFetcher) FetchLatestTag(ctx context.Context, registry, image string) (string, error)
- func (o *ORASRepositoryFetcher) FetchRepositories(ctx context.Context, registry, basePath string) ([]string, error)
- type RepositoryFetcher
Constants ¶
View Source
const ( HeaderImage = "Image" HeaderTag = "Tag" HeaderDigest = "Digest" )
Variables ¶
This section is empty.
Functions ¶
func ProcessRepositories ¶
func ProcessRepositories(ctx context.Context, registry1, registry2, project1, project2 string, repoFetcher RepositoryFetcher, writer1, writer2 *CSVWriter) (int, int, error)
ProcessRepositories processes images for two registries and writes digests to CSV files
Types ¶
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter handles writing data to a CSV file
func NewCSVWriter ¶
NewCSVWriter creates a new CSVWriter
func (*CSVWriter) WriteHeader ¶
WriteHeader writes the header to the CSV file
type ORASRepositoryFetcher ¶
type ORASRepositoryFetcher struct{}
func (*ORASRepositoryFetcher) FetchDigest ¶
func (*ORASRepositoryFetcher) FetchLatestTag ¶
func (*ORASRepositoryFetcher) FetchRepositories ¶
Click to show internal directories.
Click to hide internal directories.