oci

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	RepositoryURL string
	Username      string
	Password      string
	PlainHTTP     bool
}

func (*Repository) GetLatestVersion

func (r *Repository) GetLatestVersion(ctx context.Context) (string, error)

GetLatestVersion returns the latest version of the component with the given name.

func (*Repository) PullArtifact

func (r *Repository) PullArtifact(ctx context.Context, version string) (name string, err error)

PullArtifact pulls the artifact from the given repository.

func (*Repository) PushArtifact

func (r *Repository) PushArtifact(ctx context.Context, src, version string) error

PushArtifact pushes the artifact to the given repository.

Jump to

Keyboard shortcuts

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