services

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 35 Imported by: 91

Documentation

Index

Constants

View Source
const APIKeyPath = "api/security/apiKey"
View Source
const FederatedRepositoryRepoType = "federated"
View Source
const LocalRepositoryRepoType = "local"
View Source
const RemoteRepositoryRepoType = "remote"
View Source
const VirtualRepositoryRepoType = "virtual"

Variables

This section is empty.

Functions

func CollectFilesForUpload added in v1.8.0

func CollectFilesForUpload(uploadParams UploadParams, progressMgr ioutils.ProgressMgr, vcsCache *clientutils.VcsCache, dataHandlerFunc UploadDataHandlerFunc) error

func SearchBySpecFiles added in v0.1.3

func SearchBySpecFiles(searchParams SearchParams, flags utils.CommonConf, requiredArtifactProps utils.RequiredArtifactProps) (*content.ContentReader, error)

Types

type Actions added in v0.13.0

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

type AdditionalRepositoryBaseParams added in v1.3.0

type AdditionalRepositoryBaseParams struct {
	BlackedOut         *bool    `json:"blackedOut,omitempty"`
	XrayIndex          *bool    `json:"xrayIndex,omitempty"`
	PropertySets       []string `json:"propertySets,omitempty"`
	DownloadRedirect   *bool    `json:"downloadRedirect,omitempty"`
	PriorityResolution *bool    `json:"priorityResolution,omitempty"`
}

type AlpineFederatedRepositoryParams added in v1.3.0

type AlpineFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewAlpineFederatedRepositoryParams added in v1.3.0

func NewAlpineFederatedRepositoryParams() AlpineFederatedRepositoryParams

type AlpineLocalRepositoryParams added in v1.3.0

type AlpineLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewAlpineLocalRepositoryParams added in v1.3.0

func NewAlpineLocalRepositoryParams() AlpineLocalRepositoryParams

type AlpineRemoteRepositoryParams added in v1.3.0

type AlpineRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewAlpineRemoteRepositoryParams added in v1.3.0

func NewAlpineRemoteRepositoryParams() AlpineRemoteRepositoryParams

type AlpineVirtualRepositoryParams added in v1.3.0

type AlpineVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewAlpineVirtualRepositoryParams added in v1.3.0

func NewAlpineVirtualRepositoryParams() AlpineVirtualRepositoryParams

type AqlService

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

func NewAqlService

func NewAqlService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *AqlService

func (*AqlService) ExecAql

func (s *AqlService) ExecAql(aql string) (io.ReadCloser, error)

func (*AqlService) GetArtifactoryDetails

func (s *AqlService) GetArtifactoryDetails() auth.ServiceDetails

func (*AqlService) GetJfrogHttpClient

func (s *AqlService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*AqlService) IsDryRun

func (s *AqlService) IsDryRun() bool

type ArchiveUploadData added in v1.8.0

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

func (*ArchiveUploadData) GetWriter added in v1.8.0

func (aud *ArchiveUploadData) GetWriter() *content.ContentWriter

func (*ArchiveUploadData) SetUploadParams added in v1.8.0

func (aud *ArchiveUploadData) SetUploadParams(uploadParams UploadParams) *ArchiveUploadData

func (*ArchiveUploadData) SetWriter added in v1.8.0

func (aud *ArchiveUploadData) SetWriter(writer *content.ContentWriter) *ArchiveUploadData

type BowerFederatedRepositoryParams added in v1.3.0

type BowerFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewBowerFederatedRepositoryParams added in v1.3.0

func NewBowerFederatedRepositoryParams() BowerFederatedRepositoryParams

type BowerLocalRepositoryParams added in v0.9.0

type BowerLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewBowerLocalRepositoryParams added in v0.9.0

func NewBowerLocalRepositoryParams() BowerLocalRepositoryParams

type BowerRemoteRepositoryParams added in v0.9.0

type BowerRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	VcsGitRemoteRepositoryParams
	BowerRegistryUrl string `json:"bowerRegistryUrl,omitempty"`
}

func NewBowerRemoteRepositoryParams added in v0.9.0

func NewBowerRemoteRepositoryParams() BowerRemoteRepositoryParams

type BowerVirtualRepositoryParams added in v0.9.0

type BowerVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	ExternalDependenciesEnabled    *bool    `json:"externalDependenciesEnabled,omitempty"`
	ExternalDependenciesPatterns   []string `json:"externalDependenciesPatterns,omitempty"`
	ExternalDependenciesRemoteRepo string   `json:"externalDependenciesRemoteRepo,omitempty"`
}

func NewBowerVirtualRepositoryParams added in v0.9.0

func NewBowerVirtualRepositoryParams() BowerVirtualRepositoryParams

type BuildDistributionBody

type BuildDistributionBody struct {
	SourceRepos           []string `json:"sourceRepos,omitempty"`
	TargetRepo            string   `json:"targetRepo,omitempty"`
	GpgPassphrase         string   `json:"gpgPassphrase,omitempty"`
	Publish               bool     `json:"publish"`
	OverrideExistingFiles *bool    `json:"overrideExistingFiles,omitempty"`
	Async                 *bool    `json:"async,omitempty"`
	DryRun                *bool    `json:"dryRun,omitempty"`
}

type BuildDistributionParams

type BuildDistributionParams struct {
	SourceRepos           string
	TargetRepo            string
	GpgPassphrase         string
	Publish               bool
	OverrideExistingFiles bool
	Async                 bool
	BuildName             string
	BuildNumber           string
}

func NewBuildDistributionParams added in v0.1.3

func NewBuildDistributionParams() BuildDistributionParams

func (*BuildDistributionParams) GetBuildName

func (bd *BuildDistributionParams) GetBuildName() string

func (*BuildDistributionParams) GetBuildNumber

func (bd *BuildDistributionParams) GetBuildNumber() string

func (*BuildDistributionParams) GetGpgPassphrase

func (bd *BuildDistributionParams) GetGpgPassphrase() string

func (*BuildDistributionParams) GetSourceRepos

func (bd *BuildDistributionParams) GetSourceRepos() string

func (*BuildDistributionParams) GetTargetRepo

func (bd *BuildDistributionParams) GetTargetRepo() string

func (*BuildDistributionParams) IsAsync

func (bd *BuildDistributionParams) IsAsync() bool

func (*BuildDistributionParams) IsOverrideExistingFiles

func (bd *BuildDistributionParams) IsOverrideExistingFiles() bool

func (*BuildDistributionParams) IsPublish

func (bd *BuildDistributionParams) IsPublish() bool

type BuildInfoParams added in v0.3.1

type BuildInfoParams struct {
	BuildName   string
	BuildNumber string
	ProjectKey  string
}

func NewBuildInfoParams added in v0.3.2

func NewBuildInfoParams() BuildInfoParams

type BuildInfoService added in v0.3.1

type BuildInfoService struct {
	DryRun bool
	// contains filtered or unexported fields
}

func NewBuildInfoService added in v0.3.1

func NewBuildInfoService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *BuildInfoService

func (*BuildInfoService) GetArtifactoryDetails added in v0.3.1

func (bis *BuildInfoService) GetArtifactoryDetails() auth.ServiceDetails

func (*BuildInfoService) GetBuildInfo added in v0.3.1

func (bis *BuildInfoService) GetBuildInfo(params BuildInfoParams) (pbi *buildinfo.PublishedBuildInfo, found bool, err error)

Returns the build info and its uri of the provided parameters. If build info was not found (404), returns found=false (with error nil). For any other response that isn't 200, an error is returned.

func (*BuildInfoService) GetJfrogHttpClient added in v0.3.1

func (bis *BuildInfoService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*BuildInfoService) IsDryRun added in v0.3.1

func (bis *BuildInfoService) IsDryRun() bool

func (*BuildInfoService) PublishBuildInfo added in v0.3.2

func (bis *BuildInfoService) PublishBuildInfo(build *buildinfo.BuildInfo, projectKey string) (*clientutils.Sha256Summary, error)

type BuildPromotionBody

type BuildPromotionBody struct {
	Comment             string `json:"comment,omitempty"`
	SourceRepo          string `json:"sourceRepo,omitempty"`
	TargetRepo          string `json:"targetRepo,omitempty"`
	Status              string `json:"status,omitempty"`
	IncludeDependencies *bool  `json:"dependencies,omitempty"`
	Copy                *bool  `json:"copy,omitempty"`
	// Notice that FailFast is boolean and therfore if not assigned, FailFast is false.
	FailFast   bool                `json:"failFast"`
	DryRun     *bool               `json:"dryRun,omitempty"`
	Properties map[string][]string `json:"properties,omitempty"`
}

type CargoFederatedRepositoryParams added in v1.3.0

type CargoFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	CargoRepositoryParams
}

func NewCargoFederatedRepositoryParams added in v1.3.0

func NewCargoFederatedRepositoryParams() CargoFederatedRepositoryParams

type CargoLocalRepositoryParams added in v1.3.0

type CargoLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	CargoRepositoryParams
}

func NewCargoLocalRepositoryParams added in v1.3.0

func NewCargoLocalRepositoryParams() CargoLocalRepositoryParams

type CargoRemoteRepositoryParams added in v1.3.0

type CargoRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	CargoRepositoryParams
	GitRegistryUrl string `json:"gitRegistryUrl,omitempty"`
}

func NewCargoRemoteRepositoryParams added in v1.3.0

func NewCargoRemoteRepositoryParams() CargoRemoteRepositoryParams

type CargoRepositoryParams added in v1.3.0

type CargoRepositoryParams struct {
	CargoAnonymousAccess *bool `json:"cargoAnonymousAccess,omitempty"`
}

type ChefFederatedRepositoryParams added in v1.3.0

type ChefFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewChefFederatedRepositoryParams added in v1.3.0

func NewChefFederatedRepositoryParams() ChefFederatedRepositoryParams

type ChefLocalRepositoryParams added in v0.9.0

type ChefLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewChefLocalRepositoryParams added in v0.9.0

func NewChefLocalRepositoryParams() ChefLocalRepositoryParams

type ChefRemoteRepositoryParams added in v0.9.0

type ChefRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewChefRemoteRepositoryParams added in v0.9.0

func NewChefRemoteRepositoryParams() ChefRemoteRepositoryParams

type ChefVirtualRepositoryParams added in v0.9.0

type ChefVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewChefVirtualRepositoryParams added in v0.9.0

func NewChefVirtualRepositoryParams() ChefVirtualRepositoryParams

type CocoapodsFederatedRepositoryParams added in v1.3.0

type CocoapodsFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewCocoapodsFederatedRepositoryParams added in v1.3.0

func NewCocoapodsFederatedRepositoryParams() CocoapodsFederatedRepositoryParams

type CocoapodsLocalRepositoryParams added in v0.9.0

type CocoapodsLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewCocoapodsLocalRepositoryParams added in v0.9.0

func NewCocoapodsLocalRepositoryParams() CocoapodsLocalRepositoryParams

type CocoapodsRemoteRepositoryParams added in v0.9.0

type CocoapodsRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	VcsGitRemoteRepositoryParams
	PodsSpecsRepoUrl string `json:"podsSpecsRepoUrl,omitempty"`
}

func NewCocoapodsRemoteRepositoryParams added in v0.9.0

func NewCocoapodsRemoteRepositoryParams() CocoapodsRemoteRepositoryParams

