artifactory

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ExportSettingsMimeType string = "application/vnd.org.jfrog.artifactory.system.ExportSettings+json"

ExportSettingsMimeType is the mimetype for export settings

View Source
const GroupMimeType string = "application/vnd.org.jfrog.artifactory.security.Group+json"

GroupMimeType is the mimetype for a group

View Source
const ImportSettingsMimeType string = "application/vnd.org.jfrog.artifactory.system.ImportSettings+json"

ImportSettingsMimeType is the mimetype for import settings

View Source
const LocalRepoMimeType string = "application/vnd.org.jfrog.artifactory.repositories.LocalRepositoryConfiguration+json"

LocalRepoMimeType is the mimetype for a local repo

View Source
const PermissionTargetMimeType string = "application/vnd.org.jfrog.artifactory.security.PermissionTarget+json"

PermissionTargetMimeType is the mimetype for a permission target

View Source
const RemoteRepoMimeType string = "application/vnd.org.jfrog.artifactory.repositories.RemoteRepositoryConfiguration+json"

RemoteRepoMimeType is the mimetype for a remote repo

View Source
const SystemVersionMimeType string = "application/vnd.org.jfrog.artifactory.system.Version+json"

SystemVersionMimeType is the mimetype for system version

View Source
const UserMimeType string = "application/vnd.org.jfrog.artifactory.security.User+json"

UserMimeType is the mimetype for a user

View Source
const VirtualRepoMimeType string = "application/vnd.org.jfrog.artifactory.repositories.VirtualRepositoryConfiguration+json"

VirtualRepoMimeType is the mimetype for a virtual repo

Variables

View Source
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
)
View Source
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

type AQLProperties struct {
	Key   string `json:"key"`
	Value string `json:"value,omitempty"`
}

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 Artifact

type Artifact struct {
	Info   FileInfo
	Client *Client
}

Artifact defines the structure of an artifact

func (*Artifact) Delete

func (c *Artifact) Delete() error

Delete deletes an artifact

func (*Artifact) Download

func (c *Artifact) Download() ([]byte, error)

Download downloads an artifact

type ArtifactChecksums

type ArtifactChecksums struct {
	MD5  string `json:"md5"`
	SHA1 string `json:"sha1"`
}

ArtifactChecksums represents the checksums for an artifact

type ArtifactProperties

type ArtifactProperties map[string][]string

ArtifactProperties represents a set of properties for an Artifact

type ChildItem

type ChildItem struct {
	URI    string `json:"uri"`
	Folder bool   `json:"folder"`
}

Children Item

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

func NewClientFromEnv() (*Client, error)

NewClientFromEnv returns a new ArtifactoryClient the is automatically configured from environment variables

func (*Client) CreateGroup

func (c *Client) CreateGroup(key string, g GroupDetails, q map[string]string) error

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

func (c *Client) CreateRepo(key string, r RepoConfig, q map[string]string) error

CreateRepo creates the named repo

func (*Client) CreateUser

func (c *Client) CreateUser(key string, u UserDetails, q map[string]string) error

CreateUser creates a user with the specified details

func (*Client) CreateUserAPIKey

func (c *Client) CreateUserAPIKey() (string, error)

CreateUserAPIKey creates an apikey for the current user

func (*Client) Delete

func (c *Client) Delete(path string) error

Delete performs an http DELETE to artifactory

func (*Client) DeleteArtifact

func (c *Client) DeleteArtifact(repo, path string) ([]byte, error)

DeleteArtifact deletes the named artifact from the provided repo

func (*Client) DeleteItemProperties

func (c *Client) DeleteItemProperties(repo string, path string, properties []string) error

DeleteItemProperties deletes the specified properties from an item (file or folder)

func (*Client) DeleteUser

func (c *Client) DeleteUser(key string) error

DeleteUser deletes a user

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

func (c *Client) DockerSearch(name string) (files []FileInfo, e error)

DockerSearch searches for docker images

func (*Client) GAVCSearch

func (c *Client) GAVCSearch(coords *GAVC) (files []FileInfo, e error)

GAVCSearch performs a search based on GAVC coordinates

func (*Client) Get

func (c *Client) Get(path string, options map[string]string) ([]byte, error)

Get performs an http GET to artifactory

func (*Client) GetDockerRepoImageTags

func (c *Client) GetDockerRepoImageTags(key, image string, q map[string]string) ([]string, error)

