artifactory

package
v0.0.0-...-d149ee6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VersionMajor is for an API incompatible changes
	VersionMajor int64 = 6
	// VersionMinor is for functionality in a backwards-compatible manner
	VersionMinor int64 = 1
	// 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

func Bool

func Bool(v bool) *bool

Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.

func CheckResponse

func CheckResponse(r *http.Response) error

CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range.

func Int

func Int(v int) *int

Int is a helper routine that allocates a new int value to store v and returns a pointer to it.

func Int64

func Int64(v int64) *int64

Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.

func String

func String(v string) *string

String is a helper routine that allocates a new string value to store v and returns a pointer to it.

func Stringify

func Stringify(message interface{}) string

Stringify attempts to create a reasonable string representation of types in the Artifactory library. It does things like resolve pointers to their values and omits struct fields with nil values.

Types

type APIKey

type APIKey struct {
	APIKey *string `json:"apiKey,omitempty"`
}

APIKey represents an api key in Artifactory.

func (*APIKey) GetAPIKey

func (a *APIKey) GetAPIKey() string

GetAPIKey returns the APIKey field if it's non-nil, zero value otherwise.

func (APIKey) String

func (a APIKey) String() string

type AccessClientSettings

type AccessClientSettings struct {
	ServerUrl                           *string `yaml:"serverUrl,omitempty" xml:"serverUrl,omitempty"`
	AdminToken                          *string `yaml:"adminToken,omitempty" xml:"adminToken,omitempty"`
	UserTokenMaxExpiresInMinutes        *int    `yaml:"userTokenMaxExpiresInMinutes,omitempty" xml:"userTokenMaxExpiresInMinutes,omitempty"`
	TokenVerifyResultCacheSize          *int    `yaml:"tokenVerifyResultCacheSize,omitempty" xml:"tokenVerifyResultCacheSize,omitempty"`
	TokenVerifyResultCacheExpirySeconds *int    `yaml:"tokenVerifyResultCacheExpirySeconds,omitempty" xml:"tokenVerifyResultCacheExpirySeconds,omitempty"`
}

AccessClientSettings represents the Access Client settings in Artifactory Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*AccessClientSettings) GetAdminToken

func (a *AccessClientSettings) GetAdminToken() string

GetAdminToken returns the AdminToken field if it's non-nil, zero value otherwise.

func (*AccessClientSettings) GetServerUrl

func (a *AccessClientSettings) GetServerUrl() string

GetServerUrl returns the ServerUrl field if it's non-nil, zero value otherwise.

func (*AccessClientSettings) GetTokenVerifyResultCacheExpirySeconds

func (a *AccessClientSettings) GetTokenVerifyResultCacheExpirySeconds() int

GetTokenVerifyResultCacheExpirySeconds returns the TokenVerifyResultCacheExpirySeconds field if it's non-nil, zero value otherwise.

func (*AccessClientSettings) GetTokenVerifyResultCacheSize

func (a *AccessClientSettings) GetTokenVerifyResultCacheSize() int

GetTokenVerifyResultCacheSize returns the TokenVerifyResultCacheSize field if it's non-nil, zero value otherwise.

func (*AccessClientSettings) GetUserTokenMaxExpiresInMinutes

func (a *AccessClientSettings) GetUserTokenMaxExpiresInMinutes() int

GetUserTokenMaxExpiresInMinutes returns the UserTokenMaxExpiresInMinutes field if it's non-nil, zero value otherwise.

type Actions

type Actions struct {
	Users  *map[string][]string `json:"users,omitempty"`
	Groups *map[string][]string `json:"groups,omitempty"`
}

Actions represents user and group permissions.

type AddonsConfig

type AddonsConfig struct {
	ShowAddonsInfo       *bool   `yaml:"showAddonsInfo,omitempty" xml:"showAddonsInfo,omitempty"`
	ShowAddonsInfoCookie *string `yaml:"showAddonsInfoCookie,omitempty" xml:"showAddonsInfoCookie,omitempty"`
}

AddonsConfig represents Addons-related configuration. This is undocumented in YAML Configuration File.

func (*AddonsConfig) GetShowAddonsInfo

func (a *AddonsConfig) GetShowAddonsInfo() bool

GetShowAddonsInfo returns the ShowAddonsInfo field if it's non-nil, zero value otherwise.

func (*AddonsConfig) GetShowAddonsInfoCookie

func (a *AddonsConfig) GetShowAddonsInfoCookie() string

GetShowAddonsInfoCookie returns the ShowAddonsInfoCookie field if it's non-nil, zero value otherwise.

type Agent

type Agent struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

Agent represents the agent in the build

func (*Agent) GetName

func (a *Agent) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*Agent) GetVersion

func (a *Agent) GetVersion() string

GetVersion returns the Version field if it's non-nil, zero value otherwise.

type ArtifactMessage

type ArtifactMessage struct {
	Level   *string `json:"level,omitempty"`
	Message *string `json:"message,omitempty"`
}

ArtifactMessage represents an artifact message in Artifactory.

func (*ArtifactMessage) GetLevel

func (a *ArtifactMessage) GetLevel() string

GetLevel returns the Level field if it's non-nil, zero value otherwise.

func (*ArtifactMessage) GetMessage

func (a *ArtifactMessage) GetMessage() string

GetMessage returns the Message field if it's non-nil, zero value otherwise.

func (ArtifactMessage) String

func (a ArtifactMessage) String() string

type Artifacts

type Artifacts struct {
	Messages *[]ArtifactMessage `json:"messages,omitempty"`
}

Artifacts represents artifacts in Artifactory.

func (*Artifacts) GetMessages

func (a *Artifacts) GetMessages() []ArtifactMessage

GetMessages returns the Messages field if it's non-nil, zero value otherwise.

func (Artifacts) String

func (a Artifacts) String() string

type ArtifactsService

type ArtifactsService service

ArtifactsService handles communication with the artifact related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SECURITY

func (*ArtifactsService) Copy

func (s *ArtifactsService) Copy(sourceRepo, sourcePath, targetRepo, targetPath string) (*Artifacts, *Response, error)

Copy duplicates the provided artifact to the provided destination.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CopyItem

func (*ArtifactsService) Delete

func (s *ArtifactsService) Delete(repo, path string) (*string, *Response, error)

Delete removes the provided artifact.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteItem

func (*ArtifactsService) Download

func (s *ArtifactsService) Download(repo, path string) (*[]byte, *Response, error)

Download retrieves the provided artifact.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RetrieveArtifact

func (*ArtifactsService) Move

func (s *ArtifactsService) Move(sourceRepo, sourcePath, targetRepo, targetPath string) (*Artifacts, *Response, error)

Move migrates the provided artifact to the provided destination.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-MoveItem

func (*ArtifactsService) Upload

func (s *ArtifactsService) Upload(repo, path, source string, properties map[string][]string) (*string, *Response, error)

Upload deploys the provided artifact to the provided repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifact

type AuthenticationService

type AuthenticationService struct {
	// contains filtered or unexported fields
}

AuthenticationService contains authentication related functions.

func (*AuthenticationService) HasAuth

func (s *AuthenticationService) HasAuth() bool

HasAuth checks if the auth type is set.

func (*AuthenticationService) HasBasicAuth

func (s *AuthenticationService) HasBasicAuth() bool

HasBasicAuth checks if the auth type is HTTP Basic auth.

func (*AuthenticationService) HasTokenAuth

func (s *AuthenticationService) HasTokenAuth() bool

HasTokenAuth checks if the auth type is Token auth.

func (*AuthenticationService) SetBasicAuth

func (s *AuthenticationService) SetBasicAuth(username, password string)

SetBasicAuth sets the auth type as HTTP Basic auth.

func (*AuthenticationService) SetTokenAuth

func (s *AuthenticationService) SetTokenAuth(token string)

SetTokenAuth sets the auth type as Token auth.

type Backup

type Backup struct {
	Key                    *string   `yaml:"-" xml:"key,omitempty"`
	CronExp                *string   `yaml:"cronExp,omitempty" xml:"cronExp,omitempty"`
	ExcludedRepositories   *[]string `yaml:"excludedRepositories,omitempty" xml:"excludedRepositories>repositoryRef,omitempty"`
	RetentionPeriodHours   *int      `yaml:"retentionPeriodHours,omitempty" xml:"retentionPeriodHours,omitempty"`
	CreateArchive          *bool     `yaml:"createArchive,omitempty" xml:"createArchive,omitempty"`
	Enabled                *bool     `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	ExcludeBuilds          *bool     `yaml:"excludeBuilds,omitempty" xml:"excludeBuilds,omitempty"`
	ExcludeNewRepositories *bool     `yaml:"excludeNewRepositories,omitempty" xml:"excludeNewRepositories,omitempty"`
	SendMailOnError        *bool     `yaml:"sendMailOnError,omitempty" xml:"sendMailOnError,omitempty"`
	Precalculate           *bool     `yaml:"precalculate,omitempty" xml:"precalculate,omitempty"`
}

Backup represents the Backup settings in Artifactory Services Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Servicesconfiguration(Backups,MavenIndexer)

func (*Backup) GetCreateArchive

func (b *Backup) GetCreateArchive() bool

GetCreateArchive returns the CreateArchive field if it's non-nil, zero value otherwise.

func (*Backup) GetCronExp

func (b *Backup) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*Backup) GetEnabled

func (b *Backup) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*Backup) GetExcludeBuilds

func (b *Backup) GetExcludeBuilds() bool

GetExcludeBuilds returns the ExcludeBuilds field if it's non-nil, zero value otherwise.

func (*Backup) GetExcludeNewRepositories

func (b *Backup) GetExcludeNewRepositories() bool

GetExcludeNewRepositories returns the ExcludeNewRepositories field if it's non-nil, zero value otherwise.

func (*Backup) GetExcludedRepositories

func (b *Backup) GetExcludedRepositories() []string

GetExcludedRepositories returns the ExcludedRepositories field if it's non-nil, zero value otherwise.

func (*Backup) GetKey

func (b *Backup) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*Backup) GetPrecalculate

func (b *Backup) GetPrecalculate() bool

GetPrecalculate returns the Precalculate field if it's non-nil, zero value otherwise.

func (*Backup) GetRetentionPeriodHours

func (b *Backup) GetRetentionPeriodHours() int

GetRetentionPeriodHours returns the RetentionPeriodHours field if it's non-nil, zero value otherwise.

func (*Backup) GetSendMailOnError

func (b *Backup) GetSendMailOnError() bool

GetSendMailOnError returns the SendMailOnError field if it's non-nil, zero value otherwise.

type Backups

type Backups []*Backup

Backups is an alias for a slice of Backup that can be properly marshaled to/from YAML.

func (Backups) MarshalYAML

func (b Backups) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for Backups.

func (*Backups) UnmarshalYAML

func (b *Backups) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Backups.

type BinariesSummary

type BinariesSummary struct {
	BinariesCount  *string `json:"binariesCount,omitempty"`
	BinariesSize   *string `json:"binariesSize,omitempty"`
	ArtifactsSize  *string `json:"artifactsSize,omitempty"`
	Optimization   *string `json:"optimization,omitempty"`
	ItemsCount     *string `json:"itemsCount,omitempty"`
	ArtifactsCount *string `json:"artifactsCount,omitempty"`
}

BinariesSummary represents the summary of binaries in Artifactory.

func (*BinariesSummary) GetArtifactsCount

func (b *BinariesSummary) GetArtifactsCount() string

GetArtifactsCount returns the ArtifactsCount field if it's non-nil, zero value otherwise.

func (*BinariesSummary) GetArtifactsSize

func (b *BinariesSummary) GetArtifactsSize() string

GetArtifactsSize returns the ArtifactsSize field if it's non-nil, zero value otherwise.

func (*BinariesSummary) GetBinariesCount

func (b *BinariesSummary) GetBinariesCount() string

GetBinariesCount returns the BinariesCount field if it's non-nil, zero value otherwise.

func (*BinariesSummary) GetBinariesSize

func (b *BinariesSummary) GetBinariesSize() string

GetBinariesSize returns the BinariesSize field if it's non-nil, zero value otherwise.

func (*BinariesSummary) GetItemsCount

func (b *BinariesSummary) GetItemsCount() string

GetItemsCount returns the ItemsCount field if it's non-nil, zero value otherwise.

func (*BinariesSummary) GetOptimization

func (b *BinariesSummary) GetOptimization() string

GetOptimization returns the Optimization field if it's non-nil, zero value otherwise.

type BintrayApplication

type BintrayApplication struct {
	Key          *string `yaml:"-" xml:"key,omitempty"`
	ClientId     *string `yaml:"clientId" xml:"clientId,omitempty"`
	Secret       *string `yaml:"secret" xml:"secret,omitempty"`
	Org          *string `yaml:"org" xml:"org,omitempty"`
	Scope        *string `yaml:"scope" xml:"scope,omitempty"`
	RefreshToken *string `yaml:"refreshToken" xml:"refreshToken,omitempty"`
}

BintrayApplication represents Bintray Oauth applications configuration. This is undocumented in YAML Configuration File.

func (*BintrayApplication) GetClientId

func (b *BintrayApplication) GetClientId() string

GetClientId returns the ClientId field if it's non-nil, zero value otherwise.

func (*BintrayApplication) GetKey

func (b *BintrayApplication) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*BintrayApplication) GetOrg

func (b *BintrayApplication) GetOrg() string

GetOrg returns the Org field if it's non-nil, zero value otherwise.

func (*BintrayApplication) GetRefreshToken

func (b *BintrayApplication) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field if it's non-nil, zero value otherwise.

func (*BintrayApplication) GetScope

func (b *BintrayApplication) GetScope() string

GetScope returns the Scope field if it's non-nil, zero value otherwise.

func (*BintrayApplication) GetSecret

func (b *BintrayApplication) GetSecret() string

GetSecret returns the Secret field if it's non-nil, zero value otherwise.

type BintrayApplications

type BintrayApplications []*BintrayApplication

BintrayApplications is an alias for a slice of BintrayApplication that can be properly marshaled to/from YAML.

func (BintrayApplications) MarshalYAML

func (b BintrayApplications) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for RepoLayouts.

func (*BintrayApplications) UnmarshalYAML

func (b *BintrayApplications) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for RepoLayouts.

type BintrayConfig

type BintrayConfig struct {
	UserName        *string `yaml:"userName,omitempty" xml:"userName,omitempty"`
	ApiKey          *string `yaml:"apiKey,omitempty" xml:"apiKey,omitempty"`
	FileUploadLimit *int    `yaml:"fileUploadLimit,omitempty" xml:"fileUploadLimit,omitempty"`
}

BintrayConfig represents Bintray settings in Artifactory's Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*BintrayConfig) GetApiKey

func (b *BintrayConfig) GetApiKey() string

GetApiKey returns the ApiKey field if it's non-nil, zero value otherwise.

func (*BintrayConfig) GetFileUploadLimit

func (b *BintrayConfig) GetFileUploadLimit() int

GetFileUploadLimit returns the FileUploadLimit field if it's non-nil, zero value otherwise.

func (*BintrayConfig) GetUserName

func (b *BintrayConfig) GetUserName() string

GetUserName returns the UserName field if it's non-nil, zero value otherwise.

type Build

type Build struct {
	BuildInfo *BuildInfo `json:"buildInfo,omitempty"`
	URI       *string    `json:"uri,omitempty"`
}

Build represents a build in Artifactory.

func (*Build) GetBuildInfo

func (b *Build) GetBuildInfo() *BuildInfo

GetBuildInfo returns the BuildInfo field.

func (*Build) GetURI

func (b *Build) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (Build) String

func (b Build) String() string

type BuildArtifacts

type BuildArtifacts struct {
	Sha1   *string `json:"sha1,omitempty"`
	Sha256 *string `json:"sha256,omitempty"`
	Md5    *string `json:"md5,omitempty"`
	Name   *string `json:"name,omitempty"`
}

BuildArtifacts contains information about build artifacts

func (*BuildArtifacts) GetMd5

func (b *BuildArtifacts) GetMd5() string

GetMd5 returns the Md5 field if it's non-nil, zero value otherwise.

func (*BuildArtifacts) GetName

func (b *BuildArtifacts) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*BuildArtifacts) GetSha1

func (b *BuildArtifacts) GetSha1() string

GetSha1 returns the Sha1 field if it's non-nil, zero value otherwise.

func (*BuildArtifacts) GetSha256

func (b *BuildArtifacts) GetSha256() string

GetSha256 returns the Sha256 field if it's non-nil, zero value otherwise.

type BuildInfo

type BuildInfo struct {
	Properties           *map[string]string `json:"properties,omitempty"`
	Version              *string            `json:"version,omitempty"`
	Name                 *string            `json:"name,omitempty"`
	Number               *string            `json:"number,omitempty"`
	BuildAgent           *Agent             `json:"buildAgent,omitempty"`
	Agent                *Agent             `json:"agent,omitempty"`
	Started              *string            `json:"started,omitempty"`
	DurationMillis       *int               `json:"durationMillis,omitempty"`
	ArtifactoryPrincipal *string            `json:"artifactoryPrincipal,omitempty"`
	Modules              *[]Modules         `json:"modules,omitempty"`
}

BuildInfo represent the build payload in Artifactory

func (*BuildInfo) GetAgent

func (b *BuildInfo) GetAgent() *Agent

GetAgent returns the Agent field.

func (*BuildInfo) GetArtifactoryPrincipal

func (b *BuildInfo) GetArtifactoryPrincipal() string

GetArtifactoryPrincipal returns the ArtifactoryPrincipal field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetBuildAgent

func (b *BuildInfo) GetBuildAgent() *Agent

GetBuildAgent returns the BuildAgent field.

func (*BuildInfo) GetDurationMillis

func (b *BuildInfo) GetDurationMillis() int

GetDurationMillis returns the DurationMillis field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetModules

func (b *BuildInfo) GetModules() []Modules

GetModules returns the Modules field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetName

func (b *BuildInfo) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetNumber

func (b *BuildInfo) GetNumber() string

GetNumber returns the Number field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetProperties

func (b *BuildInfo) GetProperties() map[string]string

GetProperties returns the Properties field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetStarted

func (b *BuildInfo) GetStarted() string

GetStarted returns the Started field if it's non-nil, zero value otherwise.

func (*BuildInfo) GetVersion

func (b *BuildInfo) GetVersion() string

GetVersion returns the Version field if it's non-nil, zero value otherwise.

type BuildService

type BuildService service

BuildService handles communication with the builds related methods of the Artifactory API.

func (*BuildService) GetInfo

func (s *BuildService) GetInfo(name, number string) (*Build, *Response, error)

GetInfo retrieves the provided build.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-BuildInfo

type Checksums

type Checksums struct {
	MD5    *string `json:"md5,omitempty"`
	SHA1   *string `json:"sha1,omitempty"`
	SHA256 *string `json:"sha256,omitempty"`
}

Checksums represents the checksums for a file in Artifactory.

func (*Checksums) GetMD5

func (c *Checksums) GetMD5() string

GetMD5 returns the MD5 field if it's non-nil, zero value otherwise.

func (*Checksums) GetSHA1

func (c *Checksums) GetSHA1() string

GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise.

func (*Checksums) GetSHA256

func (c *Checksums) GetSHA256() string

GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise.

type Child

type Child struct {
	URI    *string `json:"uri,omitempty"`
	Folder *string `json:"folder,omitempty"`
}

Child represents a child under a folder in Artifactory.

func (*Child) GetFolder

func (c *Child) GetFolder() string

GetFolder returns the Folder field if it's non-nil, zero value otherwise.

func (*Child) GetURI

func (c *Child) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

type CleanupConfig

type CleanupConfig struct {
	CronExp *string `yaml:"cronExp,omitempty" xml:"cronExp,omitempty"`
	Reset   *bool   `yaml:"-" xml:"-"`
}

CleanupConfig represents the Cleanup Unused Cached Artifacts setting in Artifactory Maintenance Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Servicesconfiguration(Backups,MavenIndexer)

func (*CleanupConfig) GetCronExp

func (c *CleanupConfig) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*CleanupConfig) GetReset

func (c *CleanupConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (CleanupConfig) MarshalYAML

func (c CleanupConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type Client

type Client struct {

	// User agent used when communicating with the Artifactory API.
	UserAgent string

	// Artifactory service for authentication.
	Authentication *AuthenticationService
	Artifacts      *ArtifactsService
	Build          *BuildService
	Docker         *DockerService
	Groups         *GroupsService
	Licenses       *LicensesService
	Permissions    *PermissionsService
	PermissionsV2  *PermissionsServiceV2
	Replications   *ReplicationsService
	Repositories   *RepositoriesService
	Search         *SearchService
	Storage        *StorageService
	System         *SystemService
	Users          *UsersService
	// contains filtered or unexported fields
}

Client is a client that manages communication with the Artifactory API.

func NewClient

func NewClient(baseUrl string, httpClient *http.Client) (*Client, error)

NewClient returns a new Artifactory API client. baseUrl has to be the HTTP endpoint of the Artifactory API. If no httpClient is provided, then the http.DefaultClient will be used.

func (*Client) Call

func (c *Client) Call(method, u string, body interface{}, v interface{}) (*Response, error)

Call is a combine function for Client.NewRequest and Client.Do.

Most API methods are quite the same. Get the URL, apply options, make a request, and get the response. Without adding special headers or something. To avoid a big amount of code duplication you can Client.Call.

method is the HTTP method you want to call. u is the URL you want to call. body is the HTTP body. v is the HTTP response.

For more information read https://github.com/google/go-github/issues/234

func (*Client) Do

func (c *Client) Do(req *http.Request, v interface{}) (*Response, error)

Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it.

func (*Client) NewRequest

func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)

NewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the baseURL of the Client. Relative URLs should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included as the request body.

type ContentSynchronisation

type ContentSynchronisation struct {
	Enabled    *bool `json:"enabled,omitempty" xml:"enabled,omitempty"`
	Properties *struct {
		Enabled *bool `json:"enabled,omitempty" xml:"enabled,omitempty"`
	} `json:"properties,omitempty" xml:"properties,omitempty"`
	Statistics *struct {
		Enabled *bool `json:"enabled,omitempty" xml:"enabled,omitempty"`
	} `json:"statistics,omitempty" xml:"statistics,omitempty"`
	Source *struct {
		OriginAbsenceDetection *bool `json:"originAbsenceDetection,omitempty" xml:"originAbsenceDetection,omitempty"`
	} `json:"source,omitempty" xml:"source,omitempty"`
}

ContentSynchronisation represents smart remote repository configuration

func (*ContentSynchronisation) GetEnabled

func (c *ContentSynchronisation) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

type CrowdSettings

type CrowdSettings struct {
	ApplicationName           *string `yaml:"applicationName,omitempty" xml:"applicationName,omitempty"`
	Password                  *string `yaml:"password,omitempty" xml:"password,omitempty"`
	ServerUrl                 *string `yaml:"serverUrl,omitempty" xml:"serverUrl,omitempty"`
	SessionValidationInterval *int    `yaml:"sessionValidationInterval,omitempty" xml:"sessionValidationInterval,omitempty"`
	EnableIntegration         *bool   `yaml:"enableIntegration,omitempty" xml:"enableIntegration,omitempty"`
	NoAutoUserCreation        *bool   `yaml:"noAutoUserCreation,omitempty" xml:"noAutoUserCreation,omitempty"`
	UseDefaultProxy           *bool   `yaml:"useDefaultProxy,omitempty" xml:"useDefaultProxy,omitempty"`
	Reset                     *bool   `yaml:"-" xml:"-"`
}

CrowdSettings represents the Crowd settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*CrowdSettings) GetApplicationName

func (c *CrowdSettings) GetApplicationName() string

GetApplicationName returns the ApplicationName field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetEnableIntegration

func (c *CrowdSettings) GetEnableIntegration() bool

GetEnableIntegration returns the EnableIntegration field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetNoAutoUserCreation

func (c *CrowdSettings) GetNoAutoUserCreation() bool

GetNoAutoUserCreation returns the NoAutoUserCreation field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetPassword

func (c *CrowdSettings) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetReset

func (c *CrowdSettings) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetServerUrl

func (c *CrowdSettings) GetServerUrl() string

GetServerUrl returns the ServerUrl field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetSessionValidationInterval

func (c *CrowdSettings) GetSessionValidationInterval() int

GetSessionValidationInterval returns the SessionValidationInterval field if it's non-nil, zero value otherwise.

func (*CrowdSettings) GetUseDefaultProxy

func (c *CrowdSettings) GetUseDefaultProxy() bool

GetUseDefaultProxy returns the UseDefaultProxy field if it's non-nil, zero value otherwise.

func (CrowdSettings) MarshalYAML

func (c CrowdSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type DeleteAPIKey

type DeleteAPIKey struct {
	Info *string `json:"info,omitempty"`
}

DeleteAPIKey represents a response from deleting an API key in Artifactory

func (*DeleteAPIKey) GetInfo

func (d *DeleteAPIKey) GetInfo() string

GetInfo returns the Info field if it's non-nil, zero value otherwise.

func (DeleteAPIKey) String

func (d DeleteAPIKey) String() string

type DockerService

type DockerService service

DockerService handles communication with the Docker related methods of the Artifactory API.

func (*DockerService) GetRepositories

func (s *DockerService) GetRepositories(registry string) (*Registry, *Response, error)

GetRepositories returns a list of all Docker repositories for the provided registry.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ListDockerRepositories

func (*DockerService) GetTags

func (s *DockerService) GetTags(registry, repository string) (*Tags, *Response, error)

GetTags returns a list of all tags for the provided Docker repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ListDockerTags

func (*DockerService) PromoteImage

func (s *DockerService) PromoteImage(registry string, promotion *ImagePromotion) (*string, *Response, error)

PromoteImage promotes the provided Docker image(s) from the provided source repository to the provided destination repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-PromoteDockerImage

type DownloadRedirectConfig

type DownloadRedirectConfig struct {
	FileMinimumSize *int  `yaml:"fileMinimumSize,omitempty" xml:"fileMinimumSize,omitempty"`
	Reset           *bool `yaml:"-" xml:"-"`
}

DownloadRedirectConfig represents Download Redirect settings in Artifactory's Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*DownloadRedirectConfig) GetFileMinimumSize

func (d *DownloadRedirectConfig) GetFileMinimumSize() int

GetFileMinimumSize returns the FileMinimumSize field if it's non-nil, zero value otherwise.

func (*DownloadRedirectConfig) GetReset

func (d *DownloadRedirectConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (DownloadRedirectConfig) MarshalYAML

func (d DownloadRedirectConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type EffectiveItemPermissions

type EffectiveItemPermissions struct {
	URI        *string     `json:"uri,omitempty"`
	Principals *Principals `json:"principals,omitempty"`
}

EffectiveItemPermissions represents a list of permissions for a file or folder in Artifactory.

func (*EffectiveItemPermissions) GetPrincipals

func (e *EffectiveItemPermissions) GetPrincipals() *Principals

GetPrincipals returns the Principals field.

func (*EffectiveItemPermissions) GetURI

func (e *EffectiveItemPermissions) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (EffectiveItemPermissions) String

func (e EffectiveItemPermissions) String() string

type ExpirationPolicy

type ExpirationPolicy struct {
	Enabled        *bool `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	PasswordMaxAge *int  `yaml:"passwordMaxAge,omitempty" xml:"passwordMaxAge,omitempty"`
	NotifyByEmail  *bool `yaml:"notifyByEmail,omitempty" xml:"notifyByEmail,omitempty"`
	Reset          *bool `yaml:"-" xml:"-"`
}