type CommonCacheVirtualRepositoryParams added in v1.3.0

type CommonCacheVirtualRepositoryParams struct {
	VirtualRetrievalCachePeriodSecs int `json:"virtualRetrievalCachePeriodSecs,omitempty"`
}

type CommonJavaVirtualRepositoryParams added in v1.3.0

type CommonJavaVirtualRepositoryParams struct {
	PomRepositoryReferencesCleanupPolicy string `json:"pomRepositoryReferencesCleanupPolicy,omitempty"`
	KeyPair                              string `json:"keyPair,omitempty"`
}

type ComposerFederatedRepositoryParams added in v1.3.0

type ComposerFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewComposerFederatedRepositoryParams added in v1.3.0

func NewComposerFederatedRepositoryParams() ComposerFederatedRepositoryParams

type ComposerLocalRepositoryParams added in v0.9.0

type ComposerLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewComposerLocalRepositoryParams added in v0.9.0

func NewComposerLocalRepositoryParams() ComposerLocalRepositoryParams

type ComposerRemoteRepositoryParams added in v0.9.0

type ComposerRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	VcsGitRemoteRepositoryParams
	ComposerRegistryUrl string `json:"composerRegistryUrl,omitempty"`
}

func NewComposerRemoteRepositoryParams added in v0.9.0

func NewComposerRemoteRepositoryParams() ComposerRemoteRepositoryParams

type ConanFederatedRepositoryParams added in v1.3.0

type ConanFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewConanFederatedRepositoryParams added in v1.3.0

func NewConanFederatedRepositoryParams() ConanFederatedRepositoryParams

type ConanLocalRepositoryParams added in v0.9.0

type ConanLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewConanLocalRepositoryParams added in v0.9.0

func NewConanLocalRepositoryParams() ConanLocalRepositoryParams

type ConanRemoteRepositoryParams added in v0.9.0

type ConanRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewConanRemoteRepositoryParams added in v0.9.0

func NewConanRemoteRepositoryParams() ConanRemoteRepositoryParams

type ConanVirtualRepositoryParams added in v0.9.0

type ConanVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewConanVirtualRepositoryParams added in v0.9.0

func NewConanVirtualRepositoryParams() ConanVirtualRepositoryParams

type CondaFederatedRepositoryParams added in v1.3.0

type CondaFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewCondaFederatedRepositoryParams added in v1.3.0

func NewCondaFederatedRepositoryParams() CondaFederatedRepositoryParams

type CondaLocalRepositoryParams added in v1.3.0

type CondaLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewCondaLocalRepositoryParams added in v1.3.0

func NewCondaLocalRepositoryParams() CondaLocalRepositoryParams

type CondaRemoteRepositoryParams added in v0.9.0

type CondaRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewCondaRemoteRepositoryParams added in v0.9.0

func NewCondaRemoteRepositoryParams() CondaRemoteRepositoryParams

type CondaVirtualRepositoryParams added in v0.9.0

type CondaVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewCondaVirtualRepositoryParams added in v0.9.0

func NewCondaVirtualRepositoryParams() CondaVirtualRepositoryParams

type ContentSynchronisation added in v0.9.0

type ContentSynchronisation struct {
	Enabled    *bool                             `json:"enabled,omitempty"`
	Statistics *ContentSynchronisationStatistics `json:"statistics,omitempty"`
	Properties *ContentSynchronisationProperties `json:"properties,omitempty"`
	Source     *ContentSynchronisationSource     `json:"source,omitempty"`
}

type ContentSynchronisationProperties added in v1.3.0

type ContentSynchronisationProperties struct {
	Enabled *bool `json:"enabled,omitempty"`
}

type ContentSynchronisationSource added in v1.3.0

type ContentSynchronisationSource struct {
	OriginAbsenceDetection *bool `json:"originAbsenceDetection,omitempty"`
}

type ContentSynchronisationStatistics added in v1.3.0

type ContentSynchronisationStatistics struct {
	Enabled *bool `json:"enabled,omitempty"`
}

type CranFederatedRepositoryParams added in v1.3.0

type CranFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewCranFederatedRepositoryParams added in v1.3.0

func NewCranFederatedRepositoryParams() CranFederatedRepositoryParams

type CranLocalRepositoryParams added in v0.9.0

type CranLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewCranLocalRepositoryParams added in v0.9.0

func NewCranLocalRepositoryParams() CranLocalRepositoryParams

type CranRemoteRepositoryParams added in v0.9.0

type CranRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewCranRemoteRepositoryParams added in v0.9.0

func NewCranRemoteRepositoryParams() CranRemoteRepositoryParams

type CranVirtualRepositoryParams added in v0.9.0

type CranVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewCranVirtualRepositoryParams added in v0.9.0

func NewCranVirtualRepositoryParams() CranVirtualRepositoryParams

type CreateReplicationParams added in v0.9.0

type CreateReplicationParams struct {
	utils.ReplicationParams
}

func NewCreateReplicationParams added in v0.9.0

func NewCreateReplicationParams() CreateReplicationParams

type CreateReplicationService added in v0.9.0

type CreateReplicationService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewCreateReplicationService added in v0.9.0

func NewCreateReplicationService(client *jfroghttpclient.JfrogHttpClient) *CreateReplicationService

func (*CreateReplicationService) CreateReplication added in v0.9.0

func (rs *CreateReplicationService) CreateReplication(params CreateReplicationParams) error

func (*CreateReplicationService) GetJfrogHttpClient added in v0.9.0

func (rs *CreateReplicationService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

type CreateTokenParams added in v0.7.0

type CreateTokenParams struct {
	Scope       string
	Username    string
	ExpiresIn   int
	Refreshable bool
	Audience    string
}

func NewCreateTokenParams added in v0.7.0

func NewCreateTokenParams() CreateTokenParams

type CreateTokenResponseData added in v0.7.0

type CreateTokenResponseData struct {
	Scope        string `json:"scope,omitempty"`
	AccessToken  string `json:"access_token,omitempty"`
	ExpiresIn    int    `json:"expires_in,omitempty"`
	TokenType    string `json:"token_type,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty"`
}

type DebianFederatedRepositoryParams added in v1.3.0

type DebianFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	DebianRepositoryParams
}

func NewDebianFederatedRepositoryParams added in v1.3.0

func NewDebianFederatedRepositoryParams() DebianFederatedRepositoryParams

type DebianLocalRepositoryParams added in v0.9.0

type DebianLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	DebianRepositoryParams
}

func NewDebianLocalRepositoryParams added in v0.9.0

func NewDebianLocalRepositoryParams() DebianLocalRepositoryParams

type DebianRemoteRepositoryParams added in v0.9.0

type DebianRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool `json:"listRemoteFolderItems,omitempty"`
}

func NewDebianRemoteRepositoryParams added in v0.9.0

func NewDebianRemoteRepositoryParams() DebianRemoteRepositoryParams

type DebianRepositoryParams added in v1.3.0

type DebianRepositoryParams struct {
	DebianTrivialLayout             *bool    `json:"debianTrivialLayout,omitempty"`
	OptionalIndexCompressionFormats []string `json:"optionalIndexCompressionFormats,omitempty"`
}

type DebianVirtualRepositoryParams added in v0.9.0

type DebianVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
	DebianDefaultArchitectures      string   `json:"debianDefaultArchitectures,omitempty"`
	OptionalIndexCompressionFormats []string `json:"optionalIndexCompressionFormats,omitempty"`
}

func NewDebianVirtualRepositoryParams added in v0.9.0

func NewDebianVirtualRepositoryParams() DebianVirtualRepositoryParams

type DeleteConfiguration

type DeleteConfiguration struct {
	ArtDetails auth.ServiceDetails
	DryRun     bool
}

func (*DeleteConfiguration) GetArtifactoryDetails

func (conf *DeleteConfiguration) GetArtifactoryDetails() auth.ServiceDetails

func (*DeleteConfiguration) IsDryRun

func (conf *DeleteConfiguration) IsDryRun() bool

func (*DeleteConfiguration) SetArtifactoryDetails

func (conf *DeleteConfiguration) SetArtifactoryDetails(art auth.ServiceDetails)

type DeleteParams

type DeleteParams struct {
	*utils.CommonParams
}

func NewDeleteParams added in v0.1.3

func NewDeleteParams() DeleteParams

func (*DeleteParams) GetFile

func (ds *DeleteParams) GetFile() *utils.CommonParams

func (*DeleteParams) SetIncludeDirs

func (ds *DeleteParams) SetIncludeDirs(includeDirs bool)

type DeleteReplicationService added in v0.9.0

type DeleteReplicationService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewDeleteReplicationService added in v0.9.0

func NewDeleteReplicationService(client *jfroghttpclient.JfrogHttpClient) *DeleteReplicationService

func (*DeleteReplicationService) DeleteReplication added in v0.9.0

func (drs *DeleteReplicationService) DeleteReplication(repoKey string) error

func (*DeleteReplicationService) GetJfrogHttpClient added in v0.9.0

func (drs *DeleteReplicationService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

type DeleteRepositoryService added in v0.9.0

type DeleteRepositoryService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewDeleteRepositoryService added in v0.9.0

func NewDeleteRepositoryService(client *jfroghttpclient.JfrogHttpClient) *DeleteRepositoryService

func (*DeleteRepositoryService) Delete added in v0.9.0

func (drs *DeleteRepositoryService) Delete(repoKey string) error

func (*DeleteRepositoryService) GetJfrogHttpClient added in v0.9.0

func (drs *DeleteRepositoryService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

type DeleteService

type DeleteService struct {
	DryRun  bool
	Threads int
	// contains filtered or unexported fields
}

func NewDeleteService

func NewDeleteService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *DeleteService

func (*DeleteService) DeleteFiles

func (ds *DeleteService) DeleteFiles(deleteItems *content.ContentReader) (int, error)

func (*DeleteService) GetArtifactoryDetails

func (ds *DeleteService) GetArtifactoryDetails() auth.ServiceDetails

func (*DeleteService) GetJfrogHttpClient

func (ds *DeleteService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*DeleteService) GetPathsToDelete

func (ds *DeleteService) GetPathsToDelete(deleteParams DeleteParams) (resultItems *content.ContentReader, err error)

func (*DeleteService) GetThreads added in v0.9.0

func (ds *DeleteService) GetThreads() int

func (*DeleteService) IsDryRun

func (ds *DeleteService) IsDryRun() bool

func (*DeleteService) SetThreads added in v0.9.0

func (ds *DeleteService) SetThreads(threads int)

type DiscardBuildsBody

type DiscardBuildsBody struct {
	MinimumBuildDate string   `json:"minimumBuildDate,omitempty"`
	MaxBuilds        string   `json:"count,omitempty"`
	ExcludeBuilds    []string `json:"buildNumbersNotToBeDiscarded,omitempty"`
	DeleteArtifacts  bool     `json:"deleteBuildArtifacts"`
}

type DiscardBuildsParams

type DiscardBuildsParams struct {
	DeleteArtifacts bool
	BuildName       string
	ProjectKey      string
	MaxDays         string
	MaxBuilds       string
	ExcludeBuilds   string
	Async           bool
}

func NewDiscardBuildsParams added in v0.1.3

func NewDiscardBuildsParams() DiscardBuildsParams

func (*DiscardBuildsParams) GetBuildName

func (bd *DiscardBuildsParams) GetBuildName() string

func (*DiscardBuildsParams) GetExcludeBuilds

func (bd *DiscardBuildsParams) GetExcludeBuilds() string

func (*DiscardBuildsParams) GetMaxBuilds

func (bd *DiscardBuildsParams) GetMaxBuilds() string

func (*DiscardBuildsParams) GetMaxDays

func (bd *DiscardBuildsParams) GetMaxDays() string

func (*DiscardBuildsParams) GetProjectKey added in v0.20.1

func (bd *DiscardBuildsParams) GetProjectKey() string

func (*DiscardBuildsParams) IsAsync

func (bd *DiscardBuildsParams) IsAsync() bool

func (*DiscardBuildsParams) IsDeleteArtifacts

func (bd *DiscardBuildsParams) IsDeleteArtifacts() bool

type DiscardBuildsService

type DiscardBuildsService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewDiscardBuildsService

func NewDiscardBuildsService(client *jfroghttpclient.JfrogHttpClient) *DiscardBuildsService

func (*DiscardBuildsService) DiscardBuilds

func (ds *DiscardBuildsService) DiscardBuilds(params DiscardBuildsParams) error

type DistributeService

type DistributeService struct {
	ArtDetails auth.ServiceDetails
	DryRun     bool
	// contains filtered or unexported fields
}

func NewDistributionService

func NewDistributionService(client *jfroghttpclient.JfrogHttpClient) *DistributeService

func (*DistributeService) BuildDistribute

func (ds *DistributeService) BuildDistribute(params BuildDistributionParams) error

type DockerFederatedRepositoryParams added in v1.3.0

type DockerFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	DockerRepositoryParams
}

func NewDockerFederatedRepositoryParams added in v1.3.0

func NewDockerFederatedRepositoryParams() DockerFederatedRepositoryParams

type DockerLocalRepositoryParams added in v0.9.0

type DockerLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	DockerRepositoryParams
}

