dep

package
v0.0.0-...-e417875 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = NewClient()

DefaultClient for the retention

Functions

This section is empty.

Types

type Client

type Client interface {
	// Get the tag candidates under the repository
	//
	//  Arguments:
	//    repo *art.Repository : repository info
	//
	//  Returns:
	//    []*art.Candidate : candidates returned
	//    error            : common error if any errors occurred
	GetCandidates(repo *selector.Repository) ([]*selector.Candidate, error)

	// Delete the given repository
	//
	//  Arguments:
	//    repo *art.Repository : repository info
	//
	//  Returns:
	//    error            : common error if any errors occurred
	DeleteRepository(repo *selector.Repository) error

	// Delete the specified candidate
	//
	//  Arguments:
	//    candidate *art.Candidate : the deleting candidate
	//
	//  Returns:
	//    error : common error if any errors occurred
	Delete(candidate *selector.Candidate) error
}

Client is designed to access core service to get required infos

func NewClient

func NewClient(client ...*http.Client) Client

NewClient new a basic client

Jump to

Keyboard shortcuts

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