ExpirationPolicy represents the Password Expiration Policy settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*ExpirationPolicy) GetEnabled

func (e *ExpirationPolicy) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*ExpirationPolicy) GetNotifyByEmail

func (e *ExpirationPolicy) GetNotifyByEmail() bool

GetNotifyByEmail returns the NotifyByEmail field if it's non-nil, zero value otherwise.

func (*ExpirationPolicy) GetPasswordMaxAge

func (e *ExpirationPolicy) GetPasswordMaxAge() int

GetPasswordMaxAge returns the PasswordMaxAge field if it's non-nil, zero value otherwise.

func (*ExpirationPolicy) GetReset

func (e *ExpirationPolicy) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (ExpirationPolicy) MarshalYAML

func (e ExpirationPolicy) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type File

type File struct {
	URI               *string    `json:"uri,omitempty"`
	DownloadURI       *string    `json:"downloadUri,omitempty"`
	Repo              *string    `json:"repo,omitempty"`
	Path              *string    `json:"path,omitempty"`
	RemoteURL         *string    `json:"remoteUrl,omitempty"`
	Created           *Timestamp `json:"created,omitempty"`
	CreatedBy         *string    `json:"createdBy,omitempty"`
	LastModified      *Timestamp `json:"lastModified,omitempty"`
	ModifiedBy        *string    `json:"modifiedBy,omitempty"`
	LastUpdated       *Timestamp `json:"lastUpdated,omitempty"`
	Size              *string    `json:"size,omitempty"`
	MimeType          *string    `json:"mimeType,omitempty"`
	Checksums         *Checksums `json:"checksums,omitempty"`
	OriginalChecksums *Checksums `json:"originalChecksums,omitempty"`
}

File represents a file in Artifactory.

func (*File) GetChecksums

func (f *File) GetChecksums() *Checksums

GetChecksums returns the Checksums field.

func (*File) GetCreated

func (f *File) GetCreated() Timestamp

GetCreated returns the Created field if it's non-nil, zero value otherwise.

func (*File) GetCreatedBy

func (f *File) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise.

func (*File) GetDownloadURI

func (f *File) GetDownloadURI() string

GetDownloadURI returns the DownloadURI field if it's non-nil, zero value otherwise.

func (*File) GetLastModified

func (f *File) GetLastModified() Timestamp

GetLastModified returns the LastModified field if it's non-nil, zero value otherwise.

func (*File) GetLastUpdated

func (f *File) GetLastUpdated() Timestamp

GetLastUpdated returns the LastUpdated field if it's non-nil, zero value otherwise.

func (*File) GetMimeType

func (f *File) GetMimeType() string

GetMimeType returns the MimeType field if it's non-nil, zero value otherwise.

func (*File) GetModifiedBy

func (f *File) GetModifiedBy() string

GetModifiedBy returns the ModifiedBy field if it's non-nil, zero value otherwise.

func (*File) GetOriginalChecksums

func (f *File) GetOriginalChecksums() *Checksums

GetOriginalChecksums returns the OriginalChecksums field.

func (*File) GetPath

func (f *File) GetPath() string

GetPath returns the Path field if it's non-nil, zero value otherwise.

func (*File) GetRemoteURL

func (f *File) GetRemoteURL() string

GetRemoteURL returns the RemoteURL field if it's non-nil, zero value otherwise.

func (*File) GetRepo

func (f *File) GetRepo() string

GetRepo returns the Repo field if it's non-nil, zero value otherwise.

func (*File) GetSize

func (f *File) GetSize() string

GetSize returns the Size field if it's non-nil, zero value otherwise.

func (*File) GetURI

func (f *File) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (File) String

func (f File) String() string

type FileList

type FileList struct {
	URI     *string         `json:"uri,omitempty"`
	Created *Timestamp      `json:"created,omitempty"`
	Files   *[]FileListItem `json:"files,omitempty"`
}

FileList represents a list of files in Artifactory.

func (*FileList) GetCreated

func (f *FileList) GetCreated() Timestamp

GetCreated returns the Created field if it's non-nil, zero value otherwise.

func (*FileList) GetFiles

func (f *FileList) GetFiles() []FileListItem

GetFiles returns the Files field if it's non-nil, zero value otherwise.

func (*FileList) GetURI

func (f *FileList) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (FileList) String

func (f FileList) String() string

type FileListItem

type FileListItem struct {
	URI          *string    `json:"uri,omitempty"`
	Size         *int       `json:"size,omitempty"`
	LastModified *Timestamp `json:"lastModified,omitempty"`
	Folder       *bool      `json:"folder,omitempty"`
	SHA1         *string    `json:"sha1,omitempty"`
}

FileListItem represents an item in a list of files in Artifactory.

func (*FileListItem) GetFolder

func (f *FileListItem) GetFolder() bool

GetFolder returns the Folder field if it's non-nil, zero value otherwise.

func (*FileListItem) GetLastModified

func (f *FileListItem) GetLastModified() Timestamp

GetLastModified returns the LastModified field if it's non-nil, zero value otherwise.

func (*FileListItem) GetSHA1

func (f *FileListItem) GetSHA1() string

GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise.

func (*FileListItem) GetSize

func (f *FileListItem) GetSize() int

GetSize returns the Size field if it's non-nil, zero value otherwise.

func (*FileListItem) GetURI

func (f *FileListItem) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

type FileStatistics

type FileStatistics struct {
	URI              *string    `json:"uri,omitempty"`
	LastDownloaded   *Timestamp `json:"lastDownloaded,omitempty"`
	DownloadCount    *int       `json:"downloadCount,omitempty"`
	LastDownloadedBy *string    `json:"lastDownloadedBy,omitempty"`
}

FileStatistics represents statistics for a file in Artifactory.

func (*FileStatistics) GetDownloadCount

func (f *FileStatistics) GetDownloadCount() int

GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise.

func (*FileStatistics) GetLastDownloaded

func (f *FileStatistics) GetLastDownloaded() Timestamp

GetLastDownloaded returns the LastDownloaded field if it's non-nil, zero value otherwise.

func (*FileStatistics) GetLastDownloadedBy

func (f *FileStatistics) GetLastDownloadedBy() string

GetLastDownloadedBy returns the LastDownloadedBy field if it's non-nil, zero value otherwise.

func (*FileStatistics) GetURI

func (f *FileStatistics) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (FileStatistics) String

func (f FileStatistics) String() string

type FileStoreSummary

type FileStoreSummary struct {
	StorageType      *string `json:"storageType,omitempty"`
	StorageDirectory *string `json:"storageDirectory,omitempty"`
	TotalSpace       *string `json:"totalSpace,omitempty"`
	UsedSpace        *string `json:"usedSpace,omitempty"`
	FreeSpace        *string `json:"freeSpace,omitempty"`
}

FileStoreSummary represents the summary of file storage in Artifactory.

func (*FileStoreSummary) GetFreeSpace

func (f *FileStoreSummary) GetFreeSpace() string

GetFreeSpace returns the FreeSpace field if it's non-nil, zero value otherwise.

func (*FileStoreSummary) GetStorageDirectory

func (f *FileStoreSummary) GetStorageDirectory() string

GetStorageDirectory returns the StorageDirectory field if it's non-nil, zero value otherwise.

func (*FileStoreSummary) GetStorageType

func (f *FileStoreSummary) GetStorageType() string

GetStorageType returns the StorageType field if it's non-nil, zero value otherwise.

func (*FileStoreSummary) GetTotalSpace

func (f *FileStoreSummary) GetTotalSpace() string

GetTotalSpace returns the TotalSpace field if it's non-nil, zero value otherwise.

func (*FileStoreSummary) GetUsedSpace

func (f *FileStoreSummary) GetUsedSpace() string

GetUsedSpace returns the UsedSpace field if it's non-nil, zero value otherwise.

type Folder

type Folder struct {
	URI          *string    `json:"uri,omitempty"`
	Repo         *string    `json:"repo,omitempty"`
	Path         *string    `json:"path,omitempty"`
	Created      *Timestamp `json:"created,omitempty"`
	CreatedBy    *string    `json:"createdBy,omitempty"`
	LastModified *Timestamp `json:"lastModified,omitempty"`
	ModifiedBy   *string    `json:"modifiedBy,omitempty"`
	LastUpdated  *Timestamp `json:"lastUpdated,omitempty"`
	Children     *[]Child   `json:"children,omitempty"`
}

Folder represents a folder in Artifactory.

func (*Folder) GetChildren

func (f *Folder) GetChildren() []Child

GetChildren returns the Children field if it's non-nil, zero value otherwise.

func (*Folder) GetCreated

func (f *Folder) GetCreated() Timestamp

GetCreated returns the Created field if it's non-nil, zero value otherwise.

func (*Folder) GetCreatedBy

func (f *Folder) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise.

func (*Folder) GetLastModified

func (f *Folder) GetLastModified() Timestamp

GetLastModified returns the LastModified field if it's non-nil, zero value otherwise.

func (*Folder) GetLastUpdated

func (f *Folder) GetLastUpdated() Timestamp

GetLastUpdated returns the LastUpdated field if it's non-nil, zero value otherwise.

func (*Folder) GetModifiedBy

func (f *Folder) GetModifiedBy() string

GetModifiedBy returns the ModifiedBy field if it's non-nil, zero value otherwise.

func (*Folder) GetPath

func (f *Folder) GetPath() string

GetPath returns the Path field if it's non-nil, zero value otherwise.

func (*Folder) GetRepo

func (f *Folder) GetRepo() string

GetRepo returns the Repo field if it's non-nil, zero value otherwise.

func (*Folder) GetURI

func (f *Folder) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (Folder) String

func (f Folder) String() string

type FolderDownloadConfig

