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.
Click to show internal directories.
Click to hide internal directories.