repository

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package repository implements the logic for interacting with a remote repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(client remote.Client) func(r *Repository)

WithClient sets the underlying HTTP client to be used for requests.

func WithPlainHTTP

func WithPlainHTTP(plainHTTP bool) func(r *Repository)

WithPlainHTTP specifies if requests should be done in plain http.

Types

type Repository

type Repository struct {
	*remote.Repository
}

Repository is an HTTP client to interact with a remote repository.

func NewRepository

func NewRepository(ref string, options ...func(*Repository)) (*Repository, error)

NewRepository returns a new Repository.

Return an error if the given ref is not valid.

func (*Repository) Tags

func (r *Repository) Tags(ctx context.Context) ([]string, error)

Tags returns the list of all available tags of an artifact given a reference to a repository.

Jump to

Keyboard shortcuts

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