type FolderDownloadConfig struct {
	Enabled               *bool `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	MaxConcurrentRequests *int  `yaml:"maxConcurrentRequests,omitempty" xml:"maxConcurrentRequests,omitempty"`
	MaxDownloadSizeMb     *int  `yaml:"maxDownloadSizeMb,omitempty" xml:"maxDownloadSizeMb,omitempty"`
	MaxFiles              *int  `yaml:"maxFiles,omitempty" xml:"maxFiles,omitempty"`
	EnabledForAnonymous   *bool `yaml:"enabledForAnonymous,omitempty" xml:"enabledForAnonymous,omitempty"`
	Reset                 *bool `yaml:"-" xml:"-"`
}

FolderDownloadConfig represents Folder Download settings in Artifactory General Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*FolderDownloadConfig) GetEnabled

func (f *FolderDownloadConfig) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*FolderDownloadConfig) GetEnabledForAnonymous

func (f *FolderDownloadConfig) GetEnabledForAnonymous() bool

GetEnabledForAnonymous returns the EnabledForAnonymous field if it's non-nil, zero value otherwise.

func (*FolderDownloadConfig) GetMaxConcurrentRequests

func (f *FolderDownloadConfig) GetMaxConcurrentRequests() int

GetMaxConcurrentRequests returns the MaxConcurrentRequests field if it's non-nil, zero value otherwise.

func (*FolderDownloadConfig) GetMaxDownloadSizeMb

func (f *FolderDownloadConfig) GetMaxDownloadSizeMb() int

GetMaxDownloadSizeMb returns the MaxDownloadSizeMb field if it's non-nil, zero value otherwise.

func (*FolderDownloadConfig) GetMaxFiles

func (f *FolderDownloadConfig) GetMaxFiles() int

GetMaxFiles returns the MaxFiles field if it's non-nil, zero value otherwise.

func (*FolderDownloadConfig) GetReset

func (f *FolderDownloadConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (FolderDownloadConfig) MarshalYAML

func (f FolderDownloadConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type GAVCRequest

type GAVCRequest struct {
	GroupID    *string   `url:"g,omitempty"`
	ArtifactID *string   `url:"a,omitempty"`
	Version    *string   `url:"v,omitempty"`
	Classifier *string   `url:"c,omitempty"`
	Repos      *[]string `url:"repos,omitempty"`
}

GAVCRequest represents the GAVC request for searches in Artifactory.

func (*GAVCRequest) GetArtifactID

func (g *GAVCRequest) GetArtifactID() string

GetArtifactID returns the ArtifactID field if it's non-nil, zero value otherwise.

func (*GAVCRequest) GetClassifier

func (g *GAVCRequest) GetClassifier() string

GetClassifier returns the Classifier field if it's non-nil, zero value otherwise.

func (*GAVCRequest) GetGroupID

func (g *GAVCRequest) GetGroupID() string

GetGroupID returns the GroupID field if it's non-nil, zero value otherwise.

func (*GAVCRequest) GetRepos

func (g *GAVCRequest) GetRepos() []string

GetRepos returns the Repos field if it's non-nil, zero value otherwise.

func (*GAVCRequest) GetVersion

func (g *GAVCRequest) GetVersion() string

GetVersion returns the Version field if it's non-nil, zero value otherwise.

type GAVCResponse

type GAVCResponse struct {
	Results *[]File `json:"results,omitempty"`
}

GAVCResponse represents the GAVC response for searches in Artifactory.

func (*GAVCResponse) GetResults

func (g *GAVCResponse) GetResults() []File

GetResults returns the Results field if it's non-nil, zero value otherwise.

func (GAVCResponse) String

func (g GAVCResponse) String() string

type GcConfig

type GcConfig struct {
	CronExp *string `yaml:"cronExp,omitempty" xml:"cronExp,omitempty"`
	Reset   *bool   `yaml:"-" xml:"-"`
}

GcConfig represents the Garbage Collection settings in Artifactory Maintenance Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Servicesconfiguration(Backups,MavenIndexer)

func (*GcConfig) GetCronExp

func (g *GcConfig) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*GcConfig) GetReset

func (g *GcConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (GcConfig) MarshalYAML

func (g GcConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type GenericRepository

type GenericRepository struct {
	Key                          *string   `json:"key,omitempty" xml:"key,omitempty"`
	RClass                       *string   `json:"rclass,omitempty" xml:"-"`
	PackageType                  *string   `json:"packageType,omitempty" xml:"type,omitempty"`
	Description                  *string   `json:"description,omitempty" xml:"description,omitempty"`
	Notes                        *string   `json:"notes,omitempty" xml:"notes,omitempty"`
	IncludesPattern              *string   `json:"includesPattern,omitempty" xml:"includesPattern,omitempty"`
	ExcludesPattern              *string   `json:"excludesPattern,omitempty" xml:"excludesPattern,omitempty"`
	LayoutRef                    *string   `json:"repoLayoutRef,omitempty" xml:"repoLayoutRef,omitempty"`
	HandleReleases               *bool     `json:"handleReleases,omitempty" xml:"handleReleases,omitempty"`
	HandleSnapshots              *bool     `json:"handleSnapshots,omitempty" xml:"handleSnapshots,omitempty"`
	MaxUniqueSnapshots           *int      `json:"maxUniqueSnapshots,omitempty" xml:"maxUniqueSnapshots,omitempty"`
	SuppressPomConsistencyChecks *bool     `json:"suppressPomConsistencyChecks,omitempty" xml:"suppressPomConsistencyChecks,omitempty"`
	BlackedOut                   *bool     `json:"blackedOut,omitempty" xml:"blackedOut,omitempty"`
	PropertySets                 *[]string `json:"propertySets,omitempty" xml:"propertySets>propertySetRef,omitempty"`
	ForceNugetAuthentication     *bool     `json:"forceNugetAuthentication,omitempty" xml:"forceNugetAuthentication,omitempty"`
}

GenericRepository represents the common json across all repository types from Artifactory.

func (*GenericRepository) GetBlackedOut

func (g *GenericRepository) GetBlackedOut() bool

GetBlackedOut returns the BlackedOut field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetDescription

func (g *GenericRepository) GetDescription() string

GetDescription returns the Description field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetExcludesPattern

func (g *GenericRepository) GetExcludesPattern() string

GetExcludesPattern returns the ExcludesPattern field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetForceNugetAuthentication

func (g *GenericRepository) GetForceNugetAuthentication() bool

GetForceNugetAuthentication returns the ForceNugetAuthentication field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetHandleReleases

func (g *GenericRepository) GetHandleReleases() bool

GetHandleReleases returns the HandleReleases field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetHandleSnapshots

func (g *GenericRepository) GetHandleSnapshots() bool

GetHandleSnapshots returns the HandleSnapshots field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetIncludesPattern

func (g *GenericRepository) GetIncludesPattern() string

GetIncludesPattern returns the IncludesPattern field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetKey

func (g *GenericRepository) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetLayoutRef

func (g *GenericRepository) GetLayoutRef() string

GetLayoutRef returns the LayoutRef field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetMaxUniqueSnapshots

func (g *GenericRepository) GetMaxUniqueSnapshots() int

GetMaxUniqueSnapshots returns the MaxUniqueSnapshots field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetNotes

func (g *GenericRepository) GetNotes() string

GetNotes returns the Notes field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetPackageType

func (g *GenericRepository) GetPackageType() string

GetPackageType returns the PackageType field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetPropertySets

func (g *GenericRepository) GetPropertySets() []string

GetPropertySets returns the PropertySets field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetRClass

func (g *GenericRepository) GetRClass() string

GetRClass returns the RClass field if it's non-nil, zero value otherwise.

func (*GenericRepository) GetSuppressPomConsistencyChecks

func (g *GenericRepository) GetSuppressPomConsistencyChecks() bool

GetSuppressPomConsistencyChecks returns the SuppressPomConsistencyChecks field if it's non-nil, zero value otherwise.

func (GenericRepository) String

func (g GenericRepository) String() string

type GetGroupRequest

type GetGroupRequest struct {
	Name         *string
	IncludeUsers *bool
}

GetGroupRequest represents the possible inputs for a Get Group request.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetGroupDetails

func (*GetGroupRequest) GetIncludeUsers

func (g *GetGroupRequest) GetIncludeUsers() bool

GetIncludeUsers returns the IncludeUsers field if it's non-nil, zero value otherwise.

func (*GetGroupRequest) GetName

func (g *GetGroupRequest) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

type GlobalConfig

type GlobalConfig struct {
	Revision                  *int                       `yaml:"-" xml:"revision,omitempty"`
	ServerName                *string                    `yaml:"serverName,omitempty" xml:"serverName,omitempty"`
	OfflineMode               *bool                      `yaml:"offlineMode,omitempty" xml:"offlineMode,omitempty"`
	HelpLinksEnabled          *bool                      `yaml:"helpLinksEnabled,omitempty" xml:"helpLinksEnabled,omitempty"`
	FileUploadMaxSizeMb       *int                       `yaml:"fileUploadMaxSizeMb,omitempty" xml:"fileUploadMaxSizeMb,omitempty"`
	DateFormat                *string                    `yaml:"dateFormat,omitempty" xml:"dateFormat,omitempty"`
	AddonsConfig              *AddonsConfig              `yaml:"addons,omitempty" xml:"addons,omitempty"`
	MailServer                *MailServer                `yaml:"mailServer,omitempty" xml:"mailServer,omitempty"`
	XrayConfig                *XrayConfig                `yaml:"xrayConfig,omitempty" xml:"xrayConfig,omitempty"`
	BintrayConfig             *BintrayConfig             `yaml:"bintrayConfig,omitempty" xml:"bintrayConfig,omitempty"`
	Indexer                   *Indexer                   `yaml:"indexer,omitempty" xml:"indexer,omitempty"`
	UrlBase                   *string                    `yaml:"urlBase,omitempty" xml:"urlBase,omitempty"`
	Footer                    *string                    `yaml:"footer,omitempty" xml:"footer,omitempty"`
	GcConfig                  *GcConfig                  `yaml:"gcConfig,omitempty" xml:"gcConfig,omitempty"`
	CleanupConfig             *CleanupConfig             `yaml:"cleanupConfig,omitempty" xml:"cleanupConfig,omitempty"`
	VirtualCacheCleanupConfig *VirtualCacheCleanupConfig `yaml:"virtualCacheCleanupConfig,omitempty" xml:"virtualCacheCleanupConfig,omitempty"`
	QuotaConfig               *QuotaConfig               `yaml:"quotaConfig,omitempty" xml:"quotaConfig,omitempty"`
	SystemMessageConfig       *SystemMessageConfig       `yaml:"systemMessageConfig,omitempty" xml:"systemMessageConfig,omitempty"`
	FolderDownloadConfig      *FolderDownloadConfig      `yaml:"folderDownloadConfig,omitempty" xml:"folderDownloadConfig,omitempty"`
	TrashcanConfig            *TrashcanConfig            `yaml:"trashcanConfig,omitempty" xml:"trashcanConfig,omitempty"`
	ReplicationsConfig        *ReplicationsConfig        `yaml:"replicationsConfig,omitempty" xml:"replicationsConfig,omitempty"`
	SumoLogicConfig           *SumoLogicConfig           `yaml:"sumoLogicConfig,omitempty" xml:"sumoLogicConfig,omitempty"`
	ReleaseBundlesConfig      *ReleaseBundlesConfig      `yaml:"releaseBundlesConfig,omitempty" xml:"releaseBundlesConfig,omitempty"`
	SignedUrlConfig           *SignedUrlConfig           `yaml:"signedUrlConfig,omitempty" xml:"signedUrlConfig,omitempty"`
	DownloadRedirectConfig    *DownloadRedirectConfig    `yaml:"downloadRedirectConfig,omitempty" xml:"downloadRedirectConfig,omitempty"`
	Security                  *Security                  `yaml:"security,omitempty" xml:"security,omitempty"`
	Backups                   *Backups                   `yaml:"backups,omitempty" xml:"backups>backup,omitempty"`
	Proxies                   *Proxies                   `yaml:"proxies,omitempty" xml:"proxies>proxy,omitempty"`
	ReverseProxies            *ReverseProxies            `yaml:"reverseProxies,omitempty" xml:"reverseProxies>reverseProxy,omitempty"`
	PropertySets              *PropertySets              `yaml:"propertySets,omitempty" xml:"propertySets>propertySet,omitempty"`
	RepoLayouts               *RepoLayouts               `yaml:"repoLayouts,omitempty" xml:"repoLayouts>repoLayout,omitempty"`
	BintrayApplications       *BintrayApplications       `yaml:"bintrayApplications,omitempty" xml:"bintrayApplications>bintrayApplication,omitempty"`
	LocalRepositories         *[]LocalRepository         `yaml:"-" xml:"localRepositories>localRepository,omitempty"`
	RemoteRepositories        *[]RemoteRepository        `yaml:"-" xml:"remoteRepositories>remoteRepository,omitempty"`
	VirtualRepositories       *[]VirtualRepository       `yaml:"-" xml:"virtualRepositories>virtualRepository,omitempty"`
	LocalReplications         *[]Replication             `yaml:"-" xml:"localReplications>localReplication,omitempty"`
	RemoteReplications        *[]Replication             `yaml:"-" xml:"remoteReplications>remoteReplication,omitempty"`
}

GlobalConfig represents elements of the Global Configuration Descriptor. Lots of these aren't documented but have been mapped from the XML schema at https://www.jfrog.com/public/xsd/artifactory-v2_2_5.xsd

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File

func (*GlobalConfig) GetAddonsConfig

func (g *GlobalConfig) GetAddonsConfig() *AddonsConfig

GetAddonsConfig returns the AddonsConfig field.

func (*GlobalConfig) GetBackups

func (g *GlobalConfig) GetBackups() *Backups

GetBackups returns the Backups field.

func (*GlobalConfig) GetBintrayApplications

func (g *GlobalConfig) GetBintrayApplications() *BintrayApplications

GetBintrayApplications returns the BintrayApplications field.

func (*GlobalConfig) GetBintrayConfig

func (g *GlobalConfig) GetBintrayConfig() *BintrayConfig

GetBintrayConfig returns the BintrayConfig field.

func (*GlobalConfig) GetCleanupConfig

func (g *GlobalConfig) GetCleanupConfig() *CleanupConfig

GetCleanupConfig returns the CleanupConfig field.

func (*GlobalConfig) GetDateFormat

func (g *GlobalConfig) GetDateFormat() string

GetDateFormat returns the DateFormat field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetDownloadRedirectConfig

func (g *GlobalConfig) GetDownloadRedirectConfig() *DownloadRedirectConfig

GetDownloadRedirectConfig returns the DownloadRedirectConfig field.

func (*GlobalConfig) GetFileUploadMaxSizeMb

func (g *GlobalConfig) GetFileUploadMaxSizeMb() int

GetFileUploadMaxSizeMb returns the FileUploadMaxSizeMb field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetFolderDownloadConfig

func (g *GlobalConfig) GetFolderDownloadConfig() *FolderDownloadConfig

GetFolderDownloadConfig returns the FolderDownloadConfig field.

func (*GlobalConfig) GetFooter

func (g *GlobalConfig) GetFooter() string

GetFooter returns the Footer field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetGcConfig

func (g *GlobalConfig) GetGcConfig() *GcConfig

GetGcConfig returns the GcConfig field.

func (*GlobalConfig) GetHelpLinksEnabled

func (g *GlobalConfig) GetHelpLinksEnabled() bool

GetHelpLinksEnabled returns the HelpLinksEnabled field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetIndexer

func (g *GlobalConfig) GetIndexer() *Indexer

GetIndexer returns the Indexer field.

func (*GlobalConfig) GetLocalReplications

func (g *GlobalConfig) GetLocalReplications() []Replication

GetLocalReplications returns the LocalReplications field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetLocalRepositories

func (g *GlobalConfig) GetLocalRepositories() []LocalRepository

GetLocalRepositories returns the LocalRepositories field if it's non-nil, zero value otherwise.

func (g *GlobalConfig) GetLogo() string

GetLogo returns the Logo field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetMailServer

func (g *GlobalConfig) GetMailServer() *MailServer

GetMailServer returns the MailServer field.

func (*GlobalConfig) GetOfflineMode

func (g *GlobalConfig) GetOfflineMode() bool

GetOfflineMode returns the OfflineMode field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetPropertySets

func (g *GlobalConfig) GetPropertySets() *PropertySets

GetPropertySets returns the PropertySets field.

func (*GlobalConfig) GetProxies

func (g *GlobalConfig) GetProxies() *Proxies

GetProxies returns the Proxies field.

func (*GlobalConfig) GetQuotaConfig

func (g *GlobalConfig) GetQuotaConfig() *QuotaConfig

GetQuotaConfig returns the QuotaConfig field.

func (*GlobalConfig) GetReleaseBundlesConfig

func (g *GlobalConfig) GetReleaseBundlesConfig() *ReleaseBundlesConfig

GetReleaseBundlesConfig returns the ReleaseBundlesConfig field.

func (*GlobalConfig) GetRemoteReplications

func (g *GlobalConfig) GetRemoteReplications() []Replication

GetRemoteReplications returns the RemoteReplications field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetRemoteRepositories

func (g *GlobalConfig) GetRemoteRepositories() []RemoteRepository

GetRemoteRepositories returns the RemoteRepositories field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetReplicationsConfig

func (g *GlobalConfig) GetReplicationsConfig() *ReplicationsConfig

GetReplicationsConfig returns the ReplicationsConfig field.

func (*GlobalConfig) GetRepoLayouts

func (g *GlobalConfig) GetRepoLayouts() *RepoLayouts

GetRepoLayouts returns the RepoLayouts field.

func (*GlobalConfig) GetReverseProxies

func (g *GlobalConfig) GetReverseProxies() *ReverseProxies

GetReverseProxies returns the ReverseProxies field.

func (*GlobalConfig) GetRevision

func (g *GlobalConfig) GetRevision() int

GetRevision returns the Revision field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetSecurity

func (g *GlobalConfig) GetSecurity() *Security

GetSecurity returns the Security field.

func (*GlobalConfig) GetServerName

func (g *GlobalConfig) GetServerName() string

GetServerName returns the ServerName field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetSignedUrlConfig

func (g *GlobalConfig) GetSignedUrlConfig() *SignedUrlConfig

GetSignedUrlConfig returns the SignedUrlConfig field.

func (*GlobalConfig) GetSumoLogicConfig

func (g *GlobalConfig) GetSumoLogicConfig() *SumoLogicConfig

GetSumoLogicConfig returns the SumoLogicConfig field.

func (*GlobalConfig) GetSystemMessageConfig

func (g *GlobalConfig) GetSystemMessageConfig() *SystemMessageConfig

GetSystemMessageConfig returns the SystemMessageConfig field.

func (*GlobalConfig) GetTrashcanConfig

func (g *GlobalConfig) GetTrashcanConfig() *TrashcanConfig

GetTrashcanConfig returns the TrashcanConfig field.

func (*GlobalConfig) GetUrlBase

func (g *GlobalConfig) GetUrlBase() string

GetUrlBase returns the UrlBase field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetVirtualCacheCleanupConfig

func (g *GlobalConfig) GetVirtualCacheCleanupConfig() *VirtualCacheCleanupConfig

GetVirtualCacheCleanupConfig returns the VirtualCacheCleanupConfig field.

func (*GlobalConfig) GetVirtualRepositories

func (g *GlobalConfig) GetVirtualRepositories() []VirtualRepository

GetVirtualRepositories returns the VirtualRepositories field if it's non-nil, zero value otherwise.

func (*GlobalConfig) GetXrayConfig

func (g *GlobalConfig) GetXrayConfig() *XrayConfig

GetXrayConfig returns the XrayConfig field.

type Group

type Group struct {
	Name            *string   `json:"name,omitempty"`
	URI             *string   `json:"uri,omitempty"`
	Description     *string   `json:"description,omitempty"`
	AutoJoin        *bool     `json:"autoJoin,omitempty"`
	AdminPrivileges *bool     `json:"adminPrivileges,omitempty"`
	Realm           *string   `json:"realm,omitempty"`
	RealmAttributes *string   `json:"realmAttributes,omitempty"`
	UserNames       *[]string `json:"userNames,omitempty"`
}

Group represents a group in Artifactory.

Doc: https://www.jfrog.com/confluence/display/RTF/Security+Configuration+JSON#SecurityConfigurationJSON-application/vnd.org.jfrog.artifactory.security.Group+json

func (*Group) GetAdminPrivileges

func (g *Group) GetAdminPrivileges() bool

GetAdminPrivileges returns the AdminPrivileges field if it's non-nil, zero value otherwise.

func (*Group) GetAutoJoin

func (g *Group) GetAutoJoin() bool

GetAutoJoin returns the AutoJoin field if it's non-nil, zero value otherwise.

func (*Group) GetDescription

func (g *Group) GetDescription() string

GetDescription returns the Description field if it's non-nil, zero value otherwise.

func (*Group) GetName

func (g *Group) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*Group) GetRealm

func (g *Group) GetRealm() string

GetRealm returns the Realm field if it's non-nil, zero value otherwise.

func (*Group) GetRealmAttributes

func (g *Group) GetRealmAttributes() string

GetRealmAttributes returns the RealmAttributes field if it's non-nil, zero value otherwise.

func (*Group) GetURI

func (g *Group) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (*Group) GetUserNames

func (g *Group) GetUserNames() []string

GetUserNames returns the UserNames field if it's non-nil, zero value otherwise.

func (Group) String

func (g Group) String() string

type GroupsService

type GroupsService service

GroupsService handles communication with the group related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SECURITY

func (*GroupsService) Create

func (s *GroupsService) Create(group *Group) (*string, *Response, error)

Create constructs a group with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateorReplaceGroup

func (*GroupsService) Delete

func (s *GroupsService) Delete(group string) (*string, *Response, error)

Delete removes the provided group.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteGroup

func (*GroupsService) Get

func (s *GroupsService) Get(groupRequest *GetGroupRequest) (*Group, *Response, error)

Get returns the provided group.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetGroupDetails

func (*GroupsService) GetAll

func (s *GroupsService) GetAll() (*[]Group, *Response, error)

GetAll returns a list of all groups.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetGroups

func (*GroupsService) Update

func (s *GroupsService) Update(group *Group) (*string, *Response, error)

Update modifies a group with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-UpdateGroup

type HALicense

type HALicense struct {
	Type         *string `json:"type,omitempty"`
	ValidThrough *string `json:"validThrough,omitempty"`
	LicensedTo   *string `json:"licensedTo,omitempty"`
	LicenseHash  *string `json:"licenseHash,omitempty"`
	NodeID       *string `json:"nodeId,omitempty"`
	NodeURL      *string `json:"nodeUrl,omitempty"`
	Expired      *bool   `json:"expired,omitempty"`
}

HALicense represents a HA license in Artifactory.

func (*HALicense) GetExpired

func (h *HALicense) GetExpired() bool

GetExpired returns the Expired field if it's non-nil, zero value otherwise.

func (*HALicense) GetLicenseHash

func (h *HALicense) GetLicenseHash() string

GetLicenseHash returns the LicenseHash field if it's non-nil, zero value otherwise.

func (*HALicense) GetLicensedTo

func (h *HALicense) GetLicensedTo() string

GetLicensedTo returns the LicensedTo field if it's non-nil, zero value otherwise.

func (*HALicense) GetNodeID

func (h *HALicense) GetNodeID() string

GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.

func (*HALicense) GetNodeURL

func (h *HALicense) GetNodeURL() string

GetNodeURL returns the NodeURL field if it's non-nil, zero value otherwise.

func (*HALicense) GetType

func (h *HALicense) GetType() string

GetType returns the Type field if it's non-nil, zero value otherwise.

func (*HALicense) GetValidThrough

func (h *HALicense) GetValidThrough() string

GetValidThrough returns the ValidThrough field if it's non-nil, zero value otherwise.

func (HALicense) String

func (h HALicense) String() string

type HALicenseResponse

type HALicenseResponse struct {
	Status   *int               `json:"status,omitempty"`
	Messages *map[string]string `json:"messages,omitempty"`
}

HALicenseResponse represents the response from installing a HA license(s) in Artifactory.

func (*HALicenseResponse) GetMessages

func (h *HALicenseResponse) GetMessages() map[string]string

GetMessages returns the Messages field if it's non-nil, zero value otherwise.

func (*HALicenseResponse) GetStatus

func (h *HALicenseResponse) GetStatus() int

GetStatus returns the Status field if it's non-nil, zero value otherwise.

func (HALicenseResponse) String

func (h HALicenseResponse) String() string

type HALicenses

type HALicenses struct {
	Licenses *[]HALicense `json:"licenses,omitempty"`
}

HALicenses represents an array of HA licenses in Artifactory.

func (*HALicenses) GetLicenses

func (h *HALicenses) GetLicenses() []HALicense

GetLicenses returns the Licenses field if it's non-nil, zero value otherwise.

func (HALicenses) String

func (h HALicenses) String() string

type HttpSsoSettings

type HttpSsoSettings struct {
	HttpSsoProxied            *bool   `yaml:"httpSsoProxied,omitempty" xml:"httpSsoProxied,omitempty"`
	RemoteUserRequestVariable *string `yaml:"remoteUserRequestVariable,omitempty" xml:"remoteUserRequestVariable,omitempty"`
	AllowUserToAccessProfile  *bool   `yaml:"allowUserToAccessProfile,omitempty" xml:"allowUserToAccessProfile,omitempty"`
	NoAutoUserCreation        *bool   `yaml:"noAutoUserCreation,omitempty" xml:"noAutoUserCreation,omitempty"`
	SyncLdapGroups            *bool   `yaml:"syncLdapGroups,omitempty" xml:"syncLdapGroups,omitempty"`
	Reset                     *bool   `yaml:"-" xml:"-"`
}

HttpSsoSettings represents the HTTP SSO settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*HttpSsoSettings) GetAllowUserToAccessProfile

func (h *HttpSsoSettings) GetAllowUserToAccessProfile() bool

GetAllowUserToAccessProfile returns the AllowUserToAccessProfile field if it's non-nil, zero value otherwise.

func (*HttpSsoSettings) GetHttpSsoProxied

func (h *HttpSsoSettings) GetHttpSsoProxied() bool

GetHttpSsoProxied returns the HttpSsoProxied field if it's non-nil, zero value otherwise.

func (*HttpSsoSettings) GetNoAutoUserCreation

func (h *HttpSsoSettings) GetNoAutoUserCreation() bool

GetNoAutoUserCreation returns the NoAutoUserCreation field if it's non-nil, zero value otherwise.

func (*HttpSsoSettings) GetRemoteUserRequestVariable

func (h *HttpSsoSettings) GetRemoteUserRequestVariable() string

GetRemoteUserRequestVariable returns the RemoteUserRequestVariable field if it's non-nil, zero value otherwise.

func (*HttpSsoSettings) GetReset

func (h *HttpSsoSettings) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*HttpSsoSettings) GetSyncLdapGroups

func (h *HttpSsoSettings) GetSyncLdapGroups() bool

GetSyncLdapGroups returns the SyncLdapGroups field if it's non-nil, zero value otherwise.

func (HttpSsoSettings) MarshalYAML

func (h HttpSsoSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type ImagePromotion

type ImagePromotion struct {
	TargetRepo             *string `json:"targetRepo,omitempty"`             // The target repository for the move or copy
	DockerRepository       *string `json:"dockerRepository,omitempty"`       // 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
}

ImagePromotion represents the Docker image promotion request in Artifactory.

func (*ImagePromotion) GetCopy

func (i *ImagePromotion) GetCopy() bool

GetCopy returns the Copy field if it's non-nil, zero value otherwise.

func (*ImagePromotion) GetDockerRepository

func (i *ImagePromotion) GetDockerRepository() string

GetDockerRepository returns the DockerRepository field if it's non-nil, zero value otherwise.

func (*ImagePromotion) GetTag

func (i *ImagePromotion) GetTag() string

GetTag returns the Tag field if it's non-nil, zero value otherwise.

func (*ImagePromotion) GetTargetDockerRepository

func (i *ImagePromotion) GetTargetDockerRepository() string

GetTargetDockerRepository returns the TargetDockerRepository field if it's non-nil, zero value otherwise.

func (*ImagePromotion) GetTargetRepo

func (i *ImagePromotion) GetTargetRepo() string

GetTargetRepo returns the TargetRepo field if it's non-nil, zero value otherwise.

func (*ImagePromotion) GetTargetTag

func (i *ImagePromotion) GetTargetTag() string

GetTargetTag returns the TargetTag field if it's non-nil, zero value otherwise.

type Indexer

type Indexer struct {
	Enabled              *bool     `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	CronExp              *string   `yaml:"cronExp,omitempty" xml:"cronExp,omitempty"`
	IncludedRepositories *[]string `yaml:"includedRepositories,omitempty" xml:"includedRepositories>repositoryRef,omitempty"`
	Reset                *bool     `yaml:"-" xml:"-"`
}

Indexer represents the Maven Indexer settings in Artifactory Services Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Servicesconfiguration(Backups,MavenIndexer)

func (*Indexer) GetCronExp

func (i *Indexer) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*Indexer) GetEnabled

func (i *Indexer) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*Indexer) GetIncludedRepositories

func (i *Indexer) GetIncludedRepositories() []string

GetIncludedRepositories returns the IncludedRepositories field if it's non-nil, zero value otherwise.

func (*Indexer) GetReset

func (i *Indexer) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (Indexer) MarshalYAML

func (i Indexer) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type ItemLastModified

type ItemLastModified struct {
	URI          *string    `json:"uri,omitempty"`
	LastModified *Timestamp `json:"lastModified,omitempty"`
}

ItemLastModified represents the last modified date for a file in Artifactory.

