provider

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// Exists checks if an image already exists in the provider's catalog
	// name: the image name
	// loc: the location identifier within the provider
	Exists(ctx context.Context, name string, loc string) (bool, error)

	// Create imports and uploads an image to the provider's catalog
	// imageURL: the URL where the image can be downloaded from
	// imageName: the name to give the image in the catalog
	// loc: the location identifier within the provider
	Create(ctx context.Context, imageURL string, imageName string, loc string) error

	// Delete removes an image from the provider's catalog
	// name: the image name to delete
	// loc: the location identifier within the provider
	Delete(ctx context.Context, name string, loc string) error

	// GetLocations returns a map of all configured locations for this provider
	GetLocations() map[string]interface{}
}

Provider defines the interface for image distribution providers

Jump to

Keyboard shortcuts

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