Documentation
¶
Index ¶
- Constants
- func NewDockerRegistryClient(endpoint, username, password string) *dockerRegistryClient
- func NewHarborClient(endpoint, username, password, version string) *harborClient
- func NewNexusClient(endpoint, username, password string) *nexusClient
- type BasicTransport
- type HttpClient
- func (h *HttpClient) Do(request *http.Request) (body []byte, resp *http.Response, err error)
- func (h *HttpClient) Get(endpoint string) ([]byte, *http.Response, error)
- func (h *HttpClient) GetNameResult(url string) ([]NameResult, error)
- func (h *HttpClient) NewRequest(method, endpoint string) (request *http.Request, err error)
- type ItemResult
- type NameResult
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, version 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 }
type HttpClient ¶
func (*HttpClient) GetNameResult ¶ added in v1.4.1
func (h *HttpClient) GetNameResult(url string) ([]NameResult, error)
func (*HttpClient) NewRequest ¶
func (h *HttpClient) NewRequest(method, endpoint string) (request *http.Request, err error)
type ItemResult ¶
type ItemResult struct {
Items []NameResult
}
Click to show internal directories.
Click to hide internal directories.