func (*ItemLastModified) GetLastModified

func (i *ItemLastModified) GetLastModified() Timestamp

GetLastModified returns the LastModified field if it's non-nil, zero value otherwise.

func (*ItemLastModified) GetURI

func (i *ItemLastModified) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (ItemLastModified) String

func (i ItemLastModified) String() string

type ItemProperties

type ItemProperties struct {
	URI        *string              `json:"uri,omitempty"`
	Properties *map[string][]string `json:"properties,omitempty"`
}

ItemProperties represents a set of properties for an item in Artifactory.

func (*ItemProperties) GetURI

func (i *ItemProperties) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (ItemProperties) String

func (i ItemProperties) String() string

type LdapGroupSetting

type LdapGroupSetting struct {
	Name                 *string `yaml:"-" xml:"name,omitempty"`
	DescriptionAttribute *string `yaml:"descriptionAttribute,omitempty" xml:"descriptionAttribute,omitempty"`
	EnabledLdap          *string `yaml:"enabledLdap,omitempty" xml:"enabledLdap,omitempty"`
	Filter               *string `yaml:"filter,omitempty" xml:"filter,omitempty"`
	GroupBaseDn          *string `yaml:"groupBaseDn,omitempty" xml:"groupBaseDn,omitempty"`
	GroupMemberAttribute *string `yaml:"groupMemberAttribute,omitempty" xml:"groupMemberAttribute,omitempty"`
	GroupNameAttribute   *string `yaml:"groupNameAttribute,omitempty" xml:"groupNameAttribute,omitempty"`
	Strategy             *string `yaml:"strategy,omitempty" xml:"strategy,omitempty"`
	SubTree              *bool   `yaml:"subTree,omitempty" xml:"subTree,omitempty"`
}

LdapGroupSetting represents the LDAP Group settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*LdapGroupSetting) GetDescriptionAttribute

func (l *LdapGroupSetting) GetDescriptionAttribute() string

GetDescriptionAttribute returns the DescriptionAttribute field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetEnabledLdap

func (l *LdapGroupSetting) GetEnabledLdap() string

GetEnabledLdap returns the EnabledLdap field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetFilter

func (l *LdapGroupSetting) GetFilter() string

GetFilter returns the Filter field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetGroupBaseDn

func (l *LdapGroupSetting) GetGroupBaseDn() string

GetGroupBaseDn returns the GroupBaseDn field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetGroupMemberAttribute

func (l *LdapGroupSetting) GetGroupMemberAttribute() string

GetGroupMemberAttribute returns the GroupMemberAttribute field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetGroupNameAttribute

func (l *LdapGroupSetting) GetGroupNameAttribute() string

GetGroupNameAttribute returns the GroupNameAttribute field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetName

func (l *LdapGroupSetting) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetStrategy

func (l *LdapGroupSetting) GetStrategy() string

GetStrategy returns the Strategy field if it's non-nil, zero value otherwise.

func (*LdapGroupSetting) GetSubTree

func (l *LdapGroupSetting) GetSubTree() bool

GetSubTree returns the SubTree field if it's non-nil, zero value otherwise.

type LdapGroupSettings

type LdapGroupSettings []*LdapGroupSetting

LdapGroupSettings is an alias for a slice of LdapGroupSetting that can be properly marshaled to/from YAML.

func (LdapGroupSettings) MarshalYAML

func (l LdapGroupSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for LdapGroupSettings.

func (*LdapGroupSettings) UnmarshalYAML

func (l *LdapGroupSettings) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for LdapGroupSettings.

type LdapSetting

type LdapSetting struct {
	Key                      *string            `yaml:"-" xml:"key,omitempty"`
	EmailAttribute           *string            `yaml:"emailAttribute,omitempty" xml:"emailAttribute,omitempty"`
	LdapPoisoningProtection  *bool              `yaml:"ldapPoisoningProtection,omitempty" xml:"ldapPoisoningProtection,omitempty"`
	LdapUrl                  *string            `yaml:"ldapUrl,omitempty" xml:"ldapUrl,omitempty"`
	Search                   *LdapSettingSearch `yaml:"search,omitempty" xml:"search,omitempty"`
	UserDnPattern            *string            `yaml:"userDnPattern,omitempty" xml:"userDnPattern,omitempty"`
	AllowUserToAccessProfile *bool              `yaml:"allowUserToAccessProfile,omitempty" xml:"allowUserToAccessProfile,omitempty"`
	AutoCreateUser           *bool              `yaml:"autoCreateUser,omitempty" xml:"autoCreateUser,omitempty"`
	Enabled                  *bool              `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
}

LdapSetting represents the LDAP settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*LdapSetting) GetAllowUserToAccessProfile

func (l *LdapSetting) GetAllowUserToAccessProfile() bool

GetAllowUserToAccessProfile returns the AllowUserToAccessProfile field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetAutoCreateUser

func (l *LdapSetting) GetAutoCreateUser() bool

GetAutoCreateUser returns the AutoCreateUser field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetEmailAttribute

func (l *LdapSetting) GetEmailAttribute() string

GetEmailAttribute returns the EmailAttribute field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetEnabled

func (l *LdapSetting) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetKey

func (l *LdapSetting) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetLdapPoisoningProtection

func (l *LdapSetting) GetLdapPoisoningProtection() bool

GetLdapPoisoningProtection returns the LdapPoisoningProtection field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetLdapUrl

func (l *LdapSetting) GetLdapUrl() string

GetLdapUrl returns the LdapUrl field if it's non-nil, zero value otherwise.

func (*LdapSetting) GetSearch

func (l *LdapSetting) GetSearch() *LdapSettingSearch

GetSearch returns the Search field.

func (*LdapSetting) GetUserDnPattern

func (l *LdapSetting) GetUserDnPattern() string

GetUserDnPattern returns the UserDnPattern field if it's non-nil, zero value otherwise.

type LdapSettingSearch

type LdapSettingSearch struct {
	ManagerDn       *string `yaml:"managerDn,omitempty" xml:"managerDn,omitempty"`
	ManagerPassword *string `yaml:"managerPassword,omitempty" xml:"managerPassword,omitempty"`
	SearchBase      *string `yaml:"searchBase,omitempty" xml:"searchBase,omitempty"`
	SearchFilter    *string `yaml:"searchFilter,omitempty" xml:"searchFilter,omitempty"`
	SearchSubTree   *bool   `yaml:"searchSubTree,omitempty" xml:"searchSubTree,omitempty"`
}

LdapSettingSearch represents the Search setting in an LDAPSetting.

func (*LdapSettingSearch) GetManagerDn

func (l *LdapSettingSearch) GetManagerDn() string

GetManagerDn returns the ManagerDn field if it's non-nil, zero value otherwise.

func (*LdapSettingSearch) GetManagerPassword

func (l *LdapSettingSearch) GetManagerPassword() string

GetManagerPassword returns the ManagerPassword field if it's non-nil, zero value otherwise.

func (*LdapSettingSearch) GetSearchBase

func (l *LdapSettingSearch) GetSearchBase() string

GetSearchBase returns the SearchBase field if it's non-nil, zero value otherwise.

func (*LdapSettingSearch) GetSearchFilter

func (l *LdapSettingSearch) GetSearchFilter() string

GetSearchFilter returns the SearchFilter field if it's non-nil, zero value otherwise.

func (*LdapSettingSearch) GetSearchSubTree

func (l *LdapSettingSearch) GetSearchSubTree() bool

GetSearchSubTree returns the SearchSubTree field if it's non-nil, zero value otherwise.

type LdapSettings

type LdapSettings []*LdapSetting

LdapSettings is an alias for a slice of LdapSetting that can be properly marshaled to/from YAML.

func (LdapSettings) MarshalYAML

func (l LdapSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for LdapSettings.

func (*LdapSettings) UnmarshalYAML

func (l *LdapSettings) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for LdapSettings.

type License

type License struct {
	Type         *string `json:"type,omitempty"`
	ValidThrough *string `json:"validThrough,omitempty"`
	LicensedTo   *string `json:"licensedTo,omitempty"`
}

License represents a license in Artifactory.

func (*License) GetLicensedTo

func (l *License) GetLicensedTo() string

GetLicensedTo returns the LicensedTo field if it's non-nil, zero value otherwise.

func (*License) GetType

func (l *License) GetType() string

GetType returns the Type field if it's non-nil, zero value otherwise.

func (*License) GetValidThrough

func (l *License) GetValidThrough() string

GetValidThrough returns the ValidThrough field if it's non-nil, zero value otherwise.

func (License) String

func (l License) String() string

type LicenseRemoval

type LicenseRemoval struct {
	LicenseHashes *[]string `url:"licenseHash,omitempty"`
}

LicenseRemoval is a list of license hashes for when removing licenses in Artifactory.

func (*LicenseRemoval) GetLicenseHashes

func (l *LicenseRemoval) GetLicenseHashes() []string

GetLicenseHashes returns the LicenseHashes field if it's non-nil, zero value otherwise.

type LicenseRequest

type LicenseRequest struct {
	LicenseKey *string `json:"licenseKey,omitempty"`
}

LicenseRequest represents the license request in Artifactory.

func (*LicenseRequest) GetLicenseKey

func (l *LicenseRequest) GetLicenseKey() string

GetLicenseKey returns the LicenseKey field if it's non-nil, zero value otherwise.

type LicenseResponse

type LicenseResponse struct {
	Status  *int    `json:"status,omitempty"`
	Message *string `json:"message,omitempty"`
}

LicenseResponse represents the response from installing a license in Artifactory.

func (*LicenseResponse) GetMessage

func (l *LicenseResponse) GetMessage() string

GetMessage returns the Message field if it's non-nil, zero value otherwise.

func (*LicenseResponse) GetStatus

func (l *LicenseResponse) GetStatus() int

GetStatus returns the Status field if it's non-nil, zero value otherwise.

func (LicenseResponse) String

func (l LicenseResponse) String() string

type LicensesService

type LicensesService service

LicensesService handles communication with the license related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SECURITY

func (*LicensesService) DeleteHA

func (s *LicensesService) DeleteHA(hashes *LicenseRemoval) (*HALicenseResponse, *Response, error)

DeleteHA removes the provided license key(s) from an HA cluster.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteHAClusterLicense

func (*LicensesService) GetHA

func (s *LicensesService) GetHA() (*HALicenses, *Response, error)

GetHA returns a list of licenses for an HA cluster.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-HALicenseInformation

func (*LicensesService) Install

func (s *LicensesService) Install(license *LicenseRequest) (*LicenseResponse, *Response, error)

Install deploys the provided license to the instance.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-InstallLicense

func (*LicensesService) InstallHA

func (s *LicensesService) InstallHA(licenses *[]LicenseRequest) (*HALicenseResponse, *Response, error)

InstallHA deploys the provided license(s) to an HA cluster.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-InstallHAClusterLicenses

type LocalRepository

type LocalRepository struct {
	*GenericRepository

	DebianTrivialLayout             *bool     `json:"debianTrivialLayout,omitempty" xml:"debianTrivialLayout,omitempty"`
	ChecksumPolicyType              *string   `json:"checksumPolicyType,omitempty" xml:"localRepoChecksumPolicyType,omitempty"`
	MaxUniqueTags                   *int      `json:"maxUniqueTags,omitempty" xml:"maxUniqueTags,omitempty"`
	SnapshotVersionBehavior         *string   `json:"snapshotVersionBehavior,omitempty" xml:"snapshotVersionBehavior,omitempty"`
	ArchiveBrowsingEnabled          *bool     `json:"archiveBrowsingEnabled,omitempty" xml:"archiveBrowsingEnabled,omitempty"`
	CalculateYumMetadata            *bool     `json:"calculateYumMetadata,omitempty" xml:"calculateYumMetadata,omitempty"`
	YumRootDepth                    *int      `json:"yumRootDepth,omitempty" xml:"yumRootDepth,omitempty"`
	DockerAPIVersion                *string   `json:"dockerApiVersion,omitempty" xml:"dockerApiVersion,omitempty"`
	BlockPushingSchema1             *bool     `json:"blockPushingSchema1,omitempty" xml:"blockPushingSchema1,omitempty"`
	EnableFileListsIndexing         *bool     `json:"enableFileListsIndexing,omitempty" xml:"enableFileListsIndexing,omitempty"`
	OptionalIndexCompressionFormats *[]string `json:"optionalIndexCompressionFormats,omitempty" xml:"optionalIndexCompressionFormats>debianFormat,omitempty"`
	XrayIndex                       *bool     `json:"xrayIndex,omitempty" xml:"xray>enabled,omitempty"`
	DownloadRedirect                *bool     `json:"downloadRedirect,omitempty" xml:"downloadRedirect>enabled,omitempty"`
}

LocalRepository represents a local repository in Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON#RepositoryConfigurationJSON-application/vnd.org.jfrog.artifactory.repositories.LocalRepositoryConfiguration+json

func (*LocalRepository) GetArchiveBrowsingEnabled

func (l *LocalRepository) GetArchiveBrowsingEnabled() bool

GetArchiveBrowsingEnabled returns the ArchiveBrowsingEnabled field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetBlockPushingSchema1

func (l *LocalRepository) GetBlockPushingSchema1() bool

GetBlockPushingSchema1 returns the BlockPushingSchema1 field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetCalculateYumMetadata

func (l *LocalRepository) GetCalculateYumMetadata() bool

GetCalculateYumMetadata returns the CalculateYumMetadata field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetChecksumPolicyType

func (l *LocalRepository) GetChecksumPolicyType() string

GetChecksumPolicyType returns the ChecksumPolicyType field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetDebianTrivialLayout

func (l *LocalRepository) GetDebianTrivialLayout() bool

GetDebianTrivialLayout returns the DebianTrivialLayout field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetDockerAPIVersion

func (l *LocalRepository) GetDockerAPIVersion() string

GetDockerAPIVersion returns the DockerAPIVersion field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetDownloadRedirect

func (l *LocalRepository) GetDownloadRedirect() bool

GetDownloadRedirect returns the DownloadRedirect field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetEnableFileListsIndexing

func (l *LocalRepository) GetEnableFileListsIndexing() bool

GetEnableFileListsIndexing returns the EnableFileListsIndexing field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetMaxUniqueTags

func (l *LocalRepository) GetMaxUniqueTags() int

GetMaxUniqueTags returns the MaxUniqueTags field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetOptionalIndexCompressionFormats

func (l *LocalRepository) GetOptionalIndexCompressionFormats() []string

GetOptionalIndexCompressionFormats returns the OptionalIndexCompressionFormats field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetSnapshotVersionBehavior

func (l *LocalRepository) GetSnapshotVersionBehavior() string

GetSnapshotVersionBehavior returns the SnapshotVersionBehavior field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetXrayIndex

func (l *LocalRepository) GetXrayIndex() bool

GetXrayIndex returns the XrayIndex field if it's non-nil, zero value otherwise.

func (*LocalRepository) GetYumRootDepth

func (l *LocalRepository) GetYumRootDepth() int

GetYumRootDepth returns the YumRootDepth field if it's non-nil, zero value otherwise.

func (LocalRepository) String

func (l LocalRepository) String() string

type MailServer

type MailServer struct {
	Enabled        *bool   `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	ArtifactoryUrl *string `yaml:"artifactoryUrl,omitempty" xml:"artifactoryUrl,omitempty"`
	From           *string `yaml:"from,omitempty" xml:"from,omitempty"`
	Host           *string `yaml:"host,omitempty" xml:"host,omitempty"`
	Username       *string `yaml:"username,omitempty" xml:"username,omitempty"`
	Password       *string `yaml:"password,omitempty" xml:"password,omitempty"`
	Port           *int    `yaml:"port,omitempty" xml:"port,omitempty"`
	SubjectPrefix  *string `yaml:"subjectPrefix,omitempty" xml:"subjectPrefix,omitempty"`
	Ssl            *bool   `yaml:"ssl,omitempty" xml:"ssl,omitempty"`
	Tls            *bool   `yaml:"tls,omitempty" xml:"tls,omitempty"`
	Reset          *bool   `yaml:"-" xml:"-"`
}

MailServer represents a Mail Server setting in Artifactory General Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*MailServer) GetArtifactoryUrl

func (m *MailServer) GetArtifactoryUrl() string

GetArtifactoryUrl returns the ArtifactoryUrl field if it's non-nil, zero value otherwise.

func (*MailServer) GetEnabled

func (m *MailServer) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*MailServer) GetFrom

func (m *MailServer) GetFrom() string

GetFrom returns the From field if it's non-nil, zero value otherwise.

func (*MailServer) GetHost

func (m *MailServer) GetHost() string

GetHost returns the Host field if it's non-nil, zero value otherwise.

func (*MailServer) GetPassword

func (m *MailServer) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*MailServer) GetPort

func (m *MailServer) GetPort() int

GetPort returns the Port field if it's non-nil, zero value otherwise.

func (*MailServer) GetReset

func (m *MailServer) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*MailServer) GetSsl

func (m *MailServer) GetSsl() bool

GetSsl returns the Ssl field if it's non-nil, zero value otherwise.

func (*MailServer) GetSubjectPrefix

func (m *MailServer) GetSubjectPrefix() string

GetSubjectPrefix returns the SubjectPrefix field if it's non-nil, zero value otherwise.

func (*MailServer) GetTls

func (m *MailServer) GetTls() bool

GetTls returns the Tls field if it's non-nil, zero value otherwise.

func (*MailServer) GetUsername

func (m *MailServer) GetUsername() string

GetUsername returns the Username field if it's non-nil, zero value otherwise.

func (MailServer) MarshalYAML

func (m MailServer) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type Modules

type Modules struct {
	Properties *map[string]string `json:"properties,omitempty"`
	ID         *string            `json:"id,omitempty"`
	Artifacts  *[]BuildArtifacts  `json:"artifacts,omitempty"`
}

Modules contains information about modules within a build

func (*Modules) GetArtifacts

func (m *Modules) GetArtifacts() []BuildArtifacts

GetArtifacts returns the Artifacts field if it's non-nil, zero value otherwise.

func (*Modules) GetID

func (m *Modules) GetID() string

GetID returns the ID field if it's non-nil, zero value otherwise.

func (*Modules) GetProperties

func (m *Modules) GetProperties() map[string]string

GetProperties returns the Properties field if it's non-nil, zero value otherwise.

type MultiPushReplication

type MultiPushReplication struct {
	CronExp                *string        `json:"cronExp,omitempty"`
	EnableEventReplication *bool          `json:"enableEventReplication,omitempty"`
	Replications           *[]Replication `json:"replications,omitempty"`
}

MultiPushReplication represents a Local Multi-push replication in Artifactory

func (*MultiPushReplication) GetCronExp

func (m *MultiPushReplication) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*MultiPushReplication) GetEnableEventReplication

func (m *MultiPushReplication) GetEnableEventReplication() bool

GetEnableEventReplication returns the EnableEventReplication field if it's non-nil, zero value otherwise.

func (*MultiPushReplication) GetReplications

func (m *MultiPushReplication) GetReplications() []Replication

GetReplications returns the Replications field if it's non-nil, zero value otherwise.

func (MultiPushReplication) String

func (r MultiPushReplication) String() string

type OauthProviderSetting

