Documentation ¶
Index ¶
- Constants
- func Authentication(user, password, apiKey, accessToken string) func(*Client) error
- func Endpoint(endpoint string) func(*Client) error
- type Artifact
- type BasicCredentials
- type Client
- func (c *Client) AQL(aql string) ([]byte, error)
- func (c *Client) BasicCredentials() BasicCredentials
- func (c *Client) DownloadItems(pattern, target string) ([]Artifact, error)
- func (c *Client) PublishBuildInfo(b buildinfo.BuildInfo) error
- func (c *Client) PullImage(dest, format, repository, identifier, digest string) error
- func (c *Client) PushImage(src, repository, image string, tags []string) (string, error)
- func (c *Client) SearchItem(pattern string) (utils.ResultItem, error)
- func (c *Client) SearchItems(aql string) ([]utils.ResultItem, error)
- func (c *Client) UploadItems(pattern, target string, props Properties) ([]utils.FileInfo, int, error)
- type ImageMetadata
- type Properties
- type Property
Constants ¶
const PropertySeparator = ";"
PropertySeparator is the standard character used by artifactory
Variables ¶
This section is empty.
Functions ¶
func Authentication ¶
Authentication sets credentials to be used by the client
Types ¶
type Artifact ¶
type Artifact struct { File utils.FileInfo Item utils.ResultItem }
Artifact wraps Artifactory metadata for an artifact
type BasicCredentials ¶
BasicCredentials provides interface for container image pull/push
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for handling requests to the Artifactory AQL API
func (*Client) BasicCredentials ¶
func (c *Client) BasicCredentials() BasicCredentials
BasicCredentials builds the BasicCredentials struct
func (*Client) DownloadItems ¶
DownloadItems downloads artifacts
func (*Client) PublishBuildInfo ¶
PublishBuildInfo creates a build in artifactory
func (*Client) SearchItem ¶
func (c *Client) SearchItem(pattern string) (utils.ResultItem, error)
SearchItem returns metadata for an artifact by pattern
func (*Client) SearchItems ¶
func (c *Client) SearchItems(aql string) ([]utils.ResultItem, error)
SearchItems returns the results of an AQL request
func (*Client) UploadItems ¶
func (c *Client) UploadItems(pattern, target string, props Properties) ([]utils.FileInfo, int, error)
UploadItems downloads artifacts
type ImageMetadata ¶
ImageMetadata is used for rootfs format
type Properties ¶
type Properties []Property
Properties stores a slice of Property's
func (Properties) Env ¶
func (props Properties) Env() buildinfo.Env
Env converts Properties to Artifactory buildinfo.Env
func (*Properties) FromFile ¶
func (props *Properties) FromFile(p string) error
FromFile reads a simple kv file into Properties
func (Properties) String ¶
func (props Properties) String() string