func NewDockerLocalRepositoryParams added in v0.9.0

func NewDockerLocalRepositoryParams() DockerLocalRepositoryParams

type DockerPromoteBody added in v0.13.0

type DockerPromoteBody struct {
	TargetRepo             string `json:"targetRepo"`
	DockerRepository       string `json:"dockerRepository"`
	TargetDockerRepository string `json:"targetDockerRepository"`
	Tag                    string `json:"tag"`
	TargetTag              string `json:"targetTag"`
	Copy                   bool   `json:"copy"`
}

type DockerPromoteParams added in v0.13.0

type DockerPromoteParams struct {
	// Mandatory:
	// The name of the source repository in Artifactory, e.g. "docker-local-1". Supported by local repositories only.
	SourceRepo string
	// The name of the target repository in Artifactory, e.g. "docker-local-2". Supported by local repositories only.
	TargetRepo string
	// The name of the source Docker image, e.g. "hello-world".
	SourceDockerImage string

	// Optional:
	// The name of the target Docker image, e.g "hello-world2". If not specified - will use the same name as 'SourceDockerImage'.
	TargetDockerImage string
	// The name of the source image tag. If not specified - the entire docker repository will be promoted.
	SourceTag string
	// The name of the target image tag. If not specified - will use the same tag as 'SourceTag'.
	TargetTag string
	// If set to true, will do copy instead of move.
	Copy bool
}

func NewDockerPromoteParams added in v0.13.0

func NewDockerPromoteParams(sourceDockerImage, sourceRepo, targetRepo string) DockerPromoteParams

func (*DockerPromoteParams) GetSourceDockerImage added in v0.13.0

func (dp *DockerPromoteParams) GetSourceDockerImage() string

func (*DockerPromoteParams) GetSourceTag added in v0.13.0

func (dp *DockerPromoteParams) GetSourceTag() string

func (*DockerPromoteParams) GetTargetDockerRepository added in v0.13.0

func (dp *DockerPromoteParams) GetTargetDockerRepository() string

func (*DockerPromoteParams) GetTargetRepo added in v0.13.0

func (dp *DockerPromoteParams) GetTargetRepo() string

func (*DockerPromoteParams) GetTargetTag added in v0.13.0

func (dp *DockerPromoteParams) GetTargetTag() string

func (*DockerPromoteParams) IsCopy added in v0.13.0

func (dp *DockerPromoteParams) IsCopy() bool

type DockerPromoteService added in v0.13.0

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

func NewDockerPromoteService added in v0.13.0

func NewDockerPromoteService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *DockerPromoteService

func (*DockerPromoteService) GetArtifactoryDetails added in v0.13.0

func (ps *DockerPromoteService) GetArtifactoryDetails() auth.ServiceDetails

func (*DockerPromoteService) GetJfrogHttpClient added in v0.13.0

func (ps *DockerPromoteService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*DockerPromoteService) IsDryRun added in v0.13.0

func (ps *DockerPromoteService) IsDryRun() bool

func (*DockerPromoteService) PromoteDocker added in v0.13.0

func (ps *DockerPromoteService) PromoteDocker(params DockerPromoteParams) error

type DockerRemoteRepositoryParams added in v0.9.0

type DockerRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ExternalDependenciesEnabled  *bool    `json:"externalDependenciesEnabled,omitempty"`
	ExternalDependenciesPatterns []string `json:"externalDependenciesPatterns,omitempty"`
	EnableTokenAuthentication    *bool    `json:"enableTokenAuthentication,omitempty"`
	BlockPullingSchema1          *bool    `json:"blockPushingSchema1,omitempty"`
}

func NewDockerRemoteRepositoryParams added in v0.9.0

func NewDockerRemoteRepositoryParams() DockerRemoteRepositoryParams

type DockerRepositoryParams added in v1.3.0

type DockerRepositoryParams struct {
	MaxUniqueTags       int    `json:"maxUniqueTags,omitempty"`
	DockerApiVersion    string `json:"dockerApiVersion,omitempty"`
	BlockPushingSchema1 *bool  `json:"blockPushingSchema1,omitempty"`
	DockerTagRetention  int    `json:"dockerTagRetention,omitempty"`
}

type DockerVirtualRepositoryParams added in v0.9.0

type DockerVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	ResolveDockerTagsByTimestamp *bool `json:"resolveDockerTagsByTimestamp,omitempty"`
}

func NewDockerVirtualRepositoryParams added in v0.9.0

func NewDockerVirtualRepositoryParams() DockerVirtualRepositoryParams

type DownloadData

type DownloadData struct {
	Dependency   utils.ResultItem
	DownloadPath string
	Target       string
	Flat         bool
}

type DownloadParams

type DownloadParams struct {
	*utils.CommonParams
	Symlink         bool
	ValidateSymlink bool
	Flat            bool
	Explode         bool
	MinSplitSize    int64
	SplitCount      int
	PublicGpgKey    string
}

func NewDownloadParams added in v0.1.3

func NewDownloadParams() DownloadParams

func (*DownloadParams) GetFile

func (ds *DownloadParams) GetFile() *utils.CommonParams

func (*DownloadParams) GetPublicGpgKey added in v1.5.0

func (ds *DownloadParams) GetPublicGpgKey() string

func (*DownloadParams) IsExplode added in v0.1.3

func (ds *DownloadParams) IsExplode() bool

func (*DownloadParams) IsFlat

func (ds *DownloadParams) IsFlat() bool
func (ds *DownloadParams) IsSymlink() bool
func (ds *DownloadParams) ValidateSymlinks() bool

type DownloadService

type DownloadService struct {
	Progress clientio.ProgressMgr

	DryRun  bool
	Threads int
	// contains filtered or unexported fields
}

func NewDownloadService

func NewDownloadService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *DownloadService

func (*DownloadService) DownloadFiles

func (ds *DownloadService) DownloadFiles(downloadParams ...DownloadParams) (*utils.OperationSummary, error)

func (*DownloadService) GetArtifactoryDetails

func (ds *DownloadService) GetArtifactoryDetails() auth.ServiceDetails

func (*DownloadService) GetJfrogHttpClient

func (ds *DownloadService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*DownloadService) GetThreads

func (ds *DownloadService) GetThreads() int

func (*DownloadService) IsDryRun

func (ds *DownloadService) IsDryRun() bool

func (*DownloadService) SetDryRun

func (ds *DownloadService) SetDryRun(isDryRun bool)

func (*DownloadService) SetSaveSummary added in v0.20.1

func (ds *DownloadService) SetSaveSummary(saveSummary bool)

func (*DownloadService) SetThreads

func (ds *DownloadService) SetThreads(threads int)

type FederatedRepositoryBaseParams added in v1.3.0

type FederatedRepositoryBaseParams struct {
	RepositoryBaseParams
	AdditionalRepositoryBaseParams
	KeyPairRefsRepositoryParams
	ArchiveBrowsingEnabled *bool                       `json:"archiveBrowsingEnabled,omitempty"`
	Members                []FederatedRepositoryMember `json:"members,omitempty"`
}

func NewFederatedRepositoryBaseParams added in v1.3.0

func NewFederatedRepositoryBaseParams() FederatedRepositoryBaseParams

func NewFederatedRepositoryPackageParams added in v1.3.0

func NewFederatedRepositoryPackageParams(packageType string) FederatedRepositoryBaseParams

type FederatedRepositoryMember added in v1.3.0

type FederatedRepositoryMember struct {
	Url     string `json:"url"`
	Enabled *bool  `json:"enabled,omitempty"`
}

type FederatedRepositoryService added in v1.3.0

type FederatedRepositoryService struct {
	RepositoryService
}

func NewFederatedRepositoryService added in v1.3.0

func NewFederatedRepositoryService(client *jfroghttpclient.JfrogHttpClient, isUpdate bool) *FederatedRepositoryService

func (*FederatedRepositoryService) Alpine added in v1.3.0

func (*FederatedRepositoryService) Bower added in v1.3.0

func (*FederatedRepositoryService) Cargo added in v1.3.0

func (*FederatedRepositoryService) Chef added in v1.3.0

func (*FederatedRepositoryService) Cocoapods added in v1.3.0

func (*FederatedRepositoryService) Composer added in v1.3.0

func (*FederatedRepositoryService) Conan added in v1.3.0

func (*FederatedRepositoryService) Conda added in v1.3.0

func (*FederatedRepositoryService) Cran added in v1.3.0

func (*FederatedRepositoryService) Debian added in v1.3.0

func (*FederatedRepositoryService) Docker added in v1.3.0

func (*FederatedRepositoryService) Gems added in v1.3.0

func (*FederatedRepositoryService) Generic added in v1.3.0

func (*FederatedRepositoryService) GetJfrogHttpClient added in v1.3.0

func (frs *FederatedRepositoryService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*FederatedRepositoryService) Gitlfs added in v1.3.0

func (*FederatedRepositoryService) Go added in v1.3.0

func (*FederatedRepositoryService) Gradle added in v1.3.0

func (*FederatedRepositoryService) Helm added in v1.3.0

func (*FederatedRepositoryService) Ivy added in v1.3.0

func (*FederatedRepositoryService) Maven added in v1.3.0

func (*FederatedRepositoryService) Npm added in v1.3.0

func (*FederatedRepositoryService) Nuget added in v1.3.0

func (*FederatedRepositoryService) Opkg added in v1.3.0

func (*FederatedRepositoryService) Puppet added in v1.3.0

func (*FederatedRepositoryService) Pypi added in v1.3.0

func (*FederatedRepositoryService) Rpm added in v1.3.0