type OauthProviderSetting struct {
	Name         *string `yaml:"-" xml:"name,omitempty"`
	Id           *string `yaml:"id,omitempty" xml:"id,omitempty"`
	ApiUrl       *string `yaml:"apiUrl,omitempty" xml:"apiUrl,omitempty"`
	AuthUrl      *string `yaml:"authUrl,omitempty" xml:"authUrl,omitempty"`
	BasicUrl     *string `yaml:"basicUrl,omitempty" xml:"basicUrl,omitempty"`
	Enabled      *bool   `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	ProviderType *string `yaml:"providerType,omitempty" xml:"providerType,omitempty"`
	Secret       *string `yaml:"secret,omitempty" xml:"secret,omitempty"`
	TokenUrl     *string `yaml:"tokenUrl,omitempty" xml:"tokenUrl,omitempty"`
}

OauthProviderSetting represents the Oauth Provider settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*OauthProviderSetting) GetApiUrl

func (o *OauthProviderSetting) GetApiUrl() string

GetApiUrl returns the ApiUrl field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetAuthUrl

func (o *OauthProviderSetting) GetAuthUrl() string

GetAuthUrl returns the AuthUrl field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetBasicUrl

func (o *OauthProviderSetting) GetBasicUrl() string

GetBasicUrl returns the BasicUrl field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetEnabled

func (o *OauthProviderSetting) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetId

func (o *OauthProviderSetting) GetId() string

GetId returns the Id field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetName

func (o *OauthProviderSetting) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetProviderType

func (o *OauthProviderSetting) GetProviderType() string

GetProviderType returns the ProviderType field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetSecret

func (o *OauthProviderSetting) GetSecret() string

GetSecret returns the Secret field if it's non-nil, zero value otherwise.

func (*OauthProviderSetting) GetTokenUrl

func (o *OauthProviderSetting) GetTokenUrl() string

GetTokenUrl returns the TokenUrl field if it's non-nil, zero value otherwise.

type OauthProviderSettings

type OauthProviderSettings []*OauthProviderSetting

OauthProviderSettings is an alias for a slice of OauthProviderSetting that can be properly marshaled to/from YAML.

func (OauthProviderSettings) MarshalYAML

func (o OauthProviderSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for OauthProviderSettings.

func (*OauthProviderSettings) UnmarshalYAML

func (o *OauthProviderSettings) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for OauthProviderSettings.

type OauthSettings

type OauthSettings struct {
	AllowUserToAccessProfile *bool                  `yaml:"allowUserToAccessProfile,omitempty" xml:"allowUserToAccessProfile,omitempty"`
	EnableIntegration        *bool                  `yaml:"enableIntegration,omitempty" xml:"enableIntegration,omitempty"`
	PersistUsers             *bool                  `yaml:"persistUsers,omitempty" xml:"persistUsers,omitempty"`
	OauthProvidersSettings   *OauthProviderSettings `yaml:"oauthProvidersSettings,omitempty" xml:"oauthProvidersSettings>oauthProvidersSettings,omitempty"`
	Reset                    *bool                  `yaml:"-" xml:"-"`
}

OauthSettings represents the OAuth settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*OauthSettings) GetAllowUserToAccessProfile

func (o *OauthSettings) GetAllowUserToAccessProfile() bool

GetAllowUserToAccessProfile returns the AllowUserToAccessProfile field if it's non-nil, zero value otherwise.

func (*OauthSettings) GetEnableIntegration

func (o *OauthSettings) GetEnableIntegration() bool

GetEnableIntegration returns the EnableIntegration field if it's non-nil, zero value otherwise.

func (*OauthSettings) GetOauthProvidersSettings

func (o *OauthSettings) GetOauthProvidersSettings() *OauthProviderSettings

GetOauthProvidersSettings returns the OauthProvidersSettings field.

func (*OauthSettings) GetPersistUsers

func (o *OauthSettings) GetPersistUsers() bool

GetPersistUsers returns the PersistUsers field if it's non-nil, zero value otherwise.

func (*OauthSettings) GetReset

func (o *OauthSettings) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (OauthSettings) MarshalYAML

func (o OauthSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type PasswordSettings

type PasswordSettings struct {
	EncryptionPolicy *string           `yaml:"encryptionPolicy,omitempty" xml:"encryptionPolicy,omitempty"`
	ExpirationPolicy *ExpirationPolicy `yaml:"expirationPolicy,omitempty" xml:"expirationPolicy,omitempty"`
	ResetPolicy      *ResetPolicy      `yaml:"resetPolicy,omitempty" xml:"resetPolicy,omitempty"`
	Reset            *bool             `yaml:"-" xml:"-"`
}

PasswordSettings represents the Password settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*PasswordSettings) GetEncryptionPolicy

func (p *PasswordSettings) GetEncryptionPolicy() string

GetEncryptionPolicy returns the EncryptionPolicy field if it's non-nil, zero value otherwise.

func (*PasswordSettings) GetExpirationPolicy

func (p *PasswordSettings) GetExpirationPolicy() *ExpirationPolicy

GetExpirationPolicy returns the ExpirationPolicy field.

func (*PasswordSettings) GetReset

func (p *PasswordSettings) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*PasswordSettings) GetResetPolicy

func (p *PasswordSettings) GetResetPolicy() *ResetPolicy

GetResetPolicy returns the ResetPolicy field.

func (PasswordSettings) MarshalYAML

func (p PasswordSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type PermissionDetails

type PermissionDetails struct {
	IncludePatterns *[]string `json:"include-patterns,omitempty"`
	ExcludePatterns *[]string `json:"exclude-patterns,omitempty"`
	Repositories    *[]string `json:"repositories,omitempty"`
	Actions         *Actions  `json:"actions,omitempty"`
}

PermissionDetails represents the information about the repo, build, or releasebundle within the permission target.

func (*PermissionDetails) GetActions

func (p *PermissionDetails) GetActions() *Actions

GetActions returns the Actions field.

func (*PermissionDetails) GetExcludePatterns

func (p *PermissionDetails) GetExcludePatterns() []string

GetExcludePatterns returns the ExcludePatterns field if it's non-nil, zero value otherwise.

func (*PermissionDetails) GetIncludePatterns

func (p *PermissionDetails) GetIncludePatterns() []string

GetIncludePatterns returns the IncludePatterns field if it's non-nil, zero value otherwise.

func (*PermissionDetails) GetRepositories

func (p *PermissionDetails) GetRepositories() []string

GetRepositories returns the Repositories field if it's non-nil, zero value otherwise.

type PermissionTarget

type PermissionTarget struct {
	Name            *string     `json:"name,omitempty"`
	URI             *string     `json:"uri,omitempty"`
	IncludesPattern *string     `json:"includesPattern,omitempty"`
	ExcludesPattern *string     `json:"excludesPattern,omitempty"`
	Repositories    *[]string   `json:"repositories,omitempty"`
	Principals      *Principals `json:"principals,omitempty"`
}

PermissionTarget represents a permission target in Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Security+Configuration+JSON#SecurityConfigurationJSON-application/vnd.org.jfrog.artifactory.security.PermissionTarget+json

func (*PermissionTarget) GetExcludesPattern

func (p *PermissionTarget) GetExcludesPattern() string

GetExcludesPattern returns the ExcludesPattern field if it's non-nil, zero value otherwise.

func (*PermissionTarget) GetIncludesPattern

func (p *PermissionTarget) GetIncludesPattern() string

GetIncludesPattern returns the IncludesPattern field if it's non-nil, zero value otherwise.

func (*PermissionTarget) GetName

func (p *PermissionTarget) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*PermissionTarget) GetPrincipals

func (p *PermissionTarget) GetPrincipals() *Principals

GetPrincipals returns the Principals field.

func (*PermissionTarget) GetRepositories

func (p *PermissionTarget) GetRepositories() []string

GetRepositories returns the Repositories field if it's non-nil, zero value otherwise.

func (*PermissionTarget) GetURI

func (p *PermissionTarget) GetURI() string

GetURI returns the URI field if it's non-nil, zero value otherwise.

func (PermissionTarget) String

func (p PermissionTarget) String() string

type PermissionTargetV2

type PermissionTargetV2 struct {
	Name          *string            `json:"name,omitempty"`
	Repo          *PermissionDetails `json:"repo,omitempty"`
	Build         *PermissionDetails `json:"build,omitempty"`
	ReleaseBundle *PermissionDetails `json:"releaseBundle,omitempty"`
}

PermissionTargetV2 represents a v2 permission target.

Docs: https://www.jfrog.com/confluence/display/JFROG/Security+Configuration+JSON#SecurityConfigurationJSON-application/vnd.org.jfrog.artifactory.security.PermissionTargetV2+json

func (*PermissionTargetV2) GetBuild

func (p *PermissionTargetV2) GetBuild() *PermissionDetails

GetBuild returns the Build field.

func (*PermissionTargetV2) GetName

func (p *PermissionTargetV2) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*PermissionTargetV2) GetReleaseBundle

func (p *PermissionTargetV2) GetReleaseBundle() *PermissionDetails

GetReleaseBundle returns the ReleaseBundle field.

func (*PermissionTargetV2) GetRepo

func (p *PermissionTargetV2) GetRepo() *PermissionDetails

GetRepo returns the Repo field.

func (PermissionTargetV2) String

func (p PermissionTargetV2) String() string

type PermissionsService

type PermissionsService service

PermissionsService handles communication with the permissions related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SECURITY

func (*PermissionsService) Create

func (s *PermissionsService) Create(target *PermissionTarget) (*string, *Response, error)

Create constructs a permission target with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateorReplacePermissionTarget

func (*PermissionsService) Delete

func (s *PermissionsService) Delete(target string) (*string, *Response, error)

Delete removes the provided permission target.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeletePermissionTarget

func (*PermissionsService) Get

Get returns the provided permission target.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetPermissionTargetDetails

func (*PermissionsService) GetAll

func (s *PermissionsService) GetAll() (*[]PermissionTarget, *Response, error)

GetAll returns a list of all permission targets.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetPermissionTargets

func (*PermissionsService) Update

func (s *PermissionsService) Update(target *PermissionTarget) (*string, *Response, error)

Update modifies a permission target with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateorReplacePermissionTarget

type PermissionsServiceV2

type PermissionsServiceV2 service

PermissionsServiceV2 handles communication with the permissions related methods of the Artifactory API v2.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API+V2

func (*PermissionsServiceV2) Exists

func (s *PermissionsServiceV2) Exists(target string) (bool, error)

Exists validates if the specific permission target exists.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API+V2#ArtifactoryRESTAPIV2-PermissionTargetexistencecheck

func (*PermissionsServiceV2) Update

func (s *PermissionsServiceV2) Update(target *PermissionTargetV2) (*string, *Response, error)

Update creates a new permission target or replaces an existing permission target.

Docs: https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API+V2#ArtifactoryRESTAPIV2-UpdatePermissionTarget

type PredefinedValue

type PredefinedValue struct {
	Value        *string `yaml:"-" xml:"value,omitempty"`
	DefaultValue *bool   `yaml:"defaultValue,omitempty" xml:"defaultValue,omitempty"`
}

func (*PredefinedValue) GetDefaultValue

func (p *PredefinedValue) GetDefaultValue() bool

GetDefaultValue returns the DefaultValue field if it's non-nil, zero value otherwise.

func (*PredefinedValue) GetValue

func (p *PredefinedValue) GetValue() string

GetValue returns the Value field if it's non-nil, zero value otherwise.

type PredefinedValues

type PredefinedValues []*PredefinedValue

PredefinedValues is an alias for a slice of PredefinedValue in a PropertySet's Property that can be properly marshaled to/from YAML.

func (PredefinedValues) MarshalYAML

func (p PredefinedValues) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for PredefinedValues.

func (*PredefinedValues) UnmarshalYAML

func (p *PredefinedValues) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for PredefinedValues.

type Principals

type Principals struct {
	Users  *map[string][]string `json:"users,omitempty"`
	Groups *map[string][]string `json:"groups,omitempty"`
}

Principals represents user and group permissions in Artifactory.

type Properties

type Properties []*Property

Properties is an alias for a slice of Property in a PropertySet that can be properly marshaled to/from YAML.

func (Properties) MarshalYAML

func (p Properties) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for Properties.

func (*Properties) UnmarshalYAML

func (p *Properties) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Properties.

type Property

type Property struct {
	Name                   *string           `yaml:"-" xml:"name,omitempty"`
	PredefinedValues       *PredefinedValues `yaml:"predefinedValues,omitempty" xml:"predefinedValues>predefinedValue,omitempty"`
	ClosedPredefinedValues *bool             `yaml:"closedPredefinedValues,omitempty" xml:"closedPredefinedValues,omitempty"`
	MultipleChoice         *bool             `yaml:"multipleChoice,omitempty" xml:"multipleChoice,omitempty"`
}

func (*Property) GetClosedPredefinedValues

func (p *Property) GetClosedPredefinedValues() bool

GetClosedPredefinedValues returns the ClosedPredefinedValues field if it's non-nil, zero value otherwise.

func (*Property) GetMultipleChoice

func (p *Property) GetMultipleChoice() bool

GetMultipleChoice returns the MultipleChoice field if it's non-nil, zero value otherwise.

func (*Property) GetName

func (p *Property) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*Property) GetPredefinedValues

func (p *Property) GetPredefinedValues() *PredefinedValues

GetPredefinedValues returns the PredefinedValues field.

type PropertySet

type PropertySet struct {
	Name       *string     `yaml:"-" xml:"name,omitempty"`
	Properties *Properties `yaml:"properties,omitempty" xml:"properties>property,omitempty"`
	Visible    *bool       `yaml:"visible,omitempty" xml:"visible,omitempty"`
}

PropertySet represents a Property Set in Artifactory's Global Configuration Descriptor.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*PropertySet) GetName

func (p *PropertySet) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*PropertySet) GetProperties

func (p *PropertySet) GetProperties() *Properties

GetProperties returns the Properties field.

func (*PropertySet) GetVisible

func (p *PropertySet) GetVisible() bool

GetVisible returns the Visible field if it's non-nil, zero value otherwise.

type PropertySets

type PropertySets []*PropertySet

PropertySets is an alias for a slice of PropertySet that can be properly marshaled to/from YAML.

func (PropertySets) MarshalYAML

func (p PropertySets) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for PropertySets.

func (*PropertySets) UnmarshalYAML

func (p *PropertySets) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for PropertySets.

type Proxies

type Proxies []*Proxy

Proxies is an alias for a slice of Proxy that can be properly marshaled to/from YAML.

func (Proxies) MarshalYAML

func (p Proxies) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for Proxies.

func (*Proxies) UnmarshalYAML

func (p *Proxies) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Proxies.

type Proxy

type Proxy struct {
	Key             *string `yaml:"-" xml:"key,omitempty"`
	Domain          *string `yaml:"domain,omitempty" xml:"domain,omitempty"`
	Host            *string `yaml:"host,omitempty" xml:"host,omitempty"`
	NtHost          *string `yaml:"ntHost,omitempty" xml:"ntHost,omitempty"`
	Password        *string `yaml:"password,omitempty" xml:"password,omitempty"`
	Port            *int    `yaml:"port,omitempty" xml:"port,omitempty"`
	RedirectToHosts *string `yaml:"redirectedToHosts,omitempty" xml:"redirectedToHosts,omitempty"`
	Username        *string `yaml:"username,omitempty" xml:"username,omitempty"`
	DefaultProxy    *bool   `yaml:"defaultProxy,omitempty" xml:"defaultProxy,omitempty"`
}

Proxy represents a Proxy setting in Artifactory's Global Configuration Descriptor.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*Proxy) GetDefaultProxy

func (p *Proxy) GetDefaultProxy() bool

GetDefaultProxy returns the DefaultProxy field if it's non-nil, zero value otherwise.

func (*Proxy) GetDomain

func (p *Proxy) GetDomain() string

GetDomain returns the Domain field if it's non-nil, zero value otherwise.

func (*Proxy) GetHost

func (p *Proxy) GetHost() string

GetHost returns the Host field if it's non-nil, zero value otherwise.

func (*Proxy) GetKey

func (p *Proxy) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*Proxy) GetNtHost

func (p *Proxy) GetNtHost() string

GetNtHost returns the NtHost field if it's non-nil, zero value otherwise.

func (*Proxy) GetPassword

func (p *Proxy) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*Proxy) GetPort

func (p *Proxy) GetPort() int

GetPort returns the Port field if it's non-nil, zero value otherwise.

func (*Proxy) GetRedirectToHosts

func (p *Proxy) GetRedirectToHosts() string

GetRedirectToHosts returns the RedirectToHosts field if it's non-nil, zero value otherwise.

func (*Proxy) GetUsername

func (p *Proxy) GetUsername() string

GetUsername returns the Username field if it's non-nil, zero value otherwise.

type QuotaConfig

type QuotaConfig struct {
	DiskSpaceLimitPercentage   *int  `yaml:"diskSpaceLimitPercentage,omitempty" xml:"diskSpaceLimitPercentage,omitempty"`
	DiskSpaceWarningPercentage *int  `yaml:"diskSpaceWarningPercentage,omitempty" xml:"diskSpaceWarningPercentage,omitempty"`
	Enabled                    *bool `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	Reset                      *bool `yaml:"-" xml:"-"`
}

QuotaConfig represents the Storage Quota settings in Artifactory Maintenance Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Servicesconfiguration(Backups,MavenIndexer)

func (*QuotaConfig) GetDiskSpaceLimitPercentage

func (q *QuotaConfig) GetDiskSpaceLimitPercentage() int

GetDiskSpaceLimitPercentage returns the DiskSpaceLimitPercentage field if it's non-nil, zero value otherwise.

func (*QuotaConfig) GetDiskSpaceWarningPercentage

func (q *QuotaConfig) GetDiskSpaceWarningPercentage() int

GetDiskSpaceWarningPercentage returns the DiskSpaceWarningPercentage field if it's non-nil, zero value otherwise.

func (*QuotaConfig) GetEnabled

func (q *QuotaConfig) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*QuotaConfig) GetReset

