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 Config
- type Credential
- 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
- type ProjectRequest
- type RepoRequest
- type RepoResponse
Constants ¶
View Source
const ( BaseUrl = "service/rest" RepoUrl = BaseUrl + "/v1/repositories" ComponentUrl = BaseUrl + "/v1/components?repository=" )
View Source
const LIMIT = 100
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 Config ¶ added in v1.5.0
type Config struct { Type string EndPoint string //DownloadUrl string Credential Credential Version string }
type Credential ¶ added in v1.5.0
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 ContinuationToken string `json:"continuationToken"` }
type NameResult ¶
type ProjectRequest ¶ added in v1.5.0
type RepoRequest ¶ added in v1.5.0
type RepoResponse ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.