func (*FederatedRepositoryService) Sbt added in v1.3.0

func (*FederatedRepositoryService) Vagrant added in v1.3.0

func (*FederatedRepositoryService) Yum added in v1.3.0

type FederationService added in v1.3.0

type FederationService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewFederationService added in v1.3.0

func NewFederationService(client *jfroghttpclient.JfrogHttpClient) *FederationService

func (*FederationService) ConvertLocalToFederated added in v1.3.0

func (fs *FederationService) ConvertLocalToFederated(repoKey string) error

func (*FederationService) SetArtifactoryDetails added in v1.3.0

func (fs *FederationService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*FederationService) TriggerFederatedFullSyncAll added in v1.3.0

func (fs *FederationService) TriggerFederatedFullSyncAll(repoKey string) error

func (*FederationService) TriggerFederatedFullSyncMirror added in v1.3.0

func (fs *FederationService) TriggerFederatedFullSyncMirror(repoKey string, mirrorUrl string) error

type GemsFederatedRepositoryParams added in v1.3.0

type GemsFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewGemsFederatedRepositoryParams added in v1.3.0

func NewGemsFederatedRepositoryParams() GemsFederatedRepositoryParams

type GemsLocalRepositoryParams added in v0.9.0

type GemsLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGemsLocalRepositoryParams added in v0.9.0

func NewGemsLocalRepositoryParams() GemsLocalRepositoryParams

type GemsRemoteRepositoryParams added in v0.9.0

type GemsRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool `json:"listRemoteFolderItems,omitempty"`
}

func NewGemsRemoteRepositoryParams added in v0.9.0

func NewGemsRemoteRepositoryParams() GemsRemoteRepositoryParams

type GemsVirtualRepositoryParams added in v0.9.0

type GemsVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewGemsVirtualRepositoryParams added in v0.9.0

func NewGemsVirtualRepositoryParams() GemsVirtualRepositoryParams

type GenericFederatedRepositoryParams added in v1.3.0

type GenericFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewGenericFederatedRepositoryParams added in v1.3.0

func NewGenericFederatedRepositoryParams() GenericFederatedRepositoryParams

type GenericLocalRepositoryParams added in v0.9.0

type GenericLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGenericLocalRepositoryParams added in v0.9.0

func NewGenericLocalRepositoryParams() GenericLocalRepositoryParams

type GenericRemoteRepositoryParams added in v0.9.0

type GenericRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool `json:"listRemoteFolderItems,omitempty"`
}

func NewGenericRemoteRepositoryParams added in v0.9.0

func NewGenericRemoteRepositoryParams() GenericRemoteRepositoryParams

type GenericVirtualRepositoryParams added in v0.9.0

type GenericVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewGenericVirtualRepositoryParams added in v0.9.0

func NewGenericVirtualRepositoryParams() GenericVirtualRepositoryParams

type GetReplicationService added in v0.9.0

type GetReplicationService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewGetReplicationService added in v0.9.0

func NewGetReplicationService(client *jfroghttpclient.JfrogHttpClient) *GetReplicationService

func (*GetReplicationService) GetJfrogHttpClient added in v0.9.0

func (drs *GetReplicationService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*GetReplicationService) GetReplication added in v0.9.0

func (drs *GetReplicationService) GetReplication(repoKey string) ([]utils.ReplicationParams, error)

type GetTokensResponseData added in v0.7.0

type GetTokensResponseData struct {
	Tokens []Token
}

type GitLfsCleanParams

type GitLfsCleanParams struct {
	Refs    string
	Repo    string
	GitPath string
}

func NewGitLfsCleanParams added in v0.1.3

func NewGitLfsCleanParams() GitLfsCleanParams

func (*GitLfsCleanParams) GetGitPath

func (glc *GitLfsCleanParams) GetGitPath() string

func (*GitLfsCleanParams) GetRef

func (glc *GitLfsCleanParams) GetRef() string

func (*GitLfsCleanParams) GetRepo

func (glc *GitLfsCleanParams) GetRepo() string

type GitLfsCleanService

type GitLfsCleanService struct {
	DryRun bool
	// contains filtered or unexported fields
}

func NewGitLfsCleanService

func NewGitLfsCleanService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *GitLfsCleanService

func (*GitLfsCleanService) GetArtifactoryDetails

func (glc *GitLfsCleanService) GetArtifactoryDetails() auth.ServiceDetails

func (*GitLfsCleanService) GetJfrogHttpClient

func (glc *GitLfsCleanService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*GitLfsCleanService) GetUnreferencedGitLfsFiles

func (glc *GitLfsCleanService) GetUnreferencedGitLfsFiles(gitLfsCleanParams GitLfsCleanParams) (*content.ContentReader, error)

func (*GitLfsCleanService) IsDryRun

func (glc *GitLfsCleanService) IsDryRun() bool

type GitlfsFederatedRepositoryParams added in v1.3.0

type GitlfsFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewGitlfsFederatedRepositoryParams added in v1.3.0

func NewGitlfsFederatedRepositoryParams() GitlfsFederatedRepositoryParams

type GitlfsLocalRepositoryParams added in v0.9.0

type GitlfsLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGitlfsLocalRepositoryParams added in v0.9.0

func NewGitlfsLocalRepositoryParams() GitlfsLocalRepositoryParams

type GitlfsRemoteRepositoryParams added in v0.9.0

type GitlfsRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewGitlfsRemoteRepositoryParams added in v0.9.0

func NewGitlfsRemoteRepositoryParams() GitlfsRemoteRepositoryParams

type GitlfsVirtualRepositoryParams added in v0.9.0

type GitlfsVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewGitlfsVirtualRepositoryParams added in v0.9.0

func NewGitlfsVirtualRepositoryParams() GitlfsVirtualRepositoryParams

type GoFederatedRepositoryParams added in v1.3.0

type GoFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewGoFederatedRepositoryParams added in v1.3.0

func NewGoFederatedRepositoryParams() GoFederatedRepositoryParams

type GoLocalRepositoryParams added in v0.9.0

type GoLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGoLocalRepositoryParams added in v0.9.0

func NewGoLocalRepositoryParams() GoLocalRepositoryParams

type GoRemoteRepositoryParams added in v0.9.0

type GoRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	VcsGitProvider string `json:"vcsGitProvider,omitempty"`
}

func NewGoRemoteRepositoryParams added in v0.9.0

func NewGoRemoteRepositoryParams() GoRemoteRepositoryParams

type GoVirtualRepositoryParams added in v0.9.0

type GoVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	ExternalDependenciesEnabled  *bool    `json:"externalDependenciesEnabled,omitempty"`
	ExternalDependenciesPatterns []string `json:"externalDependenciesPatterns,omitempty"`
}

func NewGoVirtualRepositoryParams added in v0.9.0

func NewGoVirtualRepositoryParams() GoVirtualRepositoryParams

type GradleFederatedRepositoryParams added in v1.3.0

type GradleFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewGradleFederatedRepositoryParams added in v1.3.0

func NewGradleFederatedRepositoryParams() GradleFederatedRepositoryParams

type GradleLocalRepositoryParams added in v0.9.0

type GradleLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewGradleLocalRepositoryParams added in v0.9.0

func NewGradleLocalRepositoryParams() GradleLocalRepositoryParams

type GradleRemoteRepositoryParams added in v0.9.0

type GradleRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	JavaPackageManagersRemoteRepositoryParams
}

func NewGradleRemoteRepositoryParams added in v0.9.0

func NewGradleRemoteRepositoryParams() GradleRemoteRepositoryParams

type GradleVirtualRepositoryParams added in v0.9.0

type GradleVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonJavaVirtualRepositoryParams
}

func NewGradleVirtualRepositoryParams added in v0.9.0

func NewGradleVirtualRepositoryParams() GradleVirtualRepositoryParams

type Group added in v0.19.0

type Group struct {
	Name            string   `json:"name,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"`
	UsersNames      []string `json:"userNames,omitempty"`
}

type GroupAlreadyExistsError added in v0.21.0

type GroupAlreadyExistsError struct {
	InnerError error
}

func (*GroupAlreadyExistsError) Error added in v0.21.0

type GroupParams added in v0.19.0

type GroupParams struct {
	GroupDetails    Group
	ReplaceIfExists bool
	IncludeUsers    bool
}

func NewGroupParams added in v0.19.0

func NewGroupParams() GroupParams

type GroupService added in v0.19.0

type GroupService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewGroupService added in v0.19.0

func NewGroupService(client *jfroghttpclient.JfrogHttpClient) *GroupService

func (*GroupService) CreateGroup added in v0.19.0

func (gs *GroupService) CreateGroup(params GroupParams) error

func (*GroupService) DeleteGroup added in v0.19.0

func (gs *GroupService) DeleteGroup(name string) error

func (*GroupService) GetGroup added in v0.19.0

func (gs *GroupService) GetGroup(params GroupParams) (g *Group, err error)

func (*GroupService) SetArtifactoryDetails added in v0.19.0

func (gs *GroupService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*GroupService) UpdateGroup added in v0.19.0

func (gs *GroupService) UpdateGroup(params GroupParams) error

type HelmFederatedRepositoryParams added in v1.3.0

type HelmFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewHelmFederatedRepositoryParams added in v1.3.0

func NewHelmFederatedRepositoryParams() HelmFederatedRepositoryParams

type HelmLocalRepositoryParams added in v0.9.0

type HelmLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewHelmLocalRepositoryParams added in v0.9.0

func NewHelmLocalRepositoryParams() HelmLocalRepositoryParams

type HelmRemoteRepositoryParams added in v0.9.0

type HelmRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ChartsBaseUrl string `json:"chartsBaseUrl,omitempty"`
}

func NewHelmRemoteRepositoryParams added in v0.9.0

func NewHelmRemoteRepositoryParams() HelmRemoteRepositoryParams

type HelmVirtualRepositoryParams added in v0.9.0

type HelmVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewHelmVirtualRepositoryParams added in v0.9.0

func NewHelmVirtualRepositoryParams() HelmVirtualRepositoryParams

type IvyFederatedRepositoryParams added in v1.3.0

type IvyFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewIvyFederatedRepositoryParams added in v1.3.0

func NewIvyFederatedRepositoryParams() IvyFederatedRepositoryParams

type IvyLocalRepositoryParams added in v0.9.0

type IvyLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewIvyLocalRepositoryParams added in v0.9.0

func NewIvyLocalRepositoryParams() IvyLocalRepositoryParams

type IvyRemoteRepositoryParams added in v0.9.0

type IvyRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	JavaPackageManagersRemoteRepositoryParams
}

func NewIvyRemoteRepositoryParams added in v0.9.0

func NewIvyRemoteRepositoryParams() IvyRemoteRepositoryParams

type IvyVirtualRepositoryParams added in v0.9.0

type IvyVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonJavaVirtualRepositoryParams
}

func NewIvyVirtualRepositoryParams added in v0.9.0

func NewIvyVirtualRepositoryParams() IvyVirtualRepositoryParams

type JavaPackageManagersRemoteRepositoryParams added in v1.3.0