func (q *QuotaConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (QuotaConfig) MarshalYAML

func (q QuotaConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type Registry

type Registry struct {
	Repositories *[]string `json:"repositories,omitempty"`
}

Registry represents the list of Docker repositories in a registry in Artifactory.

func (*Registry) GetRepositories

func (r *Registry) GetRepositories() []string

GetRepositories returns the Repositories field if it's non-nil, zero value otherwise.

func (Registry) String

func (r Registry) String() string

type ReleaseBundlesConfig

type ReleaseBundlesConfig struct {
	IncompleteCleanupPeriodHours *int  `yaml:"incompleteCleanupPeriodHours,omitempty" xml:"incompleteCleanupPeriodHours,omitempty"`
	Reset                        *bool `yaml:"-" xml:"-"`
}

ReleaseBundlesConfig represents Release Bundle settings in Artifactory's Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*ReleaseBundlesConfig) GetIncompleteCleanupPeriodHours

func (r *ReleaseBundlesConfig) GetIncompleteCleanupPeriodHours() int

GetIncompleteCleanupPeriodHours returns the IncompleteCleanupPeriodHours field if it's non-nil, zero value otherwise.

func (*ReleaseBundlesConfig) GetReset

func (r *ReleaseBundlesConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (ReleaseBundlesConfig) MarshalYAML

func (r ReleaseBundlesConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type RemoteRepository

type RemoteRepository struct {
	*GenericRepository

	URL                               *string                 `json:"url,omitempty" xml:"url,omitempty"`
	Username                          *string                 `json:"username,omitempty" xml:"username,omitempty"`
	Password                          *string                 `json:"password,omitempty" xml:"password,omitempty"`
	Proxy                             *string                 `json:"proxy,omitempty" xml:"proxyRef,omitempty"`
	RemoteRepoChecksumPolicyType      *string                 `json:"remoteRepoChecksumPolicyType,omitempty" xml:"remoteRepoChecksumPolicyType,omitempty"`
	HardFail                          *bool                   `json:"hardFail,omitempty" xml:"hardFail,omitempty"`
	Offline                           *bool                   `json:"offline,omitempty" xml:"offline,omitempty"`
	StoreArtifactsLocally             *bool                   `json:"storeArtifactsLocally,omitempty" xml:"storeArtifactsLocally,omitempty"`
	SocketTimeoutMillis               *int                    `json:"socketTimeoutMillis,omitempty" xml:"socketTimeoutMillis,omitempty"`
	LocalAddress                      *string                 `json:"localAddress,omitempty" xml:"localAddress,omitempty"`
	RetrievalCachePeriodSecs          *int                    `json:"retrievalCachePeriodSecs,omitempty" xml:"retrievalCachePeriodSecs,omitempty"`
	FailedRetrievalCachePeriodSecs    *int                    `json:"failedRetrievalCachePeriodSecs,omitempty" xml:"failedRetrievalCachePeriodSecs,omitempty"`
	MissedRetrievalCachePeriodSecs    *int                    `json:"missedRetrievalCachePeriodSecs,omitempty" xml:"missedRetrievalCachePeriodSecs,omitempty"`
	MetadataRetrievalTimeoutSecs      *int                    `json:"metadataRetrievalTimeoutSecs,omitempty" xml:"metadataRetrievalTimeoutSecs,omitempty"`
	UnusedArtifactsCleanupEnabled     *bool                   `json:"unusedArtifactsCleanupEnabled,omitempty" xml:"unusedArtifactsCleanupEnabled,omitempty"`
	UnusedArtifactsCleanupPeriodHours *int                    `json:"unusedArtifactsCleanupPeriodHours,omitempty" xml:"unusedArtifactsCleanupPeriodHours,omitempty"`
	AssumedOfflinePeriodSecs          *int                    `json:"assumedOfflinePeriodSecs,omitempty" xml:"assumedOfflinePeriodSecs,omitempty"`
	FetchJarsEagerly                  *bool                   `json:"fetchJarsEagerly,omitempty" xml:"fetchJarsEagerly,omitempty"`
	FetchSourcesEagerly               *bool                   `json:"fetchSourcesEagerly,omitempty" xml:"fetchSourcesEagerly,omitempty"`
	ShareConfiguration                *bool                   `json:"shareConfiguration,omitempty" xml:"shareConfiguration,omitempty"`
	SynchronizeProperties             *bool                   `json:"synchronizeProperties,omitempty" xml:"synchronizeProperties,omitempty"`
	BlockMismatchingMimeTypes         *bool                   `json:"blockMismatchingMimeTypes,omitempty" xml:"blockMismatchingMimeTypes,omitempty"`
	AllowAnyHostAuth                  *bool                   `json:"allowAnyHostAuth,omitempty" xml:"allowAnyHostAuth,omitempty"`
	EnableCookieManagement            *bool                   `json:"enableCookieManagement,omitempty" xml:"enableCookieManagement,omitempty"`
	BowerRegistryURL                  *string                 `json:"bowerRegistryUrl,omitempty" xml:"bowerRegistryUrl,omitempty"`
	ComposerRegistryURL               *string                 `json:"composerRegistryUrl,omitempty" xml:"composerRegistryUrl,omitempty"`
	PyPIRegistryURL                   *string                 `json:"pyPIRegistryUrl,omitempty" xml:"pypi>pyPIRegistryUrl,omitempty"`
	PyPIRepositorySuffix              *string                 `json:"pyPIRepositorySuffix,omitempty" xml:"pyPIRepositorySuffix,omitempty"`
	VcsType                           *string                 `json:"vcsType,omitempty" xml:"vcs>type,omitempty"`
	VcsGitProvider                    *string                 `json:"vcsGitProvider,omitempty" xml:"vcs>git>provider,omitempty"`
	VcsGitDownloadUrl                 *string                 `json:"vcsGitDownloadUrl,omitempty" xml:"vcs>git>downloadUrl,omitempty"`
	BypassHeadRequests                *bool                   `json:"bypassHeadRequests,omitempty" xml:"bypassHeadRequests,omitempty"`
	ClientTLSCertificate              *string                 `json:"clientTlsCertificate,omitempty" xml:"clientTlsCertificate,omitempty"`
	ExternalDependenciesEnabled       *bool                   `json:"externalDependenciesEnabled,omitempty" xml:"externalDependencies>enabled,omitempty"`
	ExternalDependenciesPatterns      *[]string               `json:"externalDependenciesPatterns,omitempty" xml:"externalDependencies>patterns>pattern,omitempty"`
	DownloadRedirect                  *bool                   `json:"downloadRedirect,omitempty" xml:"downloadRedirect>enabled,omitempty"`
	FeedContextPath                   *string                 `json:"feedContextPath,omitempty" xml:"nuget>feedContextPath,omitempty"`
	DownloadContextPath               *string                 `json:"downloadContextPath,omitempty" xml:"nuget>downloadContextPath,omitempty"`
	V3FeedUrl                         *string                 `json:"v3FeedUrl,omitempty" xml:"nuget>v3FeedUrl,omitempty"`
	XrayIndex                         *bool                   `json:"xrayIndex,omitempty" xml:"xray>enabled,omitempty"`
	ListRemoteFolderItems             *bool                   `json:"listRemoteFolderItems,omitempty" xml:"listRemoteFolderItems,omitempty"`
	EnableTokenAuthentication         *bool                   `json:"enableTokenAuthentication,omitempty" xml:"enableTokenAuthentication,omitempty"`
	ContentSynchronisation            *ContentSynchronisation `json:"contentSynchronisation,omitempty" xml:"contentSynchronisation,omitempty"`
	BlockPushingSchema1               *bool                   `json:"blockPushingSchema1,omitempty" xml:"blockPushingSchema1,omitempty"`
	QueryParams                       *string                 `json:"queryParams,omitempty" xml:"queryParams,omitempty"`
	PropagateQueryParams              *bool                   `json:"propagateQueryParams,omitempty" xml:"propagateQueryParams,omitempty"`
}

RemoteRepository represents a remote repository in Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON#RepositoryConfigurationJSON-application/vnd.org.jfrog.artifactory.repositories.RemoteRepositoryConfiguration+json

func (*RemoteRepository) GetAllowAnyHostAuth

func (r *RemoteRepository) GetAllowAnyHostAuth() bool

GetAllowAnyHostAuth returns the AllowAnyHostAuth field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetAssumedOfflinePeriodSecs

func (r *RemoteRepository) GetAssumedOfflinePeriodSecs() int

GetAssumedOfflinePeriodSecs returns the AssumedOfflinePeriodSecs field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetBlockMismatchingMimeTypes

func (r *RemoteRepository) GetBlockMismatchingMimeTypes() bool

GetBlockMismatchingMimeTypes returns the BlockMismatchingMimeTypes field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetBlockPushingSchema1

func (r *RemoteRepository) GetBlockPushingSchema1() bool

GetBlockPushingSchema1 returns the BlockPushingSchema1 field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetBowerRegistryURL

func (r *RemoteRepository) GetBowerRegistryURL() string

GetBowerRegistryURL returns the BowerRegistryURL field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetBypassHeadRequests

func (r *RemoteRepository) GetBypassHeadRequests() bool

GetBypassHeadRequests returns the BypassHeadRequests field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetClientTLSCertificate

func (r *RemoteRepository) GetClientTLSCertificate() string

GetClientTLSCertificate returns the ClientTLSCertificate field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetComposerRegistryURL

func (r *RemoteRepository) GetComposerRegistryURL() string

GetComposerRegistryURL returns the ComposerRegistryURL field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetContentSynchronisation

func (r *RemoteRepository) GetContentSynchronisation() *ContentSynchronisation

GetContentSynchronisation returns the ContentSynchronisation field.

func (*RemoteRepository) GetDownloadContextPath

func (r *RemoteRepository) GetDownloadContextPath() string

GetDownloadContextPath returns the DownloadContextPath field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetDownloadRedirect

func (r *RemoteRepository) GetDownloadRedirect() bool

GetDownloadRedirect returns the DownloadRedirect field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetEnableCookieManagement

func (r *RemoteRepository) GetEnableCookieManagement() bool

GetEnableCookieManagement returns the EnableCookieManagement field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetEnableTokenAuthentication

func (r *RemoteRepository) GetEnableTokenAuthentication() bool

GetEnableTokenAuthentication returns the EnableTokenAuthentication field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetExternalDependenciesEnabled

func (r *RemoteRepository) GetExternalDependenciesEnabled() bool

GetExternalDependenciesEnabled returns the ExternalDependenciesEnabled field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetExternalDependenciesPatterns

func (r *RemoteRepository) GetExternalDependenciesPatterns() []string

GetExternalDependenciesPatterns returns the ExternalDependenciesPatterns field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetFailedRetrievalCachePeriodSecs

func (r *RemoteRepository) GetFailedRetrievalCachePeriodSecs() int

GetFailedRetrievalCachePeriodSecs returns the FailedRetrievalCachePeriodSecs field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetFeedContextPath

func (r *RemoteRepository) GetFeedContextPath() string

GetFeedContextPath returns the FeedContextPath field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetFetchJarsEagerly

func (r *RemoteRepository) GetFetchJarsEagerly() bool

GetFetchJarsEagerly returns the FetchJarsEagerly field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetFetchSourcesEagerly

func (r *RemoteRepository) GetFetchSourcesEagerly() bool

GetFetchSourcesEagerly returns the FetchSourcesEagerly field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetHardFail

func (r *RemoteRepository) GetHardFail() bool

GetHardFail returns the HardFail field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetListRemoteFolderItems

func (r *RemoteRepository) GetListRemoteFolderItems() bool

GetListRemoteFolderItems returns the ListRemoteFolderItems field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetLocalAddress

func (r *RemoteRepository) GetLocalAddress() string

GetLocalAddress returns the LocalAddress field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetMetadataRetrievalTimeoutSecs

func (r *RemoteRepository) GetMetadataRetrievalTimeoutSecs() int

GetMetadataRetrievalTimeoutSecs returns the MetadataRetrievalTimeoutSecs field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetMissedRetrievalCachePeriodSecs

func (r *RemoteRepository) GetMissedRetrievalCachePeriodSecs() int

GetMissedRetrievalCachePeriodSecs returns the MissedRetrievalCachePeriodSecs field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetOffline

func (r *RemoteRepository) GetOffline() bool

GetOffline returns the Offline field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetPassword

func (r *RemoteRepository) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetPropagateQueryParams

func (r *RemoteRepository) GetPropagateQueryParams() bool

GetPropagateQueryParams returns the PropagateQueryParams field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetProxy

func (r *RemoteRepository) GetProxy() string

GetProxy returns the Proxy field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetPyPIRegistryURL

func (r *RemoteRepository) GetPyPIRegistryURL() string

GetPyPIRegistryURL returns the PyPIRegistryURL field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetPyPIRepositorySuffix

func (r *RemoteRepository) GetPyPIRepositorySuffix() string

GetPyPIRepositorySuffix returns the PyPIRepositorySuffix field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetQueryParams

func (r *RemoteRepository) GetQueryParams() string

GetQueryParams returns the QueryParams field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetRemoteRepoChecksumPolicyType

func (r *RemoteRepository) GetRemoteRepoChecksumPolicyType() string

GetRemoteRepoChecksumPolicyType returns the RemoteRepoChecksumPolicyType field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetRetrievalCachePeriodSecs

func (r *RemoteRepository) GetRetrievalCachePeriodSecs() int

GetRetrievalCachePeriodSecs returns the RetrievalCachePeriodSecs field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetShareConfiguration

func (r *RemoteRepository) GetShareConfiguration() bool

GetShareConfiguration returns the ShareConfiguration field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetSocketTimeoutMillis

func (r *RemoteRepository) GetSocketTimeoutMillis() int

GetSocketTimeoutMillis returns the SocketTimeoutMillis field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetStoreArtifactsLocally

func (r *RemoteRepository) GetStoreArtifactsLocally() bool

GetStoreArtifactsLocally returns the StoreArtifactsLocally field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetSynchronizeProperties

func (r *RemoteRepository) GetSynchronizeProperties() bool

GetSynchronizeProperties returns the SynchronizeProperties field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetURL

func (r *RemoteRepository) GetURL() string

GetURL returns the URL field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetUnusedArtifactsCleanupEnabled

func (r *RemoteRepository) GetUnusedArtifactsCleanupEnabled() bool

GetUnusedArtifactsCleanupEnabled returns the UnusedArtifactsCleanupEnabled field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetUnusedArtifactsCleanupPeriodHours

func (r *RemoteRepository) GetUnusedArtifactsCleanupPeriodHours() int

GetUnusedArtifactsCleanupPeriodHours returns the UnusedArtifactsCleanupPeriodHours field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetUsername

func (r *RemoteRepository) GetUsername() string

GetUsername returns the Username field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetV3FeedUrl

func (r *RemoteRepository) GetV3FeedUrl() string

GetV3FeedUrl returns the V3FeedUrl field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetVcsGitDownloadUrl

func (r *RemoteRepository) GetVcsGitDownloadUrl() string

GetVcsGitDownloadUrl returns the VcsGitDownloadUrl field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetVcsGitProvider

func (r *RemoteRepository) GetVcsGitProvider() string

GetVcsGitProvider returns the VcsGitProvider field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetVcsType

func (r *RemoteRepository) GetVcsType() string

GetVcsType returns the VcsType field if it's non-nil, zero value otherwise.

func (*RemoteRepository) GetXrayIndex

func (r *RemoteRepository) GetXrayIndex() bool

GetXrayIndex returns the XrayIndex field if it's non-nil, zero value otherwise.

func (RemoteRepository) String

func (r RemoteRepository) String() string

type Replication

type Replication struct {
	Username                        *string `json:"username,omitempty" xml:"username,omitempty"`
	Password                        *string `json:"password,omitempty" xml:"password,omitempty"`
	Url                             *string `json:"url,omitempty" xml:"url,omitempty"`
	SocketTimeoutMillis             *int    `json:"socketTimeoutMillis,omitempty" xml:"socketTimeoutMillis,omitempty"`
	CronExp                         *string `json:"cronExp,omitempty" xml:"cronExp,omitempty"`
	RepoKey                         *string `json:"repoKey,omitempty" xml:"repoKey,omitempty"`
	EnableEventReplication          *bool   `json:"enableEventReplication,omitempty" xml:"enableEventReplication,omitempty"`
	Enabled                         *bool   `json:"enabled,omitempty" xml:"enabled,omitempty"`
	SyncDeletes                     *bool   `json:"syncDeletes,omitempty" xml:"syncDeletes,omitempty"`
	SyncProperties                  *bool   `json:"syncProperties,omitempty" xml:"syncProperties,omitempty"`
	SyncStatistics                  *bool   `json:"syncStatistics,omitempty" xml:"syncStatistics,omitempty"`
	PathPrefix                      *string `json:"pathPrefix,omitempty" xml:"pathPrefix,omitempty"`
	CheckBinaryExistenceInFilestore *bool   `json:"checkBinaryExistenceInFilestore,omitempty" xml:"checkBinaryExistenceInFilestore,omitempty"`
}

Replication represents possible fields across all replication types in Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Replication+Configuration+JSON

func (*Replication) GetCheckBinaryExistenceInFilestore

func (r *Replication) GetCheckBinaryExistenceInFilestore() bool

GetCheckBinaryExistenceInFilestore returns the CheckBinaryExistenceInFilestore field if it's non-nil, zero value otherwise.

func (*Replication) GetCronExp

func (r *Replication) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*Replication) GetEnableEventReplication

func (r *Replication) GetEnableEventReplication() bool

GetEnableEventReplication returns the EnableEventReplication field if it's non-nil, zero value otherwise.

func (*Replication) GetEnabled

func (r *Replication) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*Replication) GetPassword

func (r *Replication) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*Replication) GetPathPrefix

func (r *Replication) GetPathPrefix() string

GetPathPrefix returns the PathPrefix field if it's non-nil, zero value otherwise.

func (*Replication) GetRepoKey

func (r *Replication) GetRepoKey() string

GetRepoKey returns the RepoKey field if it's non-nil, zero value otherwise.

func (*Replication) GetSocketTimeoutMillis

func (r *Replication) GetSocketTimeoutMillis() int

GetSocketTimeoutMillis returns the SocketTimeoutMillis field if it's non-nil, zero value otherwise.

func (*Replication) GetSyncDeletes

func (r *Replication) GetSyncDeletes() bool

GetSyncDeletes returns the SyncDeletes field if it's non-nil, zero value otherwise.

func (*Replication) GetSyncProperties

func (r *Replication) GetSyncProperties() bool

GetSyncProperties returns the SyncProperties field if it's non-nil, zero value otherwise.

func (*Replication) GetSyncStatistics

func (r *Replication) GetSyncStatistics() bool

GetSyncStatistics returns the SyncStatistics field if it's non-nil, zero value otherwise.

func (*Replication) GetUrl

func (r *Replication) GetUrl() string

GetUrl returns the Url field if it's non-nil, zero value otherwise.

func (*Replication) GetUsername

func (r *Replication) GetUsername() string

GetUsername returns the Username field if it's non-nil, zero value otherwise.

func (Replication) String

func (r Replication) String() string

type Replications

type Replications struct {
	*Replication
	ReplicationType *string `json:"replicationType,omitempty"`
}

Replications represents a replication returned by the undocumented replications endpoint.

Docs: This struct is currently undocumented by JFrog

func (*Replications) GetReplicationType

func (r *Replications) GetReplicationType() string

GetReplicationType returns the ReplicationType field if it's non-nil, zero value otherwise.

func (Replications) String

func (r Replications) String() string

type ReplicationsConfig

type ReplicationsConfig struct {
	BlockPullReplications *bool `yaml:"blockPullReplications,omitempty" xml:"blockPullReplications,omitempty"`
	BlockPushReplications *bool `yaml:"blockPushReplications,omitempty" xml:"blockPushReplications,omitempty"`
	Reset                 *bool `yaml:"-" xml:"-"`
}

ReplicationsConfig represents Global Replication Blocking settings in Artifactory General Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*ReplicationsConfig) GetBlockPullReplications

func (r *ReplicationsConfig) GetBlockPullReplications() bool

GetBlockPullReplications returns the BlockPullReplications field if it's non-nil, zero value otherwise.

func (*ReplicationsConfig) GetBlockPushReplications

func (r *ReplicationsConfig) GetBlockPushReplications() bool

GetBlockPushReplications returns the BlockPushReplications field if it's non-nil, zero value otherwise.

func (*ReplicationsConfig) GetReset

