Documentation
¶
Index ¶
- func LocalImageID(ref ImageReference) string
- type ImageReference
- type Provider
- func (p *Provider) Configure(rawCfg provider.ProviderConfig) error
- func (p *Provider) Name() string
- func (p *Provider) Plan(ctx context.Context) (*provider.SyncPlan, error)
- func (p *Provider) SetName(name string)
- func (p *Provider) Sync(ctx context.Context, plan *provider.SyncPlan, opts provider.SyncOptions) (*provider.SyncReport, error)
- func (p *Provider) Type() string
- func (p *Provider) Validate(ctx context.Context) (*provider.ValidationReport, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalImageID ¶
func LocalImageID(ref ImageReference) string
LocalImageID returns the local per-image directory slug used by this provider.
Types ¶
type ImageReference ¶
type ImageReference struct {
Raw string
Scheme string
Registry string
EndpointHost string
Repository string
Reference string // tag or digest
IsDigest bool
}
ImageReference is a parsed docker:// or oci:// image reference.
func ParseReference ¶
func ParseReference(raw string) (ImageReference, error)
ParseReference parses a docker:// or oci:// image reference.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider mirrors OCI/Docker images by downloading manifests and blobs.
func NewProvider ¶
NewProvider creates a new container images provider.
Click to show internal directories.
Click to hide internal directories.