Documentation ¶
Index ¶
- Constants
- type AQLResult
- type AQLSearchResults
- type Client
- func (c *Client) DeleteItem(repo string, path string) error
- func (c *Client) DockerRepositories(registry string) (dr DockerRepositories, err error)
- func (c *Client) DockerTagLastDownloaded(registry string, repo string, tag string) (time.Time, error)
- func (c *Client) DockerTagLastModified(registry string, repo string, tag string) (time.Time, error)
- func (c *Client) DockerTagRemove(registry string, repo string, tag string) error
- func (c *Client) DockerTagSize(registry string, repo string, tag string) (int64, error)
- func (c *Client) DockerTags(registry string, repo string) (dt DockerTags, err error)
- func (c *Client) FileList(repo string, path string) (FileList, error)
- func (c *Client) FileStats(repo string, path string) (FileStats, error)
- func (c *Client) LastDownloaded(repo string, path string) (time.Time, error)
- func (c *Client) RepoConfiguration(repo string) (RepoConfiguration, error)
- func (c *Client) SearchAQL(query string) (AQLSearchResults, error)
- func (c *Client) SystemVersion() (*SystemVersion, error)
- type DockerRepositories
- type DockerTags
- type FileList
- type FileStats
- type LastModified
- type Options
- type RepoClass
- type RepoConfiguration
- type SystemVersion
Constants ¶
const ( RepoClassLocal = RepoClass("local") RepoClassRemote = RepoClass("remote") RepoClassVirtual = RepoClass("virtual") )
RepoClass constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AQLResult ¶
type AQLResult struct { Repo string `json:"repo,omitempty"` Path string `json:"path,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Size int64 `json:"size,omitempty"` Created time.Time `json:"created,omitempty"` CreatedBy string `json:"created_by,omitempty"` Modified time.Time `json:"modified,omitempty"` ModifiedBy string `json:"modified_by,omitempty"` Updated time.Time `json:"updated,omitempty"` }
AQLResult holds AQL result response
type AQLSearchResults ¶
type AQLSearchResults struct {
Results []AQLResult `json:"results,omitempty"`
}
AQLSearchResults holds AQL search results response
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an active artifactory object
func (*Client) DeleteItem ¶
DeleteItem deletes a file or a folder on Artifactory
func (*Client) DockerRepositories ¶
func (c *Client) DockerRepositories(registry string) (dr DockerRepositories, err error)
DockerRepositories returns a list of docker repositories
func (*Client) DockerTagLastDownloaded ¶
func (c *Client) DockerTagLastDownloaded(registry string, repo string, tag string) (time.Time, error)
DockerTagLastDownloaded returns the last downloaded time of a Docker tag manifest
func (*Client) DockerTagLastModified ¶
DockerTagLastModified returns the last modified time of a Docker tag manifest
func (*Client) DockerTagRemove ¶
DockerTagRemove removes a Docker tag on Artifactory
func (*Client) DockerTagSize ¶
DockerTagSize returns the size of a Docker tag
func (*Client) DockerTags ¶
func (c *Client) DockerTags(registry string, repo string) (dt DockerTags, err error)
DockerTags returns tags of a docker repository
func (*Client) LastDownloaded ¶
LastDownloaded returns the last downloaded time of an artifact
func (*Client) RepoConfiguration ¶
func (c *Client) RepoConfiguration(repo string) (RepoConfiguration, error)
RepoConfiguration retrieves the current configuration of a repository
func (*Client) SearchAQL ¶
func (c *Client) SearchAQL(query string) (AQLSearchResults, error)
SearchAQL search files using AQL language
func (*Client) SystemVersion ¶
func (c *Client) SystemVersion() (*SystemVersion, error)
SystemVersion retrieves information about the current Artifactory version, revision, and currently installed Add-ons.
type DockerRepositories ¶
type DockerRepositories struct {
Repositories []string `json:"repositories"`
}
DockerRepositories holds docker repositories response
type DockerTags ¶
DockerTags holds docker tags response
type FileList ¶
type FileList struct { URI string `json:"uri"` Created time.Time `json:"created"` Files []struct { URI string `json:"uri"` Size int64 `json:"size"` LastModified time.Time `json:"lastModified"` Folder bool `json:"folder"` Sha1 string `json:"sha1"` Sha2 string `json:"sha2"` } `json:"files"` }
FileList holds file list response
type FileStats ¶
type FileStats struct { URI string `json:"uri"` DownloadCount int64 `json:"downloadCount"` LastDownloaded int64 `json:"lastDownloaded"` RemoteDownloadCount int64 `json:"remoteDownloadCount"` RemoteLastDownloaded int64 `json:"remoteLastDownloaded"` }
FileStats holds file stats response
type LastModified ¶
LastModified holds last modified response