func (r *ReplicationsConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (ReplicationsConfig) MarshalYAML

func (r ReplicationsConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type ReplicationsService

type ReplicationsService service

ReplicationsService handles communication with the replications related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetRepositoryReplicationConfiguration

func (*ReplicationsService) Create

func (r *ReplicationsService) Create(repo string, replication *Replication) (*string, *Response, error)

Create constructs a single replication for the provided repository. If multiple push replications are required CreateMultiPush needs to be used Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateRepository

func (*ReplicationsService) CreateMultiPush

func (r *ReplicationsService) CreateMultiPush(repo string, replications *MultiPushReplication) (*string, *Response, error)

CreateMultiPush constructs a Local Multi-push replication for the provided repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateorReplaceLocalMulti-pushReplication

func (*ReplicationsService) Delete

func (r *ReplicationsService) Delete(repo string) (*string, *Response, error)

Delete deletes the existing replication configuration for the provided repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteRepositoryReplicationConfiguration

func (*ReplicationsService) DeleteMultiPush

func (r *ReplicationsService) DeleteMultiPush(repo string, url string) (*string, *Response, error)

DeleteMultiPush deletes replication configuration at the provided URL for the provided repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteRepositoryReplicationConfiguration

func (*ReplicationsService) Get

func (r *ReplicationsService) Get(repo string) (*[]Replication, *Response, error)

Get returns replications for the provided repository. Artifactory returns a JSON array for a local replication or a JSON object for a remote replication. This method returns a slice to maintain consistency. Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetRepositoryReplicationConfiguration

func (*ReplicationsService) GetAll

func (r *ReplicationsService) GetAll() (*[]Replications, *Response, error)

GetAll returns a list of all replications.

Docs: This endpoint is currently undocumented by JFrog

func (*ReplicationsService) Update

func (r *ReplicationsService) Update(repo string, replication *Replication) (*string, *Response, error)

Update updates a single replication for the provided repository. If updates are required for a local repository with multiple push replications UpdateMultiPush needs to be used Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-UpdateRepositoryReplicationConfiguration

func (*ReplicationsService) UpdateMultiPush

func (r *ReplicationsService) UpdateMultiPush(repo string, replications *MultiPushReplication) (*string, *Response, error)

UpdateMultiPush updates a Local Multi-push replication for the provided repository

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-UpdateLocalMulti-pushReplication

type RepoLayout

type RepoLayout struct {
	Name                             *string `yaml:"-" xml:"name,omitempty"`
	ArtifactPathPattern              *string `yaml:"artifactPathPattern,omitempty" xml:"artifactPathPattern,omitempty"`
	DistinctiveDescriptorPathPattern *bool   `yaml:"distinctiveDescriptorPathPattern,omitempty" xml:"distinctiveDescriptorPathPattern,omitempty"`
	DescriptorPathPattern            *string `yaml:"descriptorPathPattern,omitempty" xml:"descriptorPathPattern,omitempty"`
	FolderIntegrationRevisionRegExp  *string `yaml:"folderIntegrationRevisionRegExp,omitempty" xml:"folderIntegrationRevisionRegExp,omitempty"`
	FileIntegrationRevisionRegExp    *string `yaml:"fileIntegrationRevisionRegExp,omitempty" xml:"fileIntegrationRevisionRegExp,omitempty"`
}

RepoLayout represents a Repository Layout setting in Artifactory. This is undocumented in YAML Configuration File.

Docs: https://www.jfrog.com/confluence/display/RTF/Repository+Layouts

func (*RepoLayout) GetArtifactPathPattern

func (r *RepoLayout) GetArtifactPathPattern() string

GetArtifactPathPattern returns the ArtifactPathPattern field if it's non-nil, zero value otherwise.

func (*RepoLayout) GetDescriptorPathPattern

func (r *RepoLayout) GetDescriptorPathPattern() string

GetDescriptorPathPattern returns the DescriptorPathPattern field if it's non-nil, zero value otherwise.

func (*RepoLayout) GetDistinctiveDescriptorPathPattern

func (r *RepoLayout) GetDistinctiveDescriptorPathPattern() bool

GetDistinctiveDescriptorPathPattern returns the DistinctiveDescriptorPathPattern field if it's non-nil, zero value otherwise.

func (*RepoLayout) GetFileIntegrationRevisionRegExp

func (r *RepoLayout) GetFileIntegrationRevisionRegExp() string

GetFileIntegrationRevisionRegExp returns the FileIntegrationRevisionRegExp field if it's non-nil, zero value otherwise.

func (*RepoLayout) GetFolderIntegrationRevisionRegExp

func (r *RepoLayout) GetFolderIntegrationRevisionRegExp() string

GetFolderIntegrationRevisionRegExp returns the FolderIntegrationRevisionRegExp field if it's non-nil, zero value otherwise.

func (*RepoLayout) GetName

func (r *RepoLayout) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

type RepoLayouts

type RepoLayouts []*RepoLayout

RepoLayouts is an alias for a slice of RepoLayout that can be properly marshaled to/from YAML.

func (RepoLayouts) MarshalYAML

func (r RepoLayouts) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for RepoLayouts.

func (*RepoLayouts) UnmarshalYAML

func (r *RepoLayouts) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for RepoLayouts.

type RepositoriesService

type RepositoriesService service

RepositoriesService handles communication with the repository related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-REPOSITORIES

func (*RepositoriesService) Create

func (s *RepositoriesService) Create(repo string, body interface{}) (*string, *Response, error)

Create constructs a repository with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateRepository

func (*RepositoriesService) Delete

func (s *RepositoriesService) Delete(repo string) (*string, *Response, error)

Delete removes the provided repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteRepository

func (*RepositoriesService) Get

func (s *RepositoriesService) Get(repo string) (interface{}, *Response, error)

Get returns the provided repository.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RepositoryConfiguration

func (*RepositoriesService) GetAll

func (s *RepositoriesService) GetAll() (*[]Repository, *Response, error)

GetAll returns a list of all repositories.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetRepositories

func (*RepositoriesService) Update

func (s *RepositoriesService) Update(repo string, body interface{}) (*string, *Response, error)

Update modifies a repository with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-UpdateRepositoryConfiguration

type RepositoriesSummary

type RepositoriesSummary struct {
	RepoKey      *string `json:"repoKey,omitempty"`
	RepoType     *string `json:"repoType,omitempty"`
	FoldersCount *int    `json:"foldersCount,omitempty"`
	FilesCount   *int    `json:"filesCount,omitempty"`
	UsedSpace    *string `json:"usedSpace,omitempty"`
	ItemsCount   *int    `json:"itemsCount,omitempty"`
	PackageType  *string `json:"packageType,omitempty"`
	Percentage   *string `json:"percentage,omitempty"`
}

RepositoriesSummary represents the summary of repositories in Artifactory.

func (*RepositoriesSummary) GetFilesCount

func (r *RepositoriesSummary) GetFilesCount() int

GetFilesCount returns the FilesCount field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetFoldersCount

func (r *RepositoriesSummary) GetFoldersCount() int

GetFoldersCount returns the FoldersCount field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetItemsCount

func (r *RepositoriesSummary) GetItemsCount() int

GetItemsCount returns the ItemsCount field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetPackageType

func (r *RepositoriesSummary) GetPackageType() string

GetPackageType returns the PackageType field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetPercentage

func (r *RepositoriesSummary) GetPercentage() string

GetPercentage returns the Percentage field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetRepoKey

func (r *RepositoriesSummary) GetRepoKey() string

GetRepoKey returns the RepoKey field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetRepoType

func (r *RepositoriesSummary) GetRepoType() string

GetRepoType returns the RepoType field if it's non-nil, zero value otherwise.

func (*RepositoriesSummary) GetUsedSpace

func (r *RepositoriesSummary) GetUsedSpace() string

GetUsedSpace returns the UsedSpace field if it's non-nil, zero value otherwise.

type Repository

type Repository struct {
	Key         *string `json:"key,omitempty"`
	Type        *string `json:"type,omitempty"`
	Description *string `json:"description,omitempty"`
	URL         *string `json:"url,omitempty"`
	PackageType *string `json:"packageType,omitempty"`
}

Repository represents a repository in Artifactory.

func (*Repository) GetDescription

func (r *Repository) GetDescription() string

GetDescription returns the Description field if it's non-nil, zero value otherwise.

func (*Repository) GetKey

func (r *Repository) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*Repository) GetPackageType

func (r *Repository) GetPackageType() string

GetPackageType returns the PackageType field if it's non-nil, zero value otherwise.

func (*Repository) GetType

func (r *Repository) GetType() string

GetType returns the Type field if it's non-nil, zero value otherwise.

func (*Repository) GetURL

func (r *Repository) GetURL() string

GetURL returns the URL field if it's non-nil, zero value otherwise.

func (Repository) String

func (r Repository) String() string

type ResetPolicy

type ResetPolicy struct {
	Enabled               *bool `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	MaxAttemptsPerAddress *int  `yaml:"maxAttemptsPerAddress,omitempty" xml:"maxAttemptsPerAddress,omitempty"`
	TimeToBlockInMinutes  *int  `yaml:"timeToBlockInMinutes,omitempty" xml:"timeToBlockInMinutes,omitempty"`
	Reset                 *bool `yaml:"-" xml:"-"`
}

ResetPolicy represents the Password Reset Protection policy settings in Artifactory Security Configuration. This is undocumented in YAML Configuration File.

func (*ResetPolicy) GetEnabled

func (r *ResetPolicy) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*ResetPolicy) GetMaxAttemptsPerAddress

func (r *ResetPolicy) GetMaxAttemptsPerAddress() int

GetMaxAttemptsPerAddress returns the MaxAttemptsPerAddress field if it's non-nil, zero value otherwise.

func (*ResetPolicy) GetReset

func (r *ResetPolicy) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*ResetPolicy) GetTimeToBlockInMinutes

func (r *ResetPolicy) GetTimeToBlockInMinutes() int

GetTimeToBlockInMinutes returns the TimeToBlockInMinutes field if it's non-nil, zero value otherwise.

func (ResetPolicy) MarshalYAML

func (r ResetPolicy) MarshalYAML() (interface{}, error)

type Response

type Response struct {
	*http.Response
}

Response represents an Artifactory API response. This wraps the standard http.Response returned from Artifactory.

type ReverseProxies

type ReverseProxies []*ReverseProxy

ReverseProxies is an alias for a slice of ReverseProxy that can be properly marshaled to/from YAML.

func (ReverseProxies) MarshalYAML

func (r ReverseProxies) MarshalYAML() (interface{}, error)

MarshalYAML implements the yaml.Marshaller interface for ReverseProxies.

func (*ReverseProxies) UnmarshalYAML

func (r *ReverseProxies) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for ReverseProxies.

type ReverseProxy

type ReverseProxy struct {
	Key                      *string `yaml:"-" xml:"key,omitempty"`
	WebServerType            *string `yaml:"webServerType,omitempty" xml:"webServerType,omitempty"`
	ArtifactoryAppContext    *string `yaml:"artifactoryAppContext,omitempty" xml:"artifactoryAppContext,omitempty"`
	PublicAppContext         *string `yaml:"publicAppContext,omitempty" xml:"publicAppContext,omitempty"`
	ServerName               *string `yaml:"serverName,omitempty" xml:"serverName,omitempty"`
	ServerNameExpression     *string `yaml:"serverNameExpression,omitempty" xml:"serverNameExpression,omitempty"`
	SslCertificate           *string `yaml:"sslCertificate,omitempty" xml:"sslCertificate,omitempty"`
	SslKey                   *string `yaml:"sslKey,omitempty" xml:"sslKey,omitempty"`
	DockerReverseProxyMethod *string `yaml:"dockerReverseProxyMethod,omitempty" xml:"dockerReverseProxyMethod,omitempty"`
	UseHttps                 *bool   `yaml:"useHttps,omitempty" xml:"useHttps,omitempty"`
	UseHttp                  *bool   `yaml:"useHttp,omitempty" xml:"useHttp,omitempty"`
	SslPort                  *int    `yaml:"sslPort,omitempty" xml:"sslPort,omitempty"`
	HttpPort                 *int    `yaml:"httpPort,omitempty" xml:"httpPort,omitempty"`
	ArtifactoryServerName    *string `yaml:"artifactoryServerName,omitempty" xml:"artifactoryServerName,omitempty"`
	UpStreamName             *string `yaml:"upStreamName,omitempty" xml:"upStreamName,omitempty"`
	ArtifactoryPort          *int    `yaml:"artifactoryPort,omitempty" xml:"artifactoryPort,omitempty"`
}

ReverseProxy represents a Reverse Proxy configuration in Artifactory's Global Configuration Descriptor.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetReverseProxyConfiguration

func (*ReverseProxy) GetArtifactoryAppContext

func (r *ReverseProxy) GetArtifactoryAppContext() string

GetArtifactoryAppContext returns the ArtifactoryAppContext field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetArtifactoryPort

func (r *ReverseProxy) GetArtifactoryPort() int

GetArtifactoryPort returns the ArtifactoryPort field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetArtifactoryServerName

func (r *ReverseProxy) GetArtifactoryServerName() string

GetArtifactoryServerName returns the ArtifactoryServerName field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetDockerReverseProxyMethod

func (r *ReverseProxy) GetDockerReverseProxyMethod() string

GetDockerReverseProxyMethod returns the DockerReverseProxyMethod field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetHttpPort

func (r *ReverseProxy) GetHttpPort() int

GetHttpPort returns the HttpPort field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetKey

func (r *ReverseProxy) GetKey() string

GetKey returns the Key field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetPublicAppContext

func (r *ReverseProxy) GetPublicAppContext() string

GetPublicAppContext returns the PublicAppContext field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetServerName

func (r *ReverseProxy) GetServerName() string

GetServerName returns the ServerName field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetServerNameExpression

func (r *ReverseProxy) GetServerNameExpression() string

GetServerNameExpression returns the ServerNameExpression field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetSslCertificate

func (r *ReverseProxy) GetSslCertificate() string

GetSslCertificate returns the SslCertificate field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetSslKey

func (r *ReverseProxy) GetSslKey() string

GetSslKey returns the SslKey field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetSslPort

func (r *ReverseProxy) GetSslPort() int

GetSslPort returns the SslPort field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetUpStreamName

func (r *ReverseProxy) GetUpStreamName() string

GetUpStreamName returns the UpStreamName field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetUseHttp

func (r *ReverseProxy) GetUseHttp() bool

GetUseHttp returns the UseHttp field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetUseHttps

func (r *ReverseProxy) GetUseHttps() bool

GetUseHttps returns the UseHttps field if it's non-nil, zero value otherwise.

func (*ReverseProxy) GetWebServerType

func (r *ReverseProxy) GetWebServerType() string

GetWebServerType returns the WebServerType field if it's non-nil, zero value otherwise.

type SamlSettings

type SamlSettings struct {
	EnableIntegration        *bool   `yaml:"enableIntegration,omitempty" xml:"enableIntegration,omitempty"`
	Certificate              *string `yaml:"certificate,omitempty" xml:"certificate,omitempty"`
	EmailAttribute           *string `yaml:"emailAttribute,omitempty" xml:"emailAttribute,omitempty"`
	GroupAttribute           *string `yaml:"groupAttribute,omitempty" xml:"groupAttribute,omitempty"`
	LoginUrl                 *string `yaml:"loginUrl,omitempty" xml:"loginUrl,omitempty"`
	LogoutUrl                *string `yaml:"logoutUrl,omitempty" xml:"logoutUrl,omitempty"`
	NoAutoUserCreation       *bool   `yaml:"noAutoUserCreation,omitempty" xml:"noAutoUserCreation,omitempty"`
	ServiceProviderName      *string `yaml:"serviceProviderName,omitempty" xml:"serviceProviderName,omitempty"`
	AllowUserToAccessProfile *bool   `yaml:"allowUserToAccessProfile,omitempty" xml:"allowUserToAccessProfile,omitempty"`
	AutoRedirect             *bool   `yaml:"autoRedirect,omitempty" xml:"autoRedirect,omitempty"`
	SyncGroups               *bool   `yaml:"syncGroups,omitempty" xml:"syncGroups,omitempty"`
	Reset                    *bool   `yaml:"-" xml:"-"`
}

SamlSettings represents the SAML settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*SamlSettings) GetAllowUserToAccessProfile

func (s *SamlSettings) GetAllowUserToAccessProfile() bool

GetAllowUserToAccessProfile returns the AllowUserToAccessProfile field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetAutoRedirect

func (s *SamlSettings) GetAutoRedirect() bool

GetAutoRedirect returns the AutoRedirect field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetCertificate

func (s *SamlSettings) GetCertificate() string

GetCertificate returns the Certificate field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetEmailAttribute

func (s *SamlSettings) GetEmailAttribute() string

GetEmailAttribute returns the EmailAttribute field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetEnableIntegration

func (s *SamlSettings) GetEnableIntegration() bool

GetEnableIntegration returns the EnableIntegration field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetGroupAttribute

func (s *SamlSettings) GetGroupAttribute() string

GetGroupAttribute returns the GroupAttribute field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetLoginUrl

func (s *SamlSettings) GetLoginUrl() string

GetLoginUrl returns the LoginUrl field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetLogoutUrl

func (s *SamlSettings) GetLogoutUrl() string

GetLogoutUrl returns the LogoutUrl field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetNoAutoUserCreation

func (s *SamlSettings) GetNoAutoUserCreation() bool

GetNoAutoUserCreation returns the NoAutoUserCreation field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetReset

func (s *SamlSettings) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetServiceProviderName

func (s *SamlSettings) GetServiceProviderName() string

GetServiceProviderName returns the ServiceProviderName field if it's non-nil, zero value otherwise.

func (*SamlSettings) GetSyncGroups

func (s *SamlSettings) GetSyncGroups() bool

GetSyncGroups returns the SyncGroups field if it's non-nil, zero value otherwise.

func (SamlSettings) MarshalYAML

func (s SamlSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type SearchService

type SearchService service

SearchService handles communication with the search related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SEARCHES

func (*SearchService) GAVC

func (s *SearchService) GAVC(coords *GAVCRequest) (*GAVCResponse, *Response, error)

GAVC returns the list of artifacts from the Maven search.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GAVCSearch

type Security

type Security struct {
	AnonAccessEnabled                *bool                 `yaml:"anonAccessEnabled,omitempty" xml:"anonAccessEnabled,omitempty"`
	HideUnauthorizedResources        *bool                 `yaml:"hideUnauthorizedResources,omitempty" xml:"hideUnauthorizedResources,omitempty"`
	UserLockPolicy                   *UserLockPolicy       `yaml:"userLockPolicy,omitempty" xml:"userLockPolicy,omitempty"`
	PasswordSettings                 *PasswordSettings     `yaml:"passwordSettings,omitempty" xml:"passwordSettings,omitempty"`
	LdapSettings                     *LdapSettings         `yaml:"ldapSettings,omitempty" xml:"ldapSettings>ldapSetting,omitempty"`
	LdapGroupSettings                *LdapGroupSettings    `yaml:"ldapGroupSettings,omitempty" xml:"ldapGroupSettings>ldapGroupSetting,omitempty"`
	HttpSsoSettings                  *HttpSsoSettings      `yaml:"httpSsoSettings,omitempty" xml:"httpSsoSettings,omitempty"`
	CrowdSettings                    *CrowdSettings        `yaml:"crowdSettings,omitempty" xml:"crowdSettings,omitempty"`
	SamlSettings                     *SamlSettings         `yaml:"samlSettings,omitempty" xml:"samlSettings,omitempty"`
	OauthSettings                    *OauthSettings        `yaml:"oauthSettings,omitempty" xml:"oauthSettings,omitempty"`
	AccessClientSettings             *AccessClientSettings `yaml:"accessClientSettings,omitempty" xml:"accessClientSettings,omitempty"`
	BuildGlobalBasicReadAllowed      *bool                 `yaml:"buildGlobalBasicReadAllowed,omitempty" xml:"buildGlobalBasicReadAllowed,omitempty"`
	BuildGlobalBasicReadForAnonymous *bool                 `yaml:"buildGlobalBasicReadForAnonymous,omitempty" xml:"buildGlobalBasicReadForAnonymous,omitempty"`
}

func (*Security) GetAccessClientSettings

func (s *Security) GetAccessClientSettings() *AccessClientSettings

GetAccessClientSettings returns the AccessClientSettings field.

func (*Security) GetAnonAccessEnabled

func (s *Security) GetAnonAccessEnabled() bool

GetAnonAccessEnabled returns the AnonAccessEnabled field if it's non-nil, zero value otherwise.

func (*Security) GetBuildGlobalBasicReadAllowed

func (s *Security) GetBuildGlobalBasicReadAllowed() bool

GetBuildGlobalBasicReadAllowed returns the BuildGlobalBasicReadAllowed field if it's non-nil, zero value otherwise.

func (*Security) GetBuildGlobalBasicReadForAnonymous

func (s *Security) GetBuildGlobalBasicReadForAnonymous() bool

GetBuildGlobalBasicReadForAnonymous returns the BuildGlobalBasicReadForAnonymous field if it's non-nil, zero value otherwise.

func (*Security) GetCrowdSettings

func (s *Security) GetCrowdSettings() *CrowdSettings

GetCrowdSettings returns the CrowdSettings field.

func (*Security) GetHideUnauthorizedResources

func (s *Security) GetHideUnauthorizedResources() bool

GetHideUnauthorizedResources returns the HideUnauthorizedResources field if it's non-nil, zero value otherwise.

func (*Security) GetHttpSsoSettings

func (s *Security) GetHttpSsoSettings() *HttpSsoSettings

GetHttpSsoSettings returns the HttpSsoSettings field.

func (*Security) GetLdapGroupSettings

func (s *Security) GetLdapGroupSettings() *LdapGroupSettings

GetLdapGroupSettings returns the LdapGroupSettings field.

func (*Security) GetLdapSettings

func (s *Security) GetLdapSettings() *LdapSettings

GetLdapSettings returns the LdapSettings field.

func (*Security) GetOauthSettings

func (s *Security) GetOauthSettings() *OauthSettings

GetOauthSettings returns the OauthSettings field.

func (*Security) GetPasswordSettings

func (s *Security) GetPasswordSettings() *PasswordSettings

GetPasswordSettings returns the PasswordSettings field.

func (*Security) GetSamlSettings

func (s *Security) GetSamlSettings() *SamlSettings

GetSamlSettings returns the SamlSettings field.

func (*Security) GetUserLockPolicy

func (s *Security) GetUserLockPolicy() *UserLockPolicy

GetUserLockPolicy returns the UserLockPolicy field.

type SecurityUser

type SecurityUser struct {
	Name                     *string   `json:"name,omitempty"`
	Email                    *string   `json:"email,omitempty"`
	Password                 *string   `json:"password,omitempty"`
	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"`
}

SecurityUser represents a security user in Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Security+Configuration+JSON#SecurityConfigurationJSON-application/vnd.org.jfrog.artifactory.security.User+json

func (*SecurityUser) GetAdmin

func (s *SecurityUser) GetAdmin() bool

GetAdmin returns the Admin field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetDisableUIAccess

func (s *SecurityUser) GetDisableUIAccess() bool

GetDisableUIAccess returns the DisableUIAccess field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetEmail

func (s *SecurityUser) GetEmail() string

GetEmail returns the Email field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetGroups

func (s *SecurityUser) GetGroups() []string

GetGroups returns the Groups field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetInternalPasswordDisabled

func (s *SecurityUser) GetInternalPasswordDisabled() bool

GetInternalPasswordDisabled returns the InternalPasswordDisabled field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetLastLoggedIn

func (s *SecurityUser) GetLastLoggedIn() string

GetLastLoggedIn returns the LastLoggedIn field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetName

func (s *SecurityUser) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetPassword

func (s *SecurityUser) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetProfileUpdatable

func (s *SecurityUser) GetProfileUpdatable() bool

GetProfileUpdatable returns the ProfileUpdatable field if it's non-nil, zero value otherwise.

func (*SecurityUser) GetRealm

func (s *SecurityUser) GetRealm() string

GetRealm returns the Realm field if it's non-nil, zero value otherwise.

func (SecurityUser) String

func (u SecurityUser) String() string

type SignedUrlConfig

type SignedUrlConfig struct {
	MaxValidForSeconds *int  `yaml:"maxValidForSeconds,omitempty" xml:"maxValidForSeconds,omitempty"`
	Reset              *bool `yaml:"-" xml:"-"`
}

SignedUrlConfig represents Signed URL settings in Artifactory's Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*SignedUrlConfig) GetMaxValidForSeconds

func (s *SignedUrlConfig) GetMaxValidForSeconds() int

GetMaxValidForSeconds returns the MaxValidForSeconds field if it's non-nil, zero value otherwise.

func (*SignedUrlConfig) GetReset

func (s *SignedUrlConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (SignedUrlConfig) MarshalYAML

func (s SignedUrlConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type SigningKeysSettings

type SigningKeysSettings struct {
	Passphrase       *string `yaml:"passphrase,omitempty" xml:"passphrase,omitempty"`
	KeyStorePassword *string `yaml:"keyStorePassword,omitempty" xml:"keyStorePassword,omitempty"`
	Reset            *bool   `yaml:"-" xml:"-"`
}

SigningKeysSetting represents the GPG Signing settings in Artifactory Security Configuration. This is undocumented in YAML Configuration File.

func (*SigningKeysSettings) GetKeyStorePassword

func (s *SigningKeysSettings) GetKeyStorePassword() string

GetKeyStorePassword returns the KeyStorePassword field if it's non-nil, zero value otherwise.

func (*SigningKeysSettings) GetPassphrase

func (s *SigningKeysSettings) GetPassphrase() string

GetPassphrase returns the Passphrase field if it's non-nil, zero value otherwise.

func (*SigningKeysSettings) GetReset

func (s *SigningKeysSettings) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (SigningKeysSettings) MarshalYAML

func (s SigningKeysSettings) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type StorageService

type StorageService service

StorageService handles communication with the storage related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ARTIFACTS&STORAGE

func (*StorageService) DeleteItemProperties

func (s *StorageService) DeleteItemProperties(repo, path string, properties []string) (*Response, error)

DeleteItemProperties removes the provided properties from the provided item.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteItemProperties

func (*StorageService) GetEffectiveItemPermissions

func (s *StorageService) GetEffectiveItemPermissions(repo, path string) (*EffectiveItemPermissions, *Response, error)

GetEffectiveItemPermissions returns the effective item permissions for a file or folder.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-EffectiveItemPermissions

func (*StorageService) GetFile

func (s *StorageService) GetFile(repo, path string) (*File, *Response, error)

GetFile returns the provided file.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FileInfo

func (*StorageService) GetFileList

func (s *StorageService) GetFileList(repo, path string) (*FileList, *Response, error)

GetFileList lists all files in the provided repo.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FileList

func (*StorageService) GetFileStatistics

func (s *StorageService) GetFileStatistics(repo, path string) (*FileStatistics, *Response, error)

GetFileStatistics returns download statistics for the provided file.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FileStatistics

func (*StorageService) GetFolder

func (s *StorageService) GetFolder(repo, path string) (*Folder, *Response, error)

GetFolder returns the provided folder.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FolderInfo

func (*StorageService) GetItemLastModified

func (s *StorageService) GetItemLastModified(repo, path string) (*ItemLastModified, *Response, error)

GetItemLastModified returns the ISO8601 timestamp of the provided item's last modified date.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ItemLastModified

func (*StorageService) GetItemProperties

func (s *StorageService) GetItemProperties(repo, path string) (*ItemProperties, *Response, error)

GetItemProperties returns properties on the provided item.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ItemProperties

func (*StorageService) GetStorageSummary

func (s *StorageService) GetStorageSummary() (*StorageSummary, *Response, error)

GetStorageSummary returns the storage summary information.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetStorageSummaryInfo

func (*StorageService) SetItemProperties

func (s *StorageService) SetItemProperties(repo, path string, properties map[string][]string) (*Response, error)

SetItemProperties attaches the provided properties to the provided item.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SetItemProperties

type StorageSummary

type StorageSummary struct {
	BinariesSummary         *BinariesSummary       `json:"binariesSummary,omitempty"`
	FileStoreSummary        *FileStoreSummary      `json:"fileStoreSummary,omitempty"`
	RepositoriesSummaryList *[]RepositoriesSummary `json:"repositoriesSummaryList,omitempty"`
}

StorageSummary represents the summary of storage in Artifactory.

func (*StorageSummary) GetBinariesSummary

func (s *StorageSummary) GetBinariesSummary() *BinariesSummary

GetBinariesSummary returns the BinariesSummary field.

func (*StorageSummary) GetFileStoreSummary

func (s *StorageSummary) GetFileStoreSummary() *FileStoreSummary

GetFileStoreSummary returns the FileStoreSummary field.

func (*StorageSummary) GetRepositoriesSummaryList

func (s *StorageSummary) GetRepositoriesSummaryList() []RepositoriesSummary

GetRepositoriesSummaryList returns the RepositoriesSummaryList field if it's non-nil, zero value otherwise.

func (StorageSummary) String

func (s StorageSummary) String() string

type SumoLogicConfig

type SumoLogicConfig struct {
	Enabled  *bool   `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	Proxy    *string `yaml:"proxy,omitempty" xml:"proxyRef,omitempty"`
	ClientId *string `yaml:"clientId,omitempty" xml:"clientId,omitempty"`
	Secret   *string `yaml:"secret,omitempty" xml:"secret,omitempty"`
	Reset    *bool   `yaml:"-" xml:"-"`
}

SumoLogicConfig represents Sumo Logic settings in Artifactory's Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*SumoLogicConfig) GetClientId

func (s *SumoLogicConfig) GetClientId() string

GetClientId returns the ClientId field if it's non-nil, zero value otherwise.

func (*SumoLogicConfig) GetEnabled

func (s *SumoLogicConfig) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*SumoLogicConfig) GetProxy

func (s *SumoLogicConfig) GetProxy() string

GetProxy returns the Proxy field if it's non-nil, zero value otherwise.

func (*SumoLogicConfig) GetReset

func (s *SumoLogicConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*SumoLogicConfig) GetSecret

func (s *SumoLogicConfig) GetSecret() string

GetSecret returns the Secret field if it's non-nil, zero value otherwise.

func (SumoLogicConfig) MarshalYAML

func (s SumoLogicConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type SystemMessageConfig

type SystemMessageConfig struct {
	Enabled        *bool   `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	Message        *string `yaml:"message,omitempty" xml:"message,omitempty"`
	Title          *string `yaml:"title,omitempty" xml:"title,omitempty"`
	TitleColor     *string `yaml:"titleColor,omitempty" xml:"titleColor,omitempty"`
	ShowOnAllPages *bool   `yaml:"showOnAllPages,omitempty" xml:"showOnAllPages,omitempty"`
	Reset          *bool   `yaml:"-" xml:"-"`
}

SystemMessageConfig represents Custom Message settings in Artifactory General Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*SystemMessageConfig) GetEnabled

func (s *SystemMessageConfig) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*SystemMessageConfig) GetMessage

func (s *SystemMessageConfig) GetMessage() string

GetMessage returns the Message field if it's non-nil, zero value otherwise.

func (*SystemMessageConfig) GetReset

func (s *SystemMessageConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*SystemMessageConfig) GetShowOnAllPages

func (s *SystemMessageConfig) GetShowOnAllPages() bool

GetShowOnAllPages returns the ShowOnAllPages field if it's non-nil, zero value otherwise.

func (*SystemMessageConfig) GetTitle

func (s *SystemMessageConfig) GetTitle() string

GetTitle returns the Title field if it's non-nil, zero value otherwise.

func (*SystemMessageConfig) GetTitleColor

func (s *SystemMessageConfig) GetTitleColor() string

GetTitleColor returns the TitleColor field if it's non-nil, zero value otherwise.

func (SystemMessageConfig) MarshalYAML

func (s SystemMessageConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type SystemService

type SystemService service

SystemService handles communication with the system related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SYSTEM&CONFIGURATION

func (*SystemService) Get

func (s *SystemService) Get() (*string, *Response, error)

Get returns the general system information.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SystemInfo

func (*SystemService) GetConfiguration

func (s *SystemService) GetConfiguration() (*GlobalConfig, *Response, error)

GetConfiguration returns the Global Artifactory Configuration Descriptor (artifactory.config.xml).

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GeneralConfiguration

func (*SystemService) GetVersionAndAddOns

func (s *SystemService) GetVersionAndAddOns() (*Versions, *Response, error)

GetVersionAndAddOns returns information about the current version, revision, and installed add-ons.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-VersionandAdd-onsinformation

func (*SystemService) Ping

func (s *SystemService) Ping() (*string, *Response, error)

Ping returns a simple status response.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SystemHealthPing

func (*SystemService) UpdateConfiguration

func (s *SystemService) UpdateConfiguration(config GlobalConfig) (*string, *Response, error)

UpdateConfiguration applies the provided Global system configuration to Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GeneralConfiguration

https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Advanced

type Tags

type Tags struct {
	Name *string   `json:"name,omitempty"`
	Tags *[]string `json:"tags,omitempty"`
}

Tags represents the list of tags for a Docker repository in Artifactory.

func (*Tags) GetName

func (t *Tags) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*Tags) GetTags

func (t *Tags) GetTags() []string

GetTags returns the Tags field if it's non-nil, zero value otherwise.

func (Tags) String

func (t Tags) String() string

type Timestamp

type Timestamp struct {
	time.Time
}

Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or ISO 8601 or Unix timestamp. This is necessary for some fields since the Artifactory API is inconsistent in how it represents times. All exported methods of time.Time can be called on Timestamp.

func (Timestamp) Equal

func (t Timestamp) Equal(u Timestamp) bool

Equal reports whether t and u are equal based on time.Equal

func (Timestamp) String

func (t Timestamp) String() string

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements the json.Unmarshaler interface. Time is expected in RFC3339 or ISO 8601 or Unix format.

type TrashcanConfig

type TrashcanConfig struct {
	Enabled             *bool `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	RetentionPeriodDays *int  `yaml:"retentionPeriodDays,omitempty" xml:"retentionPeriodDays,omitempty"`
	AllowPermDeletes    *bool `yaml:"allowPermDeletes,omitempty" xml:"allowPermDeletes,omitempty"`
	Reset               *bool `yaml:"-" xml:"-"`
}

TrashcanConfig represents Trash Can settings in Artifactory General Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-General(General,PropertySets,Proxy,Mail)

func (*TrashcanConfig) GetAllowPermDeletes

func (t *TrashcanConfig) GetAllowPermDeletes() bool

GetAllowPermDeletes returns the AllowPermDeletes field if it's non-nil, zero value otherwise.

func (*TrashcanConfig) GetEnabled

func (t *TrashcanConfig) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*TrashcanConfig) GetReset

func (t *TrashcanConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (*TrashcanConfig) GetRetentionPeriodDays

func (t *TrashcanConfig) GetRetentionPeriodDays() int

GetRetentionPeriodDays returns the RetentionPeriodDays field if it's non-nil, zero value otherwise.

func (TrashcanConfig) MarshalYAML

func (t TrashcanConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type User

type User struct {
	Name                     *string   `json:"name,omitempty"`
	Email                    *string   `json:"email,omitempty"`
	Admin                    *bool     `json:"admin,omitempty"`
	GroupAdmin               *bool     `json:"groupAdmin,omitempty"`
	ProfileUpdatable         *bool     `json:"profileUpdatable,omitempty"`
	InternalPasswordDisabled *bool     `json:"internalPasswordDisabled,omitempty"`
	Groups                   *[]string `json:"groups,omitempty"`
	LastLoggedIn             *string   `json:"lastLoggedIn,omitempty"`
	LastLoggedInMillis       *int64    `json:"lastLoggedInMillis,omitempty"`
	Realm                    *string   `json:"realm,omitempty"`
	OfflineMode              *bool     `json:"offlineMode,omitempty"`
	DisableUIAccess          *bool     `json:"disableUIAccess,omitempty"`
	ProWithoutLicense        *bool     `json:"proWithoutLicense,omitempty"`
	ExternalRealmLink        *string   `json:"externalRealmLink,omitempty"`
	ExistsInDB               *bool     `json:"existsInDB,omitempty"`
	HideUploads              *bool     `json:"hideUploads,omitempty"`
	RequireProfileUnlock     *bool     `json:"requireProfileUnlock,omitempty"`
	RequireProfilePassword   *bool     `json:"requireProfilePassword,omitempty"`
	Locked                   *bool     `json:"locked,omitempty"`
	CredentialsExpired       *bool     `json:"credentialsExpired,omitempty"`
	NumberOfGroups           *int      `json:"numberOfGroups,omitempty"`
	NumberOfPermissions      *int      `json:"numberOfPermissions,omitempty"`
}

User represents a user in Artifactory.

Docs: This struct is currently undocumented by JFrog

func (*User) GetAdmin

func (u *User) GetAdmin() bool

GetAdmin returns the Admin field if it's non-nil, zero value otherwise.

func (*User) GetCredentialsExpired

func (u *User) GetCredentialsExpired() bool

GetCredentialsExpired returns the CredentialsExpired field if it's non-nil, zero value otherwise.

func (*User) GetDisableUIAccess

func (u *User) GetDisableUIAccess() bool

GetDisableUIAccess returns the DisableUIAccess field if it's non-nil, zero value otherwise.

func (*User) GetEmail

func (u *User) GetEmail() string

GetEmail returns the Email field if it's non-nil, zero value otherwise.

func (*User) GetExistsInDB

func (u *User) GetExistsInDB() bool

GetExistsInDB returns the ExistsInDB field if it's non-nil, zero value otherwise.

func (u *User) GetExternalRealmLink() string

GetExternalRealmLink returns the ExternalRealmLink field if it's non-nil, zero value otherwise.

func (*User) GetGroupAdmin

func (u *User) GetGroupAdmin() bool

GetGroupAdmin returns the GroupAdmin field if it's non-nil, zero value otherwise.

func (*User) GetGroups

func (u *User) GetGroups() []string

GetGroups returns the Groups field if it's non-nil, zero value otherwise.

func (*User) GetHideUploads

func (u *User) GetHideUploads() bool

GetHideUploads returns the HideUploads field if it's non-nil, zero value otherwise.

func (*User) GetInternalPasswordDisabled

func (u *User) GetInternalPasswordDisabled() bool

GetInternalPasswordDisabled returns the InternalPasswordDisabled field if it's non-nil, zero value otherwise.

func (*User) GetLastLoggedIn

func (u *User) GetLastLoggedIn() string

GetLastLoggedIn returns the LastLoggedIn field if it's non-nil, zero value otherwise.

func (*User) GetLastLoggedInMillis

func (u *User) GetLastLoggedInMillis() int64

GetLastLoggedInMillis returns the LastLoggedInMillis field if it's non-nil, zero value otherwise.

func (*User) GetLocked

func (u *User) GetLocked() bool

GetLocked returns the Locked field if it's non-nil, zero value otherwise.

func (*User) GetName

func (u *User) GetName() string

GetName returns the Name field if it's non-nil, zero value otherwise.

func (*User) GetNumberOfGroups

func (u *User) GetNumberOfGroups() int

GetNumberOfGroups returns the NumberOfGroups field if it's non-nil, zero value otherwise.

func (*User) GetNumberOfPermissions

func (u *User) GetNumberOfPermissions() int

GetNumberOfPermissions returns the NumberOfPermissions field if it's non-nil, zero value otherwise.

func (*User) GetOfflineMode

func (u *User) GetOfflineMode() bool

GetOfflineMode returns the OfflineMode field if it's non-nil, zero value otherwise.

func (*User) GetProWithoutLicense

func (u *User) GetProWithoutLicense() bool

GetProWithoutLicense returns the ProWithoutLicense field if it's non-nil, zero value otherwise.

func (*User) GetProfileUpdatable

func (u *User) GetProfileUpdatable() bool

GetProfileUpdatable returns the ProfileUpdatable field if it's non-nil, zero value otherwise.

func (*User) GetRealm

func (u *User) GetRealm() string

GetRealm returns the Realm field if it's non-nil, zero value otherwise.

func (*User) GetRequireProfilePassword

func (u *User) GetRequireProfilePassword() bool

GetRequireProfilePassword returns the RequireProfilePassword field if it's non-nil, zero value otherwise.

func (*User) GetRequireProfileUnlock

func (u *User) GetRequireProfileUnlock() bool

GetRequireProfileUnlock returns the RequireProfileUnlock field if it's non-nil, zero value otherwise.

func (User) String

func (u User) String() string

type UserLockPolicy

type UserLockPolicy struct {
	Enabled       *bool `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	LoginAttempts *int  `yaml:"loginAttempts,omitempty" xml:"loginAttempts,omitempty"`
	Reset         *bool `yaml:"-" xml:"-"`
}

UserLockPolicy represents the User Lock Policy settings in Artifactory Security Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Security(Generalsecurity,PasswordPolicy,LDAP,SAML,OAuth,HTTPSSO,Crowd)

func (*UserLockPolicy) GetEnabled

func (u *UserLockPolicy) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*UserLockPolicy) GetLoginAttempts

