registry

package
v0.0.0-...-bc24f2a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context, src string, dest string) error

Types

type Registry

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

func NewLocalRegistry

func NewLocalRegistry(ctx context.Context, githubAPIToken string) (*Registry, error)

func (*Registry) GetArtifact

func (r *Registry) GetArtifact(ctx context.Context, ref types.PkgRef, platform types.Platform) (string, error)

func (*Registry) GetArtifactMetadata

func (r *Registry) GetArtifactMetadata(ctx context.Context, ref types.PkgRef, platform types.Platform) (types.ArtifactMetadata, error)

func (*Registry) GetPackage

func (r *Registry) GetPackage(ctx context.Context, ref types.PkgRef, platform types.Platform) (string, error)

func (*Registry) GetReleaseMetadata

func (r *Registry) GetReleaseMetadata(ctx context.Context, ref types.PkgRef) (types.ReleaseMetadata, error)

func (*Registry) ListReleases

func (r *Registry) ListReleases(ctx context.Context, owner, repo string) ([]types.ReleaseMetadata, error)

func (*Registry) ResolveVersion

func (r *Registry) ResolveVersion(ref types.PkgRef) (types.PkgRef, error)

Jump to

Keyboard shortcuts

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