GetDockerRepoImageTags returns the docker images in the named repo

func (*Client) GetDockerRepoImages

func (c *Client) GetDockerRepoImages(key string, q map[string]string) ([]string, error)

GetDockerRepoImages returns the docker images in the named repo

func (*Client) GetFileInfo

func (c *Client) GetFileInfo(path string) (a Artifact, err error)

GetFileInfo returns the details about an artifact

func (*Client) GetFileList

func (c *Client) GetFileList(repo string, path string) (FileList, error)

GetFileList lists all files in the specified repo

func (*Client) GetGeneralConfiguration

func (c *Client) GetGeneralConfiguration() (string, error)

GetGeneralConfiguration returns the general Artifactory configuration

func (*Client) GetGroupDetails

func (c *Client) GetGroupDetails(key string, q map[string]string) (GroupDetails, error)

GetGroupDetails returns details for a Group

func (*Client) GetGroups

func (c *Client) GetGroups() ([]Group, error)

GetGroups gets a list of groups from artifactory

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) GetRepo

func (c *Client) GetRepo(key string, q map[string]string) (RepoConfig, error)

GetRepo returns the named repo

func (*Client) GetRepos

func (c *Client) GetRepos(rtype string) ([]Repo, error)

GetRepos returns all repos of the provided type

func (*Client) GetSystemHealthPing

func (c *Client) GetSystemHealthPing() (string, error)

GetSystemHealthPing returns a simple status response about the state of Artifactory

func (*Client) GetSystemInfo

func (c *Client) GetSystemInfo() (string, error)

GetSystemInfo returns the general system information about Artifactory

func (*Client) GetSystemSecurityConfiguration

func (c *Client) GetSystemSecurityConfiguration() (s string, e error)

GetSystemSecurityConfiguration returns the security configuration for the artifactory server

func (*Client) GetUserAPIKey

func (c *Client) GetUserAPIKey() (string, error)

GetUserAPIKey returns the current user's api key

func (*Client) GetUserDetails

func (c *Client) GetUserDetails(key string, q map[string]string) (UserDetails, error)

GetUserDetails returns details for the named user

func (*Client) GetUserEncryptedPassword

func (c *Client) GetUserEncryptedPassword() (string, error)

GetUserEncryptedPassword returns the current user's encrypted password

func (*Client) GetUsers

func (c *Client) GetUsers() ([]User, error)

GetUsers returns all users

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

func (c *Client) HTTPRequest(ar Request) ([]byte, error)

HTTPRequest performs an HTTP request to artifactory

func (*Client) HTTPRequestWithResponse

func (c *Client) HTTPRequestWithResponse(ar Request) (*http.Response, error)

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) Post

func (c *Client) Post(path string, data []byte, options map[string]string) ([]byte, error)

Post performs an http POST to artifactory

func (*Client) PromoteDockerImage

func (c *Client) PromoteDockerImage(key string, p DockerImagePromotion, q map[string]string) error

PromoteDockerImage promotes a Docker image from one repository to another

func (*Client) Put

func (c *Client) Put(path string, data []byte, options map[string]string) ([]byte, error)

Put performs an http PUT to artifactory

func (*Client) RetrieveArtifact

func (c *Client) RetrieveArtifact(repo string, path string) ([]byte, error)

RetrieveArtifact downloads the named artifact from the provided repo

func (*Client) SetItemProperties

func (c *Client) SetItemProperties(repo string, path string, properties map[string][]string) error

SetItemProperties attaches properties to an item (file or folder)

func (*Client) UpdateRepo

func (c *Client) UpdateRepo(key string, r RepoConfig, q map[string]string) error

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 ErrorJSON

type ErrorJSON struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

ErrorJSON represents a single error message returned by the artifactory API

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"`
	Children     []ChildItem        `json:"children"`
	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 Group

type Group struct {
	Name string `json:"name"`
	URI  string `json:"uri"`
}

Group represents the json response for a group in Artifactory

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

type PermissionTarget struct {
	Name string `json:"name"`
	URI  string `json:"uri"`
}

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"`
	ShareConfiguration                bool   `json:"shareConfiguration,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 URI

type URI struct {
	URI string `json:"uri,omitempty"`
}

URI is a URI in artifactory json

type User

type User struct {
	Name string `json:"name"`
	URI  string `json:"uri"`
}

User represents a user in artifactory

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL