repos

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BaseUrl      = "service/rest"
	RepoUrl      = BaseUrl + "/v1/repositories"
	ComponentUrl = BaseUrl + "/v1/components?repository="
)

Variables

This section is empty.

Functions

func NewDockerRegistryClient

func NewDockerRegistryClient(endpoint, username, password string) *dockerRegistryClient

func NewHarborClient

func NewHarborClient(endpoint, username, password string) *harborClient

func NewNexusClient

func NewNexusClient(endpoint, username, password string) *nexusClient

Types

type BasicTransport

type BasicTransport struct {
	Transport http.RoundTripper
	URL       string
	Username  string
	Password  string
}

func (*BasicTransport) RoundTrip

func (t *BasicTransport) RoundTrip(req *http.Request) (*http.Response, error)

type HttpClient

type HttpClient struct {
	Username string
	Password string
	Host     string
}

func (*HttpClient) Do

func (h *HttpClient) Do(request *http.Request) (body []byte, resp *http.Response, err error)

func (*HttpClient) Get

func (h *HttpClient) Get(endpoint string) ([]byte, *http.Response, error)

func (*HttpClient) NewRequest

func (h *HttpClient) NewRequest(method, endpoint string) (request *http.Request, err error)

type ItemResult

type ItemResult struct {
	Items []NameResult
}

type NameResult

type NameResult struct {
	Name    string
	Version string
	Format  string
}

Jump to

Keyboard shortcuts

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