type JavaPackageManagersRemoteRepositoryParams struct {
	RemoteRepoChecksumPolicyType string `json:"remoteRepoChecksumPolicyType,omitempty"`
	MaxUniqueSnapshots           int    `json:"maxUniqueSnapshots,omitempty"`
	FetchJarsEagerly             *bool  `json:"fetchJarsEagerly,omitempty"`
	SuppressPomConsistencyChecks *bool  `json:"suppressPomConsistencyChecks,omitempty"`
	FetchSourcesEagerly          *bool  `json:"fetchSourcesEagerly,omitempty"`
	HandleReleases               *bool  `json:"handleReleases,omitempty"`
	HandleSnapshots              *bool  `json:"handleSnapshots,omitempty"`
	RejectInvalidJars            *bool  `json:"rejectInvalidJars,omitempty"`
}

type JavaPackageManagersRepositoryParams added in v1.3.0

type JavaPackageManagersRepositoryParams struct {
	MaxUniqueSnapshots           int    `json:"maxUniqueSnapshots,omitempty"`
	HandleReleases               *bool  `json:"handleReleases,omitempty"`
	HandleSnapshots              *bool  `json:"handleSnapshots,omitempty"`
	SuppressPomConsistencyChecks *bool  `json:"suppressPomConsistencyChecks,omitempty"`
	SnapshotVersionBehavior      string `json:"snapshotVersionBehavior,omitempty"`
	ChecksumPolicyType           string `json:"checksumPolicyType,omitempty"`
}

type KeyPairRefsRepositoryParams added in v1.5.0

type KeyPairRefsRepositoryParams struct {
	PrimaryKeyPairRef   string `json:"primaryKeyPairRef,omitempty"`
	SecondaryKeyPairRef string `json:"secondaryKeyPairRef,omitempty"`
}

type LocalRepositoryBaseParams added in v0.9.0

type LocalRepositoryBaseParams struct {
	RepositoryBaseParams
	AdditionalRepositoryBaseParams
	KeyPairRefsRepositoryParams
	ArchiveBrowsingEnabled *bool `json:"archiveBrowsingEnabled,omitempty"`
}

func NewLocalRepositoryBaseParams added in v0.21.0

func NewLocalRepositoryBaseParams() LocalRepositoryBaseParams

func NewLocalRepositoryPackageParams added in v1.3.0

func NewLocalRepositoryPackageParams(packageType string) LocalRepositoryBaseParams

type LocalRepositoryService added in v0.9.0

type LocalRepositoryService struct {
	RepositoryService
}

func NewLocalRepositoryService added in v0.9.0

func NewLocalRepositoryService(client *jfroghttpclient.JfrogHttpClient, isUpdate bool) *LocalRepositoryService

func (*LocalRepositoryService) Alpine added in v1.3.0

func (*LocalRepositoryService) Bower added in v0.9.0

func (*LocalRepositoryService) Cargo added in v1.3.0

func (*LocalRepositoryService) Chef added in v0.9.0

func (*LocalRepositoryService) Cocoapods added in v0.9.0

func (*LocalRepositoryService) Composer added in v0.9.0

func (*LocalRepositoryService) Conan added in v0.9.0

func (*LocalRepositoryService) Conda added in v1.3.0

func (*LocalRepositoryService) Cran added in v0.9.0

func (*LocalRepositoryService) Debian added in v0.9.0

func (*LocalRepositoryService) Docker added in v0.9.0

func (*LocalRepositoryService) Gems added in v0.9.0

func (*LocalRepositoryService) Generic added in v0.9.0

func (*LocalRepositoryService) GetJfrogHttpClient added in v0.9.0

func (lrs *LocalRepositoryService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*LocalRepositoryService) Gitlfs added in v0.9.0

func (*LocalRepositoryService) Go added in v0.9.0

func (*LocalRepositoryService) Gradle added in v0.9.0

func (*LocalRepositoryService) Helm added in v0.9.0

func (*LocalRepositoryService) Ivy added in v0.9.0

func (*LocalRepositoryService) Maven added in v0.9.0

func (*LocalRepositoryService) Npm added in v0.9.0

func (*LocalRepositoryService) Nuget added in v0.9.0

func (*LocalRepositoryService) Opkg added in v0.9.0

func (*LocalRepositoryService) Puppet added in v0.9.0

func (*LocalRepositoryService) Pypi added in v0.9.0

func (*LocalRepositoryService) Rpm added in v0.9.0

func (*LocalRepositoryService) Sbt added in v0.9.0

func (*LocalRepositoryService) Vagrant added in v0.9.0

func (*LocalRepositoryService) Yum added in v0.9.0

type MavenFederatedRepositoryParams added in v1.3.0

type MavenFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewMavenFederatedRepositoryParams added in v1.3.0

func NewMavenFederatedRepositoryParams() MavenFederatedRepositoryParams

type MavenLocalRepositoryParams added in v0.9.0

type MavenLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewMavenLocalRepositoryParams added in v0.9.0

func NewMavenLocalRepositoryParams() MavenLocalRepositoryParams

type MavenRemoteRepositoryParams added in v0.9.0

type MavenRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	JavaPackageManagersRemoteRepositoryParams
}

func NewMavenRemoteRepositoryParams added in v0.9.0

func NewMavenRemoteRepositoryParams() MavenRemoteRepositoryParams

type MavenVirtualRepositoryParams added in v0.9.0

type MavenVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonJavaVirtualRepositoryParams
	ForceMavenAuthentication *bool `json:"forceMavenAuthentication,omitempty"`
}

func NewMavenVirtualRepositoryParams added in v0.9.0

func NewMavenVirtualRepositoryParams() MavenVirtualRepositoryParams

type MoveCopyParams

type MoveCopyParams struct {
	*utils.CommonParams
	Flat bool
}

func NewMoveCopyParams added in v0.1.3

func NewMoveCopyParams() MoveCopyParams

func (*MoveCopyParams) GetFile

func (mc *MoveCopyParams) GetFile() *utils.CommonParams

func (*MoveCopyParams) IsFlat

func (mc *MoveCopyParams) IsFlat() bool

func (*MoveCopyParams) SetIncludeDir

func (mc *MoveCopyParams) SetIncludeDir(isIncludeDir bool)

type MoveCopyService

type MoveCopyService struct {
	DryRun bool

	Threads int
	// contains filtered or unexported fields
}

func NewMoveCopyService

func NewMoveCopyService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient, moveType MoveType) *MoveCopyService

func (*MoveCopyService) GetArtifactoryDetails

func (mc *MoveCopyService) GetArtifactoryDetails() auth.ServiceDetails

func (*MoveCopyService) GetJfrogHttpClient

func (mc *MoveCopyService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*MoveCopyService) GetThreads added in v0.17.0

func (mc *MoveCopyService) GetThreads() int

func (*MoveCopyService) IsDryRun

func (mc *MoveCopyService) IsDryRun() bool

func (*MoveCopyService) MoveCopyServiceMoveFilesWrapper

func (mc *MoveCopyService) MoveCopyServiceMoveFilesWrapper(moveSpecs ...MoveCopyParams) (successCount, failedCount int, err error)

func (*MoveCopyService) SetThreads added in v0.17.0

func (mc *MoveCopyService) SetThreads(threads int)

type MoveOptions

type MoveOptions struct {
	MovingMsg string
	MovedMsg  string
}

type MoveResultItem added in v0.17.0

type MoveResultItem struct {
	utils.ResultItem `json:"resultItem,omitempty"`
	FileSpecId       int `json:"fileSpecId,omitempty"`
}

Tuple of a 'ResultItem' and its corresponding file-spec's index. We have to keep the file-spec index for each item as the file-spec's data is required for the actual move/copy, and this operation uses 'content.ContentReader' to hold all items. This is the item used in the 'ContentReader' and 'ContentWriter' of the move/copy.

type MoveType

type MoveType string
const (
	MOVE MoveType = "move"
	COPY MoveType = "copy"
)

type NpmFederatedRepositoryParams added in v1.3.0

type NpmFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewNpmFederatedRepositoryParams added in v1.3.0

func NewNpmFederatedRepositoryParams() NpmFederatedRepositoryParams

type NpmLocalRepositoryParams added in v0.9.0

type NpmLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewNpmLocalRepositoryParams added in v0.9.0

func NewNpmLocalRepositoryParams() NpmLocalRepositoryParams

type NpmRemoteRepositoryParams added in v0.9.0

type NpmRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewNpmRemoteRepositoryParams added in v0.9.0

func NewNpmRemoteRepositoryParams() NpmRemoteRepositoryParams

type NpmVirtualRepositoryParams added in v0.9.0

type NpmVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
	ExternalDependenciesEnabled    *bool    `json:"externalDependenciesEnabled,omitempty"`
	ExternalDependenciesPatterns   []string `json:"externalDependenciesPatterns,omitempty"`
	ExternalDependenciesRemoteRepo string   `json:"externalDependenciesRemoteRepo,omitempty"`
}

func NewNpmVirtualRepositoryParams added in v0.9.0

func NewNpmVirtualRepositoryParams() NpmVirtualRepositoryParams

type NugetFederatedRepositoryParams added in v1.3.0

type NugetFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	NugetRepositoryParams
}

func NewNugetFederatedRepositoryParams added in v1.3.0

func NewNugetFederatedRepositoryParams() NugetFederatedRepositoryParams

type NugetLocalRepositoryParams added in v0.9.0

type NugetLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	NugetRepositoryParams
}

func NewNugetLocalRepositoryParams added in v0.9.0

func NewNugetLocalRepositoryParams() NugetLocalRepositoryParams

type NugetRemoteRepositoryParams added in v0.9.0

type NugetRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	FeedContextPath          string `json:"feedContextPath,omitempty"`
	DownloadContextPath      string `json:"downloadContextPath,omitempty"`
	V3FeedUrl                string `json:"v3FeedUrl,omitempty"`
	ForceNugetAuthentication *bool  `json:"forceNugetAuthentication,omitempty"`
}

func NewNugetRemoteRepositoryParams added in v0.9.0

func NewNugetRemoteRepositoryParams() NugetRemoteRepositoryParams

type NugetRepositoryParams added in v1.3.0

type NugetRepositoryParams struct {
	MaxUniqueSnapshots       int   `json:"maxUniqueSnapshots,omitempty"`
	ForceNugetAuthentication *bool `json:"forceNugetAuthentication,omitempty"`
}

type NugetVirtualRepositoryParams added in v0.9.0

type NugetVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	ForceNugetAuthentication *bool `json:"forceNugetAuthentication,omitempty"`
}

func NewNugetVirtualRepositoryParams added in v0.9.0

func NewNugetVirtualRepositoryParams() NugetVirtualRepositoryParams

type OpkgFederatedRepositoryParams added in v1.3.0

type OpkgFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewOpkgFederatedRepositoryParams added in v1.3.0

func NewOpkgFederatedRepositoryParams() OpkgFederatedRepositoryParams

type OpkgLocalRepositoryParams added in v0.9.0

type OpkgLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewOpkgLocalRepositoryParams added in v0.9.0

func NewOpkgLocalRepositoryParams() OpkgLocalRepositoryParams

type OpkgRemoteRepositoryParams added in v0.9.0

type OpkgRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewOpkgRemoteRepositoryParams added in v0.9.0

func NewOpkgRemoteRepositoryParams() OpkgRemoteRepositoryParams

type P2RemoteRepositoryParams added in v0.9.0

type P2RemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool `json:"listRemoteFolderItems,omitempty"`
}

func NewP2RemoteRepositoryParams added in v0.9.0

func NewP2RemoteRepositoryParams() P2RemoteRepositoryParams

type P2VirtualRepositoryParams added in v0.9.0

type P2VirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	P2Urls []string `json:"p2Urls,omitempty"`
}

func NewP2VirtualRepositoryParams added in v0.9.0

func NewP2VirtualRepositoryParams() P2VirtualRepositoryParams

type PermissionTargetAlreadyExistsError added in v0.21.0

type PermissionTargetAlreadyExistsError struct {
	InnerError error
}

func (*PermissionTargetAlreadyExistsError) Error added in v0.21.0

type PermissionTargetParams added in v0.13.0

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

Using struct pointers to keep the fields null if they are empty. Artifactory evaluates inner struct typed fields if they are not null, which can lead to failures in the request.

func NewPermissionTargetParams added in v0.13.0

func NewPermissionTargetParams() PermissionTargetParams

type PermissionTargetSection added in v0.13.0

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

type PermissionTargetService added in v0.13.0

type PermissionTargetService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewPermissionTargetService added in v0.13.0

func NewPermissionTargetService(client *jfroghttpclient.JfrogHttpClient) *PermissionTargetService

func (*PermissionTargetService) Create added in v0.13.0

func (*PermissionTargetService) Delete added in v0.13.0

func (pts *PermissionTargetService) Delete(permissionTargetName string) error

func (*PermissionTargetService) Get added in v0.20.1

func (pts *PermissionTargetService) Get(permissionTargetName string) (*PermissionTargetParams, error)

func (*PermissionTargetService) GetJfrogHttpClient added in v0.13.0

func (pts *PermissionTargetService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*PermissionTargetService) Update added in v0.13.0

type PingService

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

func NewPingService

func NewPingService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *PingService

func (*PingService) GetArtifactoryDetails

func (ps *PingService) GetArtifactoryDetails() auth.ServiceDetails

func (*PingService) GetJfrogHttpClient

func (ps *PingService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*PingService) IsDryRun

func (ps *PingService) IsDryRun() bool

func (*PingService) Ping

func (ps *PingService) Ping() ([]byte, error)

type PromoteService

type PromoteService struct {
	ArtDetails auth.ServiceDetails
	DryRun     bool
	// contains filtered or unexported fields
}

func NewPromotionService

func NewPromotionService(client *jfroghttpclient.JfrogHttpClient) *PromoteService

func (*PromoteService) BuildPromote

func (ps *PromoteService) BuildPromote(promotionParams PromotionParams) error

type PromotionParams

type PromotionParams struct {
	BuildName           string
	BuildNumber         string
	ProjectKey          string
	TargetRepo          string
	Status              string
	Comment             string
	Copy                bool
	FailFast            bool
	IncludeDependencies bool
	SourceRepo          string
	Properties          string
}

func NewPromotionParams added in v0.1.3

func NewPromotionParams() PromotionParams

func (*PromotionParams) GetBuildName

func (bp *PromotionParams) GetBuildName() string

func (*PromotionParams) GetBuildNumber

func (bp *PromotionParams) GetBuildNumber() string

func (*PromotionParams) GetComment

func (bp *PromotionParams) GetComment() string

func (*PromotionParams) GetProjectKey added in v0.20.1

func (bp *PromotionParams) GetProjectKey() string

func (*PromotionParams) GetProperties added in v0.3.3

func (bp *PromotionParams) GetProperties() string

func (*PromotionParams) GetSourceRepo

func (bp *PromotionParams) GetSourceRepo() string

func (*PromotionParams) GetStatus

func (bp *PromotionParams) GetStatus() string

func (*PromotionParams) GetTargetRepo

func (bp *PromotionParams) GetTargetRepo() string

func (*PromotionParams) IsCopy

func (bp *PromotionParams) IsCopy() *bool

func (*PromotionParams) IsFailFast added in v0.22.1

func (bp *PromotionParams) IsFailFast() bool

func (*PromotionParams) IsIncludeDependencies

func (bp *PromotionParams) IsIncludeDependencies() *bool

type PropsParams

type PropsParams struct {
	Reader *content.ContentReader
	Props  string
}

func NewPropsParams added in v0.1.3

func NewPropsParams() PropsParams

func (*PropsParams) GetProps

func (sp *PropsParams) GetProps() string

func (*PropsParams) GetReader added in v0.13.0

func (sp *PropsParams) GetReader() *content.ContentReader

type PropsService

type PropsService struct {
	ArtDetails auth.ServiceDetails
	Threads    int
	// contains filtered or unexported fields
}

func NewPropsService

func NewPropsService(client *jfroghttpclient.JfrogHttpClient) *PropsService

func (*PropsService) DeleteProps

func (ps *PropsService) DeleteProps(propsParams PropsParams) (int, error)

func (*PropsService) GetArtifactoryDetails

func (ps *PropsService) GetArtifactoryDetails() auth.ServiceDetails

func (*PropsService) GetThreads

func (ps *PropsService) GetThreads() int

func (*PropsService) IsDryRun

func (ps *PropsService) IsDryRun() bool

func (*PropsService) SetArtifactoryDetails

func (ps *PropsService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*PropsService) SetProps

func (ps *PropsService) SetProps(propsParams PropsParams) (int, error)

type PuppetFederatedRepositoryParams added in v1.3.0

type PuppetFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewPuppetFederatedRepositoryParams added in v1.3.0

func NewPuppetFederatedRepositoryParams() PuppetFederatedRepositoryParams

type PuppetLocalRepositoryParams added in v0.9.0

type PuppetLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewPuppetLocalRepositoryParams added in v0.9.0

func NewPuppetLocalRepositoryParams() PuppetLocalRepositoryParams

type PuppetRemoteRepositoryParams added in v0.9.0

type PuppetRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewPuppetRemoteRepositoryParams added in v0.9.0

func NewPuppetRemoteRepositoryParams() PuppetRemoteRepositoryParams

type PuppetVirtualRepositoryParams added in v0.9.0

type PuppetVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewPuppetVirtualRepositoryParams added in v0.9.0

func NewPuppetVirtualRepositoryParams() PuppetVirtualRepositoryParams

type PypiFederatedRepositoryParams added in v1.3.0

type PypiFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewPypiFederatedRepositoryParams added in v1.3.0

func NewPypiFederatedRepositoryParams() PypiFederatedRepositoryParams

type PypiLocalRepositoryParams added in v0.9.0

type PypiLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewPypiLocalRepositoryParams added in v0.9.0

func NewPypiLocalRepositoryParams() PypiLocalRepositoryParams

type PypiRemoteRepositoryParams added in v0.9.0

type PypiRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	PypiRegistryUrl      string `json:"pyPIRegistryUrl,omitempty"`
	PypiRepositorySuffix string `json:"pyPIRepositorySuffix,omitempty"`
}

func NewPypiRemoteRepositoryParams added in v0.9.0

func NewPypiRemoteRepositoryParams() PypiRemoteRepositoryParams

type PypiVirtualRepositoryParams added in v0.9.0

type PypiVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewPypiVirtualRepositoryParams added in v0.9.0

func NewPypiVirtualRepositoryParams() PypiVirtualRepositoryParams

type ReadFileService

type ReadFileService struct {
	DryRun       bool
	MinSplitSize int64
	SplitCount   int
	// contains filtered or unexported fields
}

func NewReadFileService

func NewReadFileService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *ReadFileService

func (*ReadFileService) GetArtifactoryDetails

func (ds *ReadFileService) GetArtifactoryDetails() auth.ServiceDetails

func (*ReadFileService) GetJfrogHttpClient

func (ds *ReadFileService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*ReadFileService) IsDryRun

func (ds *ReadFileService) IsDryRun() bool

func (*ReadFileService) ReadRemoteFile

func (ds *ReadFileService) ReadRemoteFile(downloadPath string) (io.ReadCloser, error)

func (*ReadFileService) SetDryRun

func (ds *ReadFileService) SetDryRun(isDryRun bool)

type ReaderSpecTuple added in v0.17.0

type ReaderSpecTuple struct {
	Reader   *content.ContentReader
	MoveSpec int
}

Tuple of a ContentReader and its corresponding file-spec index.

type RefreshTokenParams added in v0.7.0

type RefreshTokenParams struct {
	Token        CreateTokenParams
	RefreshToken string
	AccessToken  string
}

func NewRefreshTokenParams added in v0.7.0

func NewRefreshTokenParams() RefreshTokenParams

type RemoteRepositoryBaseParams added in v0.9.0

type RemoteRepositoryBaseParams struct {
	RepositoryBaseParams
	AdditionalRepositoryBaseParams
	Url                               string                  `json:"url"`
	Username                          string                  `json:"username,omitempty"`
	Password                          string                  `json:"password,omitempty"`
	Proxy                             string                  `json:"proxy,omitempty"`
	HardFail                          *bool                   `json:"hardFail,omitempty"`
	Offline                           *bool                   `json:"offline,omitempty"`
	StoreArtifactsLocally             *bool                   `json:"storeArtifactsLocally,omitempty"`
	SocketTimeoutMillis               int                     `json:"socketTimeoutMillis,omitempty"`
	LocalAddress                      string                  `json:"localAddress,omitempty"`
	RetrievalCachePeriodSecs          int                     `json:"retrievalCachePeriodSecs,omitempty"`
	MetadataRetrievalTimeoutSecs      int                     `json:"metadataRetrievalTimeoutSecs,omitempty"`
	MissedRetrievalCachePeriodSecs    int                     `json:"missedRetrievalCachePeriodSecs,omitempty"`
	UnusedArtifactsCleanupPeriodHours int                     `json:"unusedArtifactsCleanupPeriodHours,omitempty"`
	AssumedOfflinePeriodSecs          int                     `json:"assumedOfflinePeriodSecs,omitempty"`
	ShareConfiguration                *bool                   `json:"shareConfiguration,omitempty"`
	SynchronizeProperties             *bool                   `json:"synchronizeProperties,omitempty"`
	BlockMismatchingMimeTypes         *bool                   `json:"blockMismatchingMimeTypes,omitempty"`
	MismatchingMimeTypesOverrideList  string                  `json:"mismatchingMimeTypesOverrideList,omitempty"`
	AllowAnyHostAuth                  *bool                   `json:"allowAnyHostAuth,omitempty"`
	EnableCookieManagement            *bool                   `json:"enableCookieManagement,omitempty"`
	BypassHeadRequests                *bool                   `json:"bypassHeadRequests,omitempty"`
	ClientTlsCertificate              string                  `json:"clientTlsCertificate,omitempty"`
	ContentSynchronisation            *ContentSynchronisation `json:"contentSynchronisation,omitempty"`
}

func NewRemoteRepositoryBaseParams added in v0.21.0

func NewRemoteRepositoryBaseParams() RemoteRepositoryBaseParams

func NewRemoteRepositoryPackageParams added in v1.3.0

func NewRemoteRepositoryPackageParams(packageType string) RemoteRepositoryBaseParams

type RemoteRepositoryService added in v0.9.0

type RemoteRepositoryService struct {
	RepositoryService
}

func NewRemoteRepositoryService added in v0.9.0

func NewRemoteRepositoryService(client *jfroghttpclient.JfrogHttpClient, isUpdate bool) *RemoteRepositoryService

func (*RemoteRepositoryService) Alpine added in v1.3.0

func (*RemoteRepositoryService) Bower added in v0.9.0

func (*RemoteRepositoryService) Cargo added in v1.3.0

func (*RemoteRepositoryService) Chef added in v0.9.0

func (*RemoteRepositoryService) Cocoapods added in v0.9.0

func (*RemoteRepositoryService) Composer added in v0.9.0

func (*RemoteRepositoryService) Conan added in v0.9.0

func (*RemoteRepositoryService) Conda added in v0.9.0

func (*RemoteRepositoryService) Cran added in v0.9.0

func (*RemoteRepositoryService) Debian added in v0.9.0

func (*RemoteRepositoryService) Docker added in v0.9.0

func (*RemoteRepositoryService) Gems added in v0.9.0

func (*RemoteRepositoryService) Generic added in v0.9.0

func (*RemoteRepositoryService) GetJfrogHttpClient added in v0.9.0

func (rrs *RemoteRepositoryService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*RemoteRepositoryService) Gitlfs added in v0.9.0

func (*RemoteRepositoryService) Go added in v0.9.0

func (*RemoteRepositoryService) Gradle added in v0.9.0

func (*RemoteRepositoryService) Helm added in v0.9.0

func (*RemoteRepositoryService) Ivy added in v0.9.0

func (*RemoteRepositoryService) Maven added in v0.9.0

func (*RemoteRepositoryService) Npm added in v0.9.0

func (*RemoteRepositoryService) Nuget added in v0.9.0

func (*RemoteRepositoryService) Opkg added in v0.9.0

func (*RemoteRepositoryService) P2 added in v0.9.0

func (*RemoteRepositoryService) Puppet added in v0.9.0

func (*RemoteRepositoryService) Pypi added in v0.9.0

func (*RemoteRepositoryService) Rpm added in v0.9.0

func (*RemoteRepositoryService) Sbt added in v0.9.0

func (*RemoteRepositoryService) Vcs added in v0.9.0

func (*RemoteRepositoryService) Yum added in v0.9.0

type RepositoriesFilterParams added in v0.21.0

type RepositoriesFilterParams struct {
	RepoType    string
	PackageType string
}

func NewRepositoriesFilterParams added in v0.21.0

func NewRepositoriesFilterParams() RepositoriesFilterParams

type RepositoriesService added in v0.21.0

type RepositoriesService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewRepositoriesService added in v0.21.0

func NewRepositoriesService(client *jfroghttpclient.JfrogHttpClient) *RepositoriesService

func (*RepositoriesService) CreateFederated added in v1.3.0

func (rs *RepositoriesService) CreateFederated(params FederatedRepositoryBaseParams) error

func (*RepositoriesService) CreateLocal added in v0.21.0

func (rs *RepositoriesService) CreateLocal(params LocalRepositoryBaseParams) error

func (*RepositoriesService) CreateRemote added in v0.21.0

func (rs *RepositoriesService) CreateRemote(params RemoteRepositoryBaseParams) error

func (*RepositoriesService) CreateVirtual added in v0.21.0

func (rs *RepositoriesService) CreateVirtual(params VirtualRepositoryBaseParams) error

func (*RepositoriesService) Get added in v0.21.0

func (rs *RepositoriesService) Get(repoKey string, repoDetails interface{}) error

Get fetches repository details from Artifactory using given repokey (name) into the given params struct. The function expects to get the repo key and a pointer to a param struct that will be filled up. The param struct should contain the desired param's fields corresponded to the Artifactory REST API, such as RepositoryDetails, LocalRepositoryBaseParams, etc.

func (*RepositoriesService) GetAll added in v0.21.0

func (rs *RepositoriesService) GetAll() (*[]RepositoryDetails, error)

func (*RepositoriesService) GetWithFilter added in v0.21.0

func (rs *RepositoriesService) GetWithFilter(params RepositoriesFilterParams) (*[]RepositoryDetails, error)

func (*RepositoriesService) IsExists added in v1.8.0

func (rs *RepositoriesService) IsExists(repoKey string) (exists bool, err error)

type RepositoryBaseParams added in v1.3.0

type RepositoryBaseParams struct {
	Rclass          string   `json:"rclass"`
	Key             string   `json:"key,omitempty"`
	ProjectKey      string   `json:"projectKey,omitempty"`
	Environments    []string `json:"environments,omitempty"`
	PackageType     string   `json:"packageType,omitempty"`
	Description     string   `json:"description,omitempty"`
	Notes           string   `json:"notes,omitempty"`
	IncludesPattern string   `json:"includesPattern,omitempty"`
	ExcludesPattern string   `json:"excludesPattern,omitempty"`
	RepoLayoutRef   string   `json:"repoLayoutRef,omitempty"`
}

type RepositoryDetails added in v0.10.0

type RepositoryDetails struct {
	Key         string
	Rclass      string
	Type        string
	Description string
	Url         string
	PackageType string
}

func (RepositoryDetails) GetRepoType added in v0.21.0

func (rd RepositoryDetails) GetRepoType() string

type RepositoryService added in v1.3.0

type RepositoryService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewRepositoryService added in v1.3.0

func NewRepositoryService(repoType string, client *jfroghttpclient.JfrogHttpClient, isUpdate bool) *RepositoryService

func (*RepositoryService) GetJfrogHttpClient added in v1.3.0

func (rs *RepositoryService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

type RevokeTokenParams added in v0.7.0

type RevokeTokenParams struct {
	Token   string
	TokenId string
}

func NewRevokeTokenParams added in v0.7.0

func NewRevokeTokenParams() RevokeTokenParams

type RpmFederatedRepositoryParams added in v1.3.0

type RpmFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	RpmRepositoryParams
}

func NewRpmFederatedRepositoryParams added in v1.3.0

func NewRpmFederatedRepositoryParams() RpmFederatedRepositoryParams

type RpmLocalRepositoryParams added in v0.9.0

type RpmLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	RpmRepositoryParams
}

func NewRpmLocalRepositoryParams added in v0.9.0

func NewRpmLocalRepositoryParams() RpmLocalRepositoryParams

type RpmRemoteRepositoryParams added in v0.9.0

type RpmRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool `json:"listRemoteFolderItems,omitempty"`
}

func NewRpmRemoteRepositoryParams added in v0.9.0

func NewRpmRemoteRepositoryParams() RpmRemoteRepositoryParams

type RpmRepositoryParams added in v1.3.0

type RpmRepositoryParams struct {
	YumRootDepth            int    `json:"yumRootDepth,omitempty"`
	CalculateYumMetadata    *bool  `json:"calculateYumMetadata,omitempty"`
	EnableFileListsIndexing *bool  `json:"enableFileListsIndexing,omitempty"`
	YumGroupFileNames       string `json:"yumGroupFileNames,omitempty"`
}

type RpmVirtualRepositoryParams added in v0.9.0

type RpmVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewRpmVirtualRepositoryParams added in v0.9.0

func NewRpmVirtualRepositoryParams() RpmVirtualRepositoryParams

type SbtFederatedRepositoryParams added in v1.3.0

type SbtFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewSbtFederatedRepositoryParams added in v1.3.0

func NewSbtFederatedRepositoryParams() SbtFederatedRepositoryParams

type SbtLocalRepositoryParams added in v0.9.0

type SbtLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	JavaPackageManagersRepositoryParams
}

func NewSbtLocalRepositoryParams added in v0.9.0

func NewSbtLocalRepositoryParams() SbtLocalRepositoryParams

type SbtRemoteRepositoryParams added in v0.9.0

type SbtRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	JavaPackageManagersRemoteRepositoryParams
}

func NewSbtRemoteRepositoryParams added in v0.9.0

func NewSbtRemoteRepositoryParams() SbtRemoteRepositoryParams

type SbtVirtualRepositoryParams added in v0.9.0

type SbtVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonJavaVirtualRepositoryParams
}

func NewSbtVirtualRepositoryParams added in v0.9.0

func NewSbtVirtualRepositoryParams() SbtVirtualRepositoryParams

type SearchParams added in v0.1.3

type SearchParams struct {
	*utils.CommonParams
}

func NewSearchParams added in v0.1.3

func NewSearchParams() SearchParams

func (*SearchParams) GetFile added in v0.1.3

func (s *SearchParams) GetFile() *utils.CommonParams

type SearchService

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

func NewSearchService

func NewSearchService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *SearchService

func (*SearchService) GetArtifactoryDetails

func (s *SearchService) GetArtifactoryDetails() auth.ServiceDetails

func (*SearchService) GetJfrogHttpClient

func (s *SearchService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*SearchService) IsDryRun

func (s *SearchService) IsDryRun() bool

func (*SearchService) Search

func (s *SearchService) Search(searchParams SearchParams) (*content.ContentReader, error)

type SecurityService added in v0.7.0

type SecurityService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewSecurityService added in v0.7.0

func NewSecurityService(client *jfroghttpclient.JfrogHttpClient) *SecurityService

func (*SecurityService) CreateAPIKey added in v0.21.0

func (ss *SecurityService) CreateAPIKey() (string, error)

Create an API key for the current user. Returns an error if API key already exists - use regenerate API key instead.

func (*SecurityService) CreateToken added in v0.7.0

func (*SecurityService) GetAPIKey added in v0.21.0

func (ss *SecurityService) GetAPIKey() (string, error)

Returns empty string if API Key wasn't generated.

func (*SecurityService) GetTokens added in v0.7.0

func (ss *SecurityService) GetTokens() (GetTokensResponseData, error)

func (*SecurityService) GetUserTokens added in v0.21.0

func (ss *SecurityService) GetUserTokens(username string) ([]string, error)

func (*SecurityService) RefreshToken added in v0.7.0

func (*SecurityService) RegenerateAPIKey added in v0.8.0

func (ss *SecurityService) RegenerateAPIKey() (string, error)

RegenerateAPIKey regenerates the API Key in Artifactory

func (*SecurityService) RevokeToken added in v0.7.0

func (ss *SecurityService) RevokeToken(params RevokeTokenParams) (string, error)

type SystemService added in v0.10.0

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

func NewSystemService added in v0.10.0

func NewSystemService(artDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *SystemService

func (*SystemService) GetArtifactoryDetails added in v0.10.0

func (ss *SystemService) GetArtifactoryDetails() auth.ServiceDetails

func (*SystemService) GetJfrogHttpClient added in v0.10.0

func (ss *SystemService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*SystemService) GetServiceId added in v0.10.0

func (ss *SystemService) GetServiceId() (string, error)

func (*SystemService) GetVersion added in v0.10.0

func (ss *SystemService) GetVersion() (string, error)

func (*SystemService) IsDryRun added in v0.10.0

func (ss *SystemService) IsDryRun() bool

type Token added in v0.21.0

type Token struct {
	Issuer      string `json:"issuer,omitempty"`
	Subject     string `json:"subject,omitempty"`
	Refreshable bool   `json:"refreshable,omitempty"`
	Expiry      int    `json:"expiry,omitempty"`
	TokenId     string `json:"token_id,omitempty"`
	IssuedAt    int    `json:"issued_at,omitempty"`
}

type UpdateReplicationParams added in v0.9.0

type UpdateReplicationParams struct {
	utils.ReplicationParams
}

func NewUpdateReplicationParams added in v0.9.0

func NewUpdateReplicationParams() UpdateReplicationParams

type UpdateReplicationService added in v0.9.0

type UpdateReplicationService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewUpdateReplicationService added in v0.9.0

func NewUpdateReplicationService(client *jfroghttpclient.JfrogHttpClient) *UpdateReplicationService

func (*UpdateReplicationService) GetJfrogHttpClient added in v0.9.0

func (rs *UpdateReplicationService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*UpdateReplicationService) UpdateReplication added in v0.9.0

func (rs *UpdateReplicationService) UpdateReplication(params UpdateReplicationParams) error

type UploadData

type UploadData struct {
	Artifact    clientutils.Artifact
	TargetProps *utils.Properties
	BuildProps  string
	IsDir       bool
}

type UploadDataHandlerFunc added in v1.8.0

type UploadDataHandlerFunc func(data UploadData)

type UploadParams

type UploadParams struct {
	*utils.CommonParams
	Deb                  string
	BuildProps           string
	Symlink              bool
	ExplodeArchive       bool
	Flat                 bool
	AddVcsProps          bool
	MinChecksumDeploy    int64
	ChecksumsCalcEnabled bool
	Archive              string
	// When using the 'archive' option for upload, we can control the target path inside the uploaded archive using placeholders. This operation determines the TargetPathInArchive value.
	TargetPathInArchive string
}

func DeepCopyUploadParams added in v1.8.0

func DeepCopyUploadParams(params *UploadParams) UploadParams

func NewUploadParams added in v0.1.3

func NewUploadParams() UploadParams

func (*UploadParams) GetDebian

func (up *UploadParams) GetDebian() string

func (*UploadParams) IsAddVcsProps added in v0.6.2

func (up *UploadParams) IsAddVcsProps() bool

func (*UploadParams) IsExplodeArchive

func (up *UploadParams) IsExplodeArchive() bool

func (*UploadParams) IsFlat

func (up *UploadParams) IsFlat() bool
func (up *UploadParams) IsSymlink() bool

type UploadService

type UploadService struct {
	Progress   ioutils.ProgressMgr
	ArtDetails auth.ServiceDetails
	DryRun     bool
	Threads    int
	// contains filtered or unexported fields
}

func NewUploadService

func NewUploadService(client *jfroghttpclient.JfrogHttpClient) *UploadService

func (*UploadService) CreateUploadAsZipFunc added in v1.8.0

func (us *UploadService) CreateUploadAsZipFunc(uploadResult *utils.Result, targetPath string, archiveData *ArchiveUploadData, errorsQueue *clientutils.ErrorsQueue) parallel.TaskFunc

func (*UploadService) GetJfrogHttpClient

func (us *UploadService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*UploadService) SetDryRun

func (us *UploadService) SetDryRun(isDryRun bool)

func (*UploadService) SetSaveSummary added in v0.20.1

func (us *UploadService) SetSaveSummary(saveSummary bool)

func (*UploadService) SetServiceDetails added in v0.10.0

func (us *UploadService) SetServiceDetails(artDetails auth.ServiceDetails)

func (*UploadService) SetThreads added in v0.4.0

func (us *UploadService) SetThreads(threads int)

func (*UploadService) UploadFiles

func (us *UploadService) UploadFiles(uploadParams ...UploadParams) (summary *utils.OperationSummary, err error)

type User added in v0.19.0

type User struct {
	Name                     string   `json:"name,omitempty" csv:"username,omitempty"`
	Email                    string   `json:"email,omitempty" csv:"email,omitempty"`
	Password                 string   `json:"password,omitempty" csv:"password,omitempty"`
	Admin                    *bool    `json:"admin,omitempty" csv:"admin,omitempty"`
	ProfileUpdatable         *bool    `json:"profileUpdatable,omitempty" csv:"profileUpdatable,omitempty"`
	DisableUIAccess          *bool    `json:"disableUIAccess,omitempty" csv:"disableUIAccess,omitempty"`
	InternalPasswordDisabled *bool    `json:"internalPasswordDisabled,omitempty" csv:"internalPasswordDisabled,omitempty"`
	LastLoggedIn             string   `json:"lastLoggedIn,omitempty" csv:"lastLoggedIn,omitempty"`
	Realm                    string   `json:"realm,omitempty" csv:"realm,omitempty"`
	Groups                   []string `json:"groups,omitempty" csv:"groups,omitempty"`
}

application/vnd.org.jfrog.artifactory.security.User+json

type UserParams added in v0.19.0

type UserParams struct {
	UserDetails     User
	ReplaceIfExists bool
}

func NewUserParams added in v0.19.0

func NewUserParams() UserParams

type UserService added in v0.19.0

type UserService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewUserService added in v0.19.0

func NewUserService(client *jfroghttpclient.JfrogHttpClient) *UserService

func (*UserService) CreateUser added in v0.19.0

func (us *UserService) CreateUser(params UserParams) error

func (*UserService) DeleteUser added in v0.19.0

func (us *UserService) DeleteUser(name string) error

func (*UserService) GetAllUsers added in v0.20.1

func (us *UserService) GetAllUsers() ([]*User, error)

func (*UserService) GetUser added in v0.19.0

func (us *UserService) GetUser(params UserParams) (u *User, err error)

func (*UserService) SetArtifactoryDetails added in v0.19.0

func (us *UserService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*UserService) UpdateUser added in v0.19.0

func (us *UserService) UpdateUser(params UserParams) error

type VagrantFederatedRepositoryParams added in v1.3.0

type VagrantFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
}

func NewVagrantFederatedRepositoryParams added in v1.3.0

func NewVagrantFederatedRepositoryParams() VagrantFederatedRepositoryParams

type VagrantLocalRepositoryParams added in v0.9.0

type VagrantLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewVagrantLocalRepositoryParams added in v0.9.0

func NewVagrantLocalRepositoryParams() VagrantLocalRepositoryParams

type VcsGitRemoteRepositoryParams added in v1.3.0

type VcsGitRemoteRepositoryParams struct {
	VcsType           string `json:"vcsType,omitempty"`
	VcsGitProvider    string `json:"vcsGitProvider,omitempty"`
	VcsGitDownloadUrl string `json:"vcsGitDownloadUrl,omitempty"`
}

type VcsRemoteRepositoryParams added in v0.9.0

type VcsRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	VcsGitRemoteRepositoryParams
	MaxUniqueSnapshots int `json:"maxUniqueSnapshots,omitempty"`
}

func NewVcsRemoteRepositoryParams added in v0.9.0

func NewVcsRemoteRepositoryParams() VcsRemoteRepositoryParams

type VirtualRepositoryBaseParams added in v0.9.0

type VirtualRepositoryBaseParams struct {
	RepositoryBaseParams
	KeyPairRefsRepositoryParams
	Repositories                                  []string `json:"repositories,omitempty"`
	ArtifactoryRequestsCanRetrieveRemoteArtifacts *bool    `json:"artifactoryRequestsCanRetrieveRemoteArtifacts,omitempty"`
	DefaultDeploymentRepo                         string   `json:"defaultDeploymentRepo,omitempty"`
}

func NewVirtualRepositoryBaseParams added in v0.21.0

func NewVirtualRepositoryBaseParams() VirtualRepositoryBaseParams

func NewVirtualRepositoryPackageParams added in v1.3.0

func NewVirtualRepositoryPackageParams(packageType string) VirtualRepositoryBaseParams

type VirtualRepositoryService added in v0.9.0

type VirtualRepositoryService struct {
	RepositoryService
}

func NewVirtualRepositoryService added in v0.9.0

func NewVirtualRepositoryService(client *jfroghttpclient.JfrogHttpClient, isUpdate bool) *VirtualRepositoryService

func (*VirtualRepositoryService) Alpine added in v1.3.0

func (*VirtualRepositoryService) Bower added in v0.9.0

func (*VirtualRepositoryService) Chef added in v0.9.0

func (*VirtualRepositoryService) Conan added in v0.9.0

func (*VirtualRepositoryService) Conda added in v0.9.0

func (*VirtualRepositoryService) Cran added in v0.9.0

func (*VirtualRepositoryService) Debian added in v0.9.0

func (*VirtualRepositoryService) Docker added in v0.9.0

func (*VirtualRepositoryService) Gems added in v0.9.0

func (*VirtualRepositoryService) Generic added in v0.9.0

func (*VirtualRepositoryService) GetJfrogHttpClient added in v0.9.0

func (vrs *VirtualRepositoryService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient

func (*VirtualRepositoryService) Gitlfs added in v0.9.0

func (*VirtualRepositoryService) Go added in v0.9.0

func (*VirtualRepositoryService) Gradle added in v0.9.0

func (*VirtualRepositoryService) Helm added in v0.9.0

func (*VirtualRepositoryService) Ivy added in v0.9.0

func (*VirtualRepositoryService) Maven added in v0.9.0

func (*VirtualRepositoryService) Npm added in v0.9.0

func (*VirtualRepositoryService) Nuget added in v0.9.0

func (*VirtualRepositoryService) P2 added in v0.9.0

func (*VirtualRepositoryService) Puppet added in v0.9.0

func (*VirtualRepositoryService) Pypi added in v0.9.0

func (*VirtualRepositoryService) Rpm added in v0.9.0

func (*VirtualRepositoryService) Sbt added in v0.9.0

func (*VirtualRepositoryService) Yum added in v0.9.0

type XrayScanBody

type XrayScanBody struct {
	BuildName   string `json:"buildName,omitempty"`
	BuildNumber string `json:"buildNumber,omitempty"`
	Project     string `json:"project,omitempty"`
	Context     string `json:"context,omitempty"`
}

type XrayScanParams

type XrayScanParams struct {
	BuildName   string
	BuildNumber string
	ProjectKey  string
}

func NewXrayScanParams added in v0.1.3

func NewXrayScanParams() XrayScanParams

func (*XrayScanParams) GetBuildName

func (bp *XrayScanParams) GetBuildName() string

func (*XrayScanParams) GetBuildNumber

func (bp *XrayScanParams) GetBuildNumber() string

func (*XrayScanParams) GetProjectKey added in v0.20.1

func (bp *XrayScanParams) GetProjectKey() string

type XrayScanService

type XrayScanService struct {
	ArtDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewXrayScanService

func NewXrayScanService(client *jfroghttpclient.JfrogHttpClient) *XrayScanService

func (*XrayScanService) ScanBuild

func (ps *XrayScanService) ScanBuild(scanParams XrayScanParams) ([]byte, error)

Deprecated legacy scan build. The new build scan command is in "/xray/commands/scan/buildscan"

type YumFederatedRepositoryParams added in v1.3.0

type YumFederatedRepositoryParams struct {
	FederatedRepositoryBaseParams
	RpmRepositoryParams
}

func NewYumFederatedRepositoryParams added in v1.3.0

func NewYumFederatedRepositoryParams() YumFederatedRepositoryParams

type YumLocalRepositoryParams added in v0.9.0

type YumLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	RpmRepositoryParams
}

func NewYumLocalRepositoryParams added in v0.9.0

func NewYumLocalRepositoryParams() YumLocalRepositoryParams

type YumRemoteRepositoryParams added in v0.9.0

type YumRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool `json:"listRemoteFolderItems,omitempty"`
}

func NewYumRemoteRepositoryParams added in v0.9.0

func NewYumRemoteRepositoryParams() YumRemoteRepositoryParams

type YumVirtualRepositoryParams added in v0.9.0

type YumVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	CommonCacheVirtualRepositoryParams
}

func NewYumVirtualRepositoryParams added in v0.9.0

func NewYumVirtualRepositoryParams() YumVirtualRepositoryParams

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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