Documentation ¶
Index ¶
- Constants
- Variables
- type AQLFileInfo
- type AQLProperties
- type AQLResults
- type Artifact
- type ArtifactChecksums
- type ArtifactProperties
- type Client
- func (c *Client) CreateGroup(key string, g GroupDetails, q map[string]string) error
- func (c *Client) CreatePermissionTarget(key string, p PermissionTargetDetails, q map[string]string) error
- func (c *Client) CreateRepo(key string, r RepoConfig, q map[string]string) error
- func (c *Client) CreateUser(key string, u UserDetails, q map[string]string) error
- func (c *Client) CreateUserAPIKey() (string, error)
- func (c *Client) Delete(path string) error
- func (c *Client) DeleteArtifact(repo, path string) ([]byte, error)
- func (c *Client) DeleteItemProperties(repo string, path string, properties []string) error
- func (c *Client) DeleteUser(key string) error
- func (c *Client) DeployArtifact(repoKey string, filename string, path string, properties map[string]string) (CreatedStorageItem, error)
- func (c *Client) DockerSearch(name string) (files []FileInfo, e error)
- func (c *Client) GAVCSearch(coords *GAVC) (files []FileInfo, e error)
- func (c *Client) Get(path string, options map[string]string) ([]byte, error)
- func (c *Client) GetDockerRepoImageTags(key, image string, q map[string]string) ([]string, error)
- func (c *Client) GetDockerRepoImages(key string, q map[string]string) ([]string, error)
- func (c *Client) GetFileInfo(path string) (a Artifact, err error)
- func (c *Client) GetFileList(repo string, path string) (FileList, error)
- func (c *Client) GetGeneralConfiguration() (string, error)
- func (c *Client) GetGroupDetails(key string, q map[string]string) (GroupDetails, error)
- func (c *Client) GetGroups() ([]Group, error)
- func (c *Client) GetHALicenseInfo() (HALicenseInfo, error)
- func (c *Client) GetItemProperties(repo string, path string) (ItemProperties, error)
- func (c *Client) GetLicenseInfo() (LicenseInfo, error)
- func (c *Client) GetPermissionTargetDetails(key string, q map[string]string) (PermissionTargetDetails, error)
- func (c *Client) GetPermissionTargets() ([]PermissionTarget, error)
- func (c *Client) GetRepo(key string, q map[string]string) (RepoConfig, error)
- func (c *Client) GetRepos(rtype string) ([]Repo, error)
- func (c *Client) GetSystemHealthPing() (string, error)
- func (c *Client) GetSystemInfo() (string, error)
- func (c *Client) GetSystemSecurityConfiguration() (s string, e error)
- func (c *Client) GetUserAPIKey() (string, error)
- func (c *Client) GetUserDetails(key string, q map[string]string) (UserDetails, error)
- func (c *Client) GetUserEncryptedPassword() (string, error)
- func (c *Client) GetUsers() ([]User, error)
- func (c *Client) GetVersionAndAddOnInfo() (VersionInfo, error)
- func (c *Client) HTTPRequest(ar Request) ([]byte, error)
- func (c *Client) HTTPRequestWithResponse(ar Request) (*http.Response, error)
- func (c *Client) InstallHALicenses(licenses []InstallLicense, q map[string]string) error
- func (c *Client) InstallLicense(license InstallLicense, q map[string]string) error
- func (c *Client) Post(path string, data []byte, options map[string]string) ([]byte, error)
- func (c *Client) PromoteDockerImage(key string, p DockerImagePromotion, q map[string]string) error
- func (c *Client) Put(path string, data []byte, options map[string]string) ([]byte, error)
- func (c *Client) RetrieveArtifact(repo string, path string) ([]byte, error)
- func (c *Client) SetItemProperties(repo string, path string, properties map[string][]string) error
- func (c *Client) UpdateRepo(key string, r RepoConfig, q map[string]string) error
- func (c *Client) VagrantSearch(name string) (files []AQLFileInfo, e error)
- type ClientConfig
- type CreatedStorageItem
- type DockerImagePromotion
- type DockerImageTags
- type DockerImages
- type ErrorJSON
- type ErrorsJSON
- type FileInfo
- type FileList
- type FileListItem
- type GAVC
- type GavcSearchResults
- type GenericRepoConfig
- type Group
- type GroupDetails
- type HALicense
- type HALicenseInfo
- type InstallLicense
- type ItemProperties
- type LicenseInfo
- type LocalRepoConfig
- type PermissionTarget
- type PermissionTargetDetails
- type Principals
- type RemoteRepoConfig
- type Repo
- type RepoConfig
- type Request
- type URI
- type User
- type UserAPIKey
- type UserDetails
- type VersionInfo
- type VirtualRepoConfig
Constants ¶
const ExportSettingsMimeType string = "application/vnd.org.jfrog.artifactory.system.ExportSettings+json"
ExportSettingsMimeType is the mimetype for export settings
const GroupMimeType string = "application/vnd.org.jfrog.artifactory.security.Group+json"
GroupMimeType is the mimetype for a group
const ImportSettingsMimeType string = "application/vnd.org.jfrog.artifactory.system.ImportSettings+json"
ImportSettingsMimeType is the mimetype for import settings
const LocalRepoMimeType string = "application/vnd.org.jfrog.artifactory.repositories.LocalRepositoryConfiguration+json"
LocalRepoMimeType is the mimetype for a local repo
const PermissionTargetMimeType string = "application/vnd.org.jfrog.artifactory.security.PermissionTarget+json"
PermissionTargetMimeType is the mimetype for a permission target
const RemoteRepoMimeType string = "application/vnd.org.jfrog.artifactory.repositories.RemoteRepositoryConfiguration+json"
RemoteRepoMimeType is the mimetype for a remote repo
const SystemVersionMimeType string = "application/vnd.org.jfrog.artifactory.system.Version+json"
SystemVersionMimeType is the mimetype for system version
const UserMimeType string = "application/vnd.org.jfrog.artifactory.security.User+json"
UserMimeType is the mimetype for a user
const VirtualRepoMimeType string = "application/vnd.org.jfrog.artifactory.repositories.VirtualRepositoryConfiguration+json"
VirtualRepoMimeType is the mimetype for a virtual repo
Variables ¶
var ( // VersionMajor is for an API incompatible changes VersionMajor int64 = 5 // VersionMinor is for functionality in a backwards-compatible manner VersionMinor int64 = 4 // VersionPatch is for backwards-compatible bug fixes VersionPatch int64 )
var Version = semver.Version{ Major: VersionMajor, Minor: VersionMinor, Patch: VersionPatch, }
Version represents the minimum version of the Artifactory API this library supports
Functions ¶
This section is empty.
Types ¶
type AQLFileInfo ¶
type AQLFileInfo struct { Repo string `json:"repo,omitempty"` Path string `json:"path,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Created string `json:"created,omitempty"` CreatedBy string `json:"created_by,omitempty"` Modified string `json:"modified,omitempty"` ModifiedBy string `json:"modified_by,omitempty"` Depth int `json:"depth,omitempty"` Size int64 `json:"size,omitempty"` Properties []AQLProperties `json:"properties,omitempty"` ActualMD5 string `json:"actual_md5,omitempty"` ActualSHA1 string `json:"actual_sha1,omitempty"` OriginalSHA1 string `json:"original_sha1,omitempty"` }
AQLFileInfo represents the json returned from artifactory for an individual file result in an AQL query
type AQLProperties ¶
AQLProperties represents the json used to compose an AQL query
type AQLResults ¶
type AQLResults struct { Results []AQLFileInfo `json:"results"` Range struct { StartPos int `json:"start_pos"` EndPos int `json:"end_pos"` Total int `json:"total"` Limit int `json:"limit"` } `json:"range"` }
AQLResults represents the json returned from artifactory for an AQL query
type ArtifactChecksums ¶
ArtifactChecksums represents the checksums for an artifact
type ArtifactProperties ¶
ArtifactProperties represents a set of properties for an Artifact
type Client ¶
type Client struct { Client *http.Client Config *ClientConfig Transport *http.Transport }
Client is a client for interacting with Artifactory
func NewClient ¶
func NewClient(config *ClientConfig) Client
NewClient returns a new ArtifactoryClient with the provided ClientConfig
func NewClientFromEnv ¶
NewClientFromEnv returns a new ArtifactoryClient the is automatically configured from environment variables
func (*Client) CreateGroup ¶
CreateGroup creates a group in artifactory
func (*Client) CreatePermissionTarget ¶
func (c *Client) CreatePermissionTarget(key string, p PermissionTargetDetails, q map[string]string) error
CreatePermissionTarget creates the named permission target
func (*Client) CreateRepo ¶
CreateRepo creates the named repo
func (*Client) CreateUser ¶
CreateUser creates a user with the specified details
func (*Client) CreateUserAPIKey ¶
CreateUserAPIKey creates an apikey for the current user
func (*Client) DeleteArtifact ¶
DeleteArtifact deletes the named artifact from the provided repo
func (*Client) DeleteItemProperties ¶
DeleteItemProperties deletes the specified properties from an item (file or folder)
func (*Client) DeployArtifact ¶
func (c *Client) DeployArtifact(repoKey string, filename string, path string, properties map[string]string) (CreatedStorageItem, error)
DeployArtifact deploys the named artifact to the provided repo
func (*Client) DockerSearch ¶
DockerSearch searches for docker images
func (*Client) GAVCSearch ¶
GAVCSearch performs a search based on GAVC coordinates
func (*Client) GetDockerRepoImageTags ¶
GetDockerRepoImageTags returns the docker images in the named repo
func (*Client) GetDockerRepoImages ¶
GetDockerRepoImages returns the docker images in the named repo
func (*Client) GetFileInfo ¶
GetFileInfo returns the details about an artifact
func (*Client) GetFileList ¶
GetFileList lists all files in the specified repo
func (*Client) GetGeneralConfiguration ¶
GetGeneralConfiguration returns the general Artifactory configuration
func (*Client) GetGroupDetails ¶
GetGroupDetails returns details for a Group
func (*Client) GetHALicenseInfo ¶
func (c *Client) GetHALicenseInfo() (HALicenseInfo, error)
GetHALicenseInfo returns information about the currently installed licenses in an HA cluster
func (*Client) GetItemProperties ¶
func (c *Client) GetItemProperties(repo string, path string) (ItemProperties, error)
GetItemProperties returns the properties for a specific item
func (*Client) GetLicenseInfo ¶
func (c *Client) GetLicenseInfo() (LicenseInfo, error)
GetLicenseInfo returns information about the currently installed license
func (*Client) GetPermissionTargetDetails ¶
func (c *Client) GetPermissionTargetDetails(key string, q map[string]string) (PermissionTargetDetails, error)
GetPermissionTargetDetails returns the details of the provided permission target
func (*Client) GetPermissionTargets ¶
func (c *Client) GetPermissionTargets() ([]PermissionTarget, error)
GetPermissionTargets returns all permission targets
func (*Client) GetSystemHealthPing ¶
GetSystemHealthPing returns a simple status response about the state of Artifactory
func (*Client) GetSystemInfo ¶
GetSystemInfo returns the general system information about Artifactory
func (*Client) GetSystemSecurityConfiguration ¶
GetSystemSecurityConfiguration returns the security configuration for the artifactory server
func (*Client) GetUserAPIKey ¶
GetUserAPIKey returns the current user's api key
func (*Client) GetUserDetails ¶
GetUserDetails returns details for the named user
func (*Client) GetUserEncryptedPassword ¶
GetUserEncryptedPassword returns the current user's encrypted password
func (*Client) GetVersionAndAddOnInfo ¶
func (c *Client) GetVersionAndAddOnInfo() (VersionInfo, error)
GetVersionAndAddOnInfo returns information about the current Artifactory version, revision, and currently installed Add-ons
func (*Client) HTTPRequest ¶
HTTPRequest performs an HTTP request to artifactory
func (*Client) HTTPRequestWithResponse ¶
HTTPRequestWithResponse performs an HTTP request to artifactory and returns the http response
func (*Client) InstallHALicenses ¶
func (c *Client) InstallHALicenses(licenses []InstallLicense, q map[string]string) error
InstallHALicenses installs a new license key(s) on an HA cluster
func (*Client) InstallLicense ¶
func (c *Client) InstallLicense(license InstallLicense, q map[string]string) error
InstallLicense installs a new license key or changes the current one
func (*Client) PromoteDockerImage ¶
PromoteDockerImage promotes a Docker image from one repository to another
func (*Client) RetrieveArtifact ¶
RetrieveArtifact downloads the named artifact from the provided repo
func (*Client) SetItemProperties ¶
SetItemProperties attaches properties to an item (file or folder)
func (*Client) UpdateRepo ¶
UpdateRepo updates the named repo
func (*Client) VagrantSearch ¶
func (c *Client) VagrantSearch(name string) (files []AQLFileInfo, e error)
VagrantSearch searches for vagrant images
type ClientConfig ¶
type ClientConfig struct { BaseURL string Username string Password string Token string AuthMethod string VerifySSL bool Client *http.Client Transport *http.Transport }
ClientConfig is the configuration for an ArtifactoryClient
type CreatedStorageItem ¶
type CreatedStorageItem struct { URI string `json:"uri"` DownloadURI string `json:"downloadUri"` Repo string `json:"repo"` Created string `json:"created"` CreatedBy string `json:"createdBy"` Size string `json:"size"` MimeType string `json:"mimeType"` Checksums ArtifactChecksums `json:"checksums"` OriginalChecksums ArtifactChecksums `json:"originalChecksums"` }
CreatedStorageItem represents a created storage item in artifactory
type DockerImagePromotion ¶
type DockerImagePromotion struct { TargetRepo string `json:"targetRepo"` // The target repository for the move or copy DockerRepository string `json:"dockerRepository"` // The docker repository name to promote TargetDockerRepository string `json:"targetDockerRepository,omitempty"` // An optional docker repository name, if null, will use the same name as 'dockerRepository' Tag string `json:"tag,omitempty"` // An optional tag name to promote, if null - the entire docker repository will be promoted. Available from v4.10. TargetTag string `json:"targetTag,omitempty"` // An optional target tag to assign the image after promotion, if null - will use the same tag Copy bool `json:"copy,omitempty"` // An optional value to set whether to copy instead of move. Default: false }
DockerImagePromotion represents the image promotion payload we send to Artifactory
type DockerImageTags ¶
type DockerImageTags struct { Name string `json:"name,omitempty"` Tags []string `json:"tags,omitempty"` }
DockerImageTags represents the list of tags for an image in a docker repo
type DockerImages ¶
type DockerImages struct {
Repositories []string `json:"repositories,omitempty"`
}
DockerImages represents the list of docker images in a docker repo
type ErrorsJSON ¶
type ErrorsJSON struct { Errors []ErrorJSON `json:"errors,omitempty"` Error string `json:"error,omitempty"` }
ErrorsJSON represents a group of error messages returned by the artifactory api
type FileInfo ¶
type FileInfo struct { URI string `json:"uri"` DownloadURI string `json:"downloadUri"` Repo string `json:"repo"` Path string `json:"path"` RemoteURL string `json:"remoteUrl,omitempty"` Created string `json:"created"` CreatedBy string `json:"createdBy"` LastModified string `json:"lastModified"` ModifiedBy string `json:"modifiedBy"` LastUpdated string `json:"lastUpdated"` Size string `json:"size"` MimeType string `json:"mimeType"` Properties ArtifactProperties `json:"properties"` Checksums struct { MD5 string `json:"md5"` SHA1 string `json:"sha1"` SHA256 string `json:"sha256"` } `json:"checksums"` OriginalChecksums struct { MD5 string `json:"md5"` SHA1 string `json:"sha1"` SHA256 string `json:"sha256"` } `json:"originalChecksums,omitempty"` }
FileInfo represents the json returned by the artifactory API for a file
type FileList ¶
type FileList struct { URI string `json:"uri"` Created string `json:"created"` Files []FileListItem `json:"files"` }
FileList represents a list of files
type FileListItem ¶
type FileListItem struct { URI string `json:"uri"` Size int `json:"size"` LastModified string `json:"lastModified"` Folder bool `json:"folder"` SHA1 string `json:"sha1"` }
FileListItem represents an item in a list of files
type GAVC ¶
type GAVC struct { GroupID string ArtifactID string Version string Classifier string Repos []string }
GAVC represents a GAVC search
type GavcSearchResults ¶
type GavcSearchResults struct {
Results []FileInfo `json:"results"`
}
GavcSearchResults represents gavc search results
type GenericRepoConfig ¶
type GenericRepoConfig struct { Key string `json:"key,omitempty"` RClass string `json:"rclass"` PackageType string `json:"packageType,omitempty"` Description string `json:"description,omitempty"` Notes string `json:"notes,omitempty"` IncludesPattern string `json:"includesPattern,omitempty"` ExcludesPattern string `json:"excludesPattern,omitempty"` LayoutRef string `json:"repoLayoutRef,omitempty"` HandleReleases bool `json:"handleReleases,omitempty"` HandleSnapshots bool `json:"handleSnapshots,omitempty"` MaxUniqueSnapshots int `json:"maxUniqueSnapshots,omitempty"` SuppressPomConsistencyChecks bool `json:"suppressPomConsistencyChecks,omitempty"` BlackedOut bool `json:"blackedOut,omitempty"` PropertySets []string `json:"propertySets,omitempty"` }
GenericRepoConfig represents the common json of a repo response from artifactory
func (GenericRepoConfig) MimeType ¶
func (r GenericRepoConfig) MimeType() string
MimeType returns the MimeType of a GenericRepoConfig
type GroupDetails ¶
type GroupDetails struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` AutoJoin bool `json:"autoJoin,omitempty"` Admin bool `json:"admin,omitempty"` Realm string `json:"realm,omitempty"` RealmAttributes string `json:"realmAttributes,omitempty"` }
GroupDetails represents the json response for a group's details in artifactory
type HALicense ¶
type HALicense struct { LicenseType string `json:"type"` ValidThrough string `json:"validThrough"` LicensedTo string `json:"licensedTo"` LicenseHash string `json:"licenseHash"` NodeID string `json:"nodeId"` NodeURL string `json:"nodeUrl"` Expired bool `json:"expired"` }
HALicense represents an element in the json response from Artifactory
type HALicenseInfo ¶
type HALicenseInfo struct {
Licenses []HALicense `json:"licenses"`
}
HALicenseInfo represents the json response from Artifactory for the HA license information
type InstallLicense ¶
type InstallLicense struct {
LicenseKey string `json:"licenseKey"`
}
InstallLicense represents the json payload we send to Artifactory
type ItemProperties ¶
type ItemProperties struct { URI string `json:"uri"` Properties map[string][]string `json:"properties"` }
ItemProperties represents a set of properties for an item in artifactory
type LicenseInfo ¶
type LicenseInfo struct { LicenseType string `json:"type"` ValidThrough string `json:"validThrough"` LicensedTo string `json:"licensedTo"` }
LicenseInfo represents the json response from Artifactory for license information
type LocalRepoConfig ¶
type LocalRepoConfig struct { GenericRepoConfig DebianTrivialLayout bool `json:"debianTrivialLayout,omitempty"` ChecksumPolicyType string `json:"checksumPolicyType,omitempty"` MaxUniqueTags int `json:"maxUniqueTags,omitempty"` SnapshotVersionBehavior string `json:"snapshotVersionBehavior,omitempty"` ArchiveBrowsingEnabled bool `json:"archiveBrowsingEnabled,omitempty"` CalculateYumMetadata bool `json:"calculateYumMetadata,omitempty"` YumRootDepth int `json:"yumRootDepth,omitempty"` DockerAPIVersion string `json:"dockerApiVersion,omitempty"` EnableFileListsIndexing bool `json:"enableFileListsIndexing,omitempty"` }
LocalRepoConfig represents a local repo type in artifactory
func (LocalRepoConfig) MimeType ¶
func (r LocalRepoConfig) MimeType() string
MimeType returns the MimeType for a local repo in artifactory
type PermissionTarget ¶
PermissionTarget represents the json returned by Artifactory for a permission target
type PermissionTargetDetails ¶
type PermissionTargetDetails struct { Name string `json:"name,omitempty"` IncludesPattern string `json:"includesPattern,omitempty"` ExcludesPattern string `json:"excludesPattern,omitempty"` Repositories []string `json:"repositories,omitempty"` Principals Principals `json:"principals,omitempty"` }
PermissionTargetDetails represents the json returned by Artifactory for permission target details
type Principals ¶
type Principals struct { Users map[string][]string `json:"users"` Groups map[string][]string `json:"groups"` }
Principals represents the json response for principals in Artifactory
type RemoteRepoConfig ¶
type RemoteRepoConfig struct { GenericRepoConfig URL string `json:"url"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Proxy string `json:"proxy,omitempty"` RemoteRepoChecksumPolicyType string `json:"remoteRepoChecksumPolicyType,omitempty"` HardFail bool `json:"hardFail,omitempty"` Offline bool `json:"offline,omitempty"` StoreArtifactsLocally bool `json:"storeArtifactsLocally,omitempty"` SocketTimeoutMillis int `json:"socketTimeoutMillis,omitempty"` LocalAddress string `json:"localAddress,omitempty"` RetrivialCachePeriodSecs int `json:"retrievalCachePeriodSecs,omitempty"` FailedRetrievalCachePeriodSecs int `json:"failedRetrievalCachePeriodSecs,omitempty"` MissedRetrievalCachePeriodSecs int `json:"missedRetrievalCachePeriodSecs,omitempty"` UnusedArtifactsCleanupEnabled bool `json:"unusedArtifactCleanupEnabled,omitempty"` UnusedArtifactsCleanupPeriodHours int `json:"unusedArtifactCleanupPeriodHours,omitempty"` FetchJarsEagerly bool `json:"fetchJarsEagerly,omitempty"` FetchSourcesEagerly bool `json:"fetchSourcesEagerly,omitempty"` SynchronizeProperties bool `json:"synchronizeProperties,omitempty"` BlockMismatchingMimeTypes bool `json:"blockMismatchingMimeTypes,omitempty"` AllowAnyHostAuth bool `json:"allowAnyHostAuth,omitempty"` EnableCookieManagement bool `json:"enableCookieManagement,omitempty"` BowerRegistryURL string `json:"bowerRegistryUrl,omitempty"` VcsType string `json:"vcsType,omitempty"` VcsGitProvider string `json:"vcsGitProvider,omitempty"` VcsGitDownloader string `json:"vcsGitDownloader,omitempty"` ClientTLSCertificate string `json:"clientTlsCertificate,omitempty"` }
RemoteRepoConfig represents a remote repo in artifactory
func (RemoteRepoConfig) MimeType ¶
func (r RemoteRepoConfig) MimeType() string
MimeType returns the mimetype of a remote repo
type Repo ¶
type Repo struct { Key string `json:"key"` Rtype string `json:"type"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` }
Repo represents the json response from Artifactory describing a repository
type RepoConfig ¶
type RepoConfig interface {
MimeType() string
}
RepoConfig represents a repo config
type Request ¶
type Request struct { Verb string Path string ContentType string Accept string QueryParams map[string]string Body io.Reader }
Request represents an artifactory http request
type UserAPIKey ¶
type UserAPIKey struct {
APIKey string `json:"apiKey"`
}
UserAPIKey represents the JSON returned for a user's API Key in Artifactory
type UserDetails ¶
type UserDetails struct { Name string `json:"name,omitempty"` Email string `json:"email"` Password string `json:"password"` Admin bool `json:"admin,omitempty"` ProfileUpdatable bool `json:"profileUpdatable,omitempty"` DisableUIAccess bool `json:"disableUIAccess,omitempty"` InternalPasswordDisabled bool `json:"internalPasswordDisabled,omitempty"` LastLoggedIn string `json:"lastLoggedIn,omitempty"` Realm string `json:"realm,omitempty"` Groups []string `json:"groups,omitempty"` }
UserDetails represents the details of a user in artifactory
type VersionInfo ¶
type VersionInfo struct { Version string `json:"version"` Revision string `json:"revision"` Addons []string `json:"addons"` }
VersionInfo represents the version information about Artifactory
type VirtualRepoConfig ¶
type VirtualRepoConfig struct { GenericRepoConfig Repositories []string `json:"repositories"` DebianTrivialLayout bool `json:"debianTrivialLayout,omitempty"` ArtifactoryRequestsCanRetrieveRemoteArtifacts bool `json:"artifactoryRequestsCanRetrieveRemoteArtifacts,omitempty"` KeyPair string `json:"keyPair,omitempty"` PomRepositoryReferencesCleanupPolicy string `json:"pomRepositoryReferencesCleanupPolicy,omitempty"` DefaultDeploymentRepo string `json:"defaultDeploymentRepo,omitempty"` }
VirtualRepoConfig represents a virtual repo in artifactory
func (VirtualRepoConfig) MimeType ¶
func (r VirtualRepoConfig) MimeType() string
MimeType returns the mimetype for a virtual repo in artifactory