func (u *UserLockPolicy) GetLoginAttempts() int

GetLoginAttempts returns the LoginAttempts field if it's non-nil, zero value otherwise.

func (*UserLockPolicy) GetReset

func (u *UserLockPolicy) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (UserLockPolicy) MarshalYAML

func (u UserLockPolicy) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type UsersService

type UsersService service

UsersService handles communication with the user related methods of the Artifactory API.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SECURITY

func (*UsersService) CreateAPIKey

func (s *UsersService) CreateAPIKey() (*APIKey, *Response, error)

CreateAPIKey constructs an api key for the authenticated user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateAPIKey

func (*UsersService) CreateSecurity

func (s *UsersService) CreateSecurity(user *SecurityUser) (*string, *Response, error)

CreateSecurity constructs a user with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateorReplaceUser

func (*UsersService) DeleteAPIKey

func (s *UsersService) DeleteAPIKey() (*DeleteAPIKey, *Response, error)

DeleteAPIKey removes an api key for the authenticated user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RevokeAPIKey

func (*UsersService) DeleteAllAPIKeys

func (s *UsersService) DeleteAllAPIKeys() (*DeleteAPIKey, *Response, error)

DeleteAllAPIKeys removes all api keys.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RevokeAllAPIKeys

func (*UsersService) DeleteSecurity

func (s *UsersService) DeleteSecurity(user string) (*string, *Response, error)

DeleteSecurity removes the provided user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteUser

func (*UsersService) DeleteUserAPIKey

func (s *UsersService) DeleteUserAPIKey(user string) (*DeleteAPIKey, *Response, error)

DeleteUserAPIKey removes an api key for the provided user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RevokeUserAPIKey

func (*UsersService) GetAPIKey

func (s *UsersService) GetAPIKey() (*APIKey, *Response, error)

GetAPIKey returns the api key of the authenticated user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetAPIKey

func (*UsersService) GetAll

func (s *UsersService) GetAll() (*[]User, *Response, error)

GetAll returns a list of all users.

Docs: This endpoint is currently undocumented by JFrog

func (*UsersService) GetAllSecurity

func (s *UsersService) GetAllSecurity() (*[]SecurityUser, *Response, error)

GetAllSecurity returns a list of all users.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetUsers

func (*UsersService) GetEncryptedPassword

func (s *UsersService) GetEncryptedPassword() (*string, *Response, error)

GetEncryptedPassword returns the encrypted password of the authenticated user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetUserEncryptedPassword

func (*UsersService) GetSecurity

func (s *UsersService) GetSecurity(user string) (*SecurityUser, *Response, error)

GetSecurity returns the provided user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-GetUserDetails

func (*UsersService) RegenerateAPIKey

func (s *UsersService) RegenerateAPIKey() (*APIKey, *Response, error)

RegenerateAPIKey recreates an api key for the authenticated user.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RegenerateAPIKey

func (*UsersService) UpdateSecurity

func (s *UsersService) UpdateSecurity(user *SecurityUser) (*string, *Response, error)

UpdateSecurity modifies a user with the provided details.

Docs: https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-UpdateUser

type Versions

type Versions struct {
	Version  *string   `json:"version,omitempty"`
	Revision *string   `json:"revision,omitempty"`
	Addons   *[]string `json:"addons,omitempty"`
}

Versions represents the version information about Artifactory.

func (*Versions) GetAddons

func (v *Versions) GetAddons() []string

GetAddons returns the Addons field if it's non-nil, zero value otherwise.

func (*Versions) GetRevision

func (v *Versions) GetRevision() string

GetRevision returns the Revision field if it's non-nil, zero value otherwise.

func (*Versions) GetVersion

func (v *Versions) GetVersion() string

GetVersion returns the Version field if it's non-nil, zero value otherwise.

func (Versions) String

func (v Versions) String() string

type VirtualCacheCleanupConfig

type VirtualCacheCleanupConfig struct {
	CronExp *string `yaml:"cronExp,omitempty" xml:"cronExp,omitempty"`
	Reset   *bool   `yaml:"-" xml:"-"`
}

VirtualCacheCleanupConfig represents the Cleanup Virtual Repositories setting in Artifactory Maintenance Configuration.

Docs: https://www.jfrog.com/confluence/display/RTF/YAML+Configuration+File#YAMLConfigurationFile-Servicesconfiguration(Backups,MavenIndexer)

func (*VirtualCacheCleanupConfig) GetCronExp

func (v *VirtualCacheCleanupConfig) GetCronExp() string

GetCronExp returns the CronExp field if it's non-nil, zero value otherwise.

func (*VirtualCacheCleanupConfig) GetReset

func (v *VirtualCacheCleanupConfig) GetReset() bool

GetReset returns the Reset field if it's non-nil, zero value otherwise.

func (VirtualCacheCleanupConfig) MarshalYAML

func (v VirtualCacheCleanupConfig) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

type VirtualRepository

type VirtualRepository struct {
	*GenericRepository

	Repositories                                  *[]string `json:"repositories,omitempty" xml:"repositories>repositoryRef,omitempty"`
	DebianTrivialLayout                           *bool     `json:"debianTrivialLayout,omitempty" xml:"debianTrivialLayout,omitempty"`
	ArtifactoryRequestsCanRetrieveRemoteArtifacts *bool     `json:"artifactoryRequestsCanRetrieveRemoteArtifacts,omitempty" xml:"artifactoryRequestsCanRetrieveRemoteArtifacts,omitempty"`
	KeyPair                                       *string   `json:"keyPair,omitempty" xml:"keyPair,omitempty"`
	PomRepositoryReferencesCleanupPolicy          *string   `json:"pomRepositoryReferencesCleanupPolicy,omitempty" xml:"pomRepositoryReferencesCleanupPolicy,omitempty"`
	DefaultDeploymentRepo                         *string   `json:"defaultDeploymentRepo,omitempty" xml:"defaultDeploymentRepo,omitempty"`
	ForceMavenAuthentication                      *bool     `json:"forceMavenAuthentication,omitempty" xml:"forceMavenAuthentication,omitempty"`
	ExternalDependenciesEnabled                   *bool     `json:"externalDependenciesEnabled,omitempty" xml:"externalDependencies>enabled,omitempty"`
	ExternalDependenciesPatterns                  *[]string `json:"externalDependenciesPatterns,omitempty" xml:"externalDependencies>patterns>pattern,omitempty"`
	ExternalDependenciesRemoteRepo                *string   `json:"externalDependenciesRemoteRepo,omitempty" xml:"externalDependencies>remoteRepo,omitempty"`
	ResolveDockerTagsByTimestamp                  *bool     `json:"resolveDockerTagsByTimestamp,omitempty" xml:"resolveDockerTagsByTimestamp,omitempty"`
	VirtualRetrievalCachePeriodSecs               *int      `json:"virtualRetrievalCachePeriodSecs,omitempty" xml:"virtualCacheConfig>virtualRetrievalCachePeriodSecs,omitempty"`
	DebianDefaultArchitectures                    *string   `json:"debianDefaultArchitectures,omitempty" xml:"debianDefaultArchitectures,omitempty"`
}

VirtualRepository represents a virtual repository in Artifactory.

Docs: https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON#RepositoryConfigurationJSON-application/vnd.org.jfrog.artifactory.repositories.VirtualRepositoryConfiguration+json

func (*VirtualRepository) GetArtifactoryRequestsCanRetrieveRemoteArtifacts

func (v *VirtualRepository) GetArtifactoryRequestsCanRetrieveRemoteArtifacts() bool

GetArtifactoryRequestsCanRetrieveRemoteArtifacts returns the ArtifactoryRequestsCanRetrieveRemoteArtifacts field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetDebianDefaultArchitectures

func (v *VirtualRepository) GetDebianDefaultArchitectures() string

GetDebianDefaultArchitectures returns the DebianDefaultArchitectures field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetDebianTrivialLayout

func (v *VirtualRepository) GetDebianTrivialLayout() bool

GetDebianTrivialLayout returns the DebianTrivialLayout field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetDefaultDeploymentRepo

func (v *VirtualRepository) GetDefaultDeploymentRepo() string

GetDefaultDeploymentRepo returns the DefaultDeploymentRepo field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetExternalDependenciesEnabled

func (v *VirtualRepository) GetExternalDependenciesEnabled() bool

GetExternalDependenciesEnabled returns the ExternalDependenciesEnabled field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetExternalDependenciesPatterns

func (v *VirtualRepository) GetExternalDependenciesPatterns() []string

GetExternalDependenciesPatterns returns the ExternalDependenciesPatterns field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetExternalDependenciesRemoteRepo

func (v *VirtualRepository) GetExternalDependenciesRemoteRepo() string

GetExternalDependenciesRemoteRepo returns the ExternalDependenciesRemoteRepo field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetForceMavenAuthentication

func (v *VirtualRepository) GetForceMavenAuthentication() bool

GetForceMavenAuthentication returns the ForceMavenAuthentication field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetKeyPair

func (v *VirtualRepository) GetKeyPair() string

GetKeyPair returns the KeyPair field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetPomRepositoryReferencesCleanupPolicy

func (v *VirtualRepository) GetPomRepositoryReferencesCleanupPolicy() string

GetPomRepositoryReferencesCleanupPolicy returns the PomRepositoryReferencesCleanupPolicy field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetRepositories

func (v *VirtualRepository) GetRepositories() []string

GetRepositories returns the Repositories field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetResolveDockerTagsByTimestamp

func (v *VirtualRepository) GetResolveDockerTagsByTimestamp() bool

GetResolveDockerTagsByTimestamp returns the ResolveDockerTagsByTimestamp field if it's non-nil, zero value otherwise.

func (*VirtualRepository) GetVirtualRetrievalCachePeriodSecs

func (v *VirtualRepository) GetVirtualRetrievalCachePeriodSecs() int

GetVirtualRetrievalCachePeriodSecs returns the VirtualRetrievalCachePeriodSecs field if it's non-nil, zero value otherwise.

func (VirtualRepository) String

func (v VirtualRepository) String() string

type XrayConfig

type XrayConfig struct {
	Enabled                       *bool   `yaml:"enabled,omitempty" xml:"enabled,omitempty"`
	BaseUrl                       *string `yaml:"baseUrl,omitempty" xml:"baseUrl,omitempty"`
	User                          *string `yaml:"user,omitempty" xml:"user,omitempty"`
	Password                      *string `yaml:"password,omitempty" xml:"password,omitempty"`
	ArtifactoryId                 *string `yaml:"artifactoryId,omitempty" xml:"artifactoryId,omitempty"`
	XrayId                        *string `yaml:"xrayId,omitempty" xml:"xrayId,omitempty"`
	AllowDownloadsXrayUnavailable *bool   `yaml:"allowDownloadsXrayUnavailable,omitempty" xml:"allowDownloadsXrayUnavailable,omitempty"`
	AllowBlockedArtifactsDownload *bool   `yaml:"allowBlockedArtifactsDownload,omitempty" xml:"allowBlockedArtifactsDownload,omitempty"`
	BypassDefaultProxy            *bool   `yaml:"bypassDefaultProxy,omitempty" xml:"bypassDefaultProxy,omitempty"`
	Proxy                         *string `yaml:"proxy,omitempty" xml:"proxy,omitempty"`
}

XrayConfig represents Xray related settings in Artifactory's Configuration Descriptor. This is undocumented in YAML Configuration File.

func (*XrayConfig) GetAllowBlockedArtifactsDownload

func (x *XrayConfig) GetAllowBlockedArtifactsDownload() bool

GetAllowBlockedArtifactsDownload returns the AllowBlockedArtifactsDownload field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetAllowDownloadsXrayUnavailable

func (x *XrayConfig) GetAllowDownloadsXrayUnavailable() bool

GetAllowDownloadsXrayUnavailable returns the AllowDownloadsXrayUnavailable field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetArtifactoryId

func (x *XrayConfig) GetArtifactoryId() string

GetArtifactoryId returns the ArtifactoryId field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetBaseUrl

func (x *XrayConfig) GetBaseUrl() string

GetBaseUrl returns the BaseUrl field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetBypassDefaultProxy

func (x *XrayConfig) GetBypassDefaultProxy() bool

GetBypassDefaultProxy returns the BypassDefaultProxy field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetEnabled

func (x *XrayConfig) GetEnabled() bool

GetEnabled returns the Enabled field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetPassword

func (x *XrayConfig) GetPassword() string

GetPassword returns the Password field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetProxy

func (x *XrayConfig) GetProxy() string

GetProxy returns the Proxy field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetUser

func (x *XrayConfig) GetUser() string

GetUser returns the User field if it's non-nil, zero value otherwise.

func (*XrayConfig) GetXrayId

func (x *XrayConfig) GetXrayId() string

GetXrayId returns the XrayId field if it's non-nil, zero value otherwise.

Directories

Path Synopsis
fixtures

Jump to

Keyboard shortcuts

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