services

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const APIKeyPath = "api/security/apiKey"
View Source
const SCAN_BUILD_API_URL = "api/xray/scanBuild"
View Source
const XRAY_FATAL_FAIL_STATUS = -1
View Source
const XRAY_SCAN_CONNECTION_TIMEOUT = 90 * time.Second // Expecting \r\n every 30 seconds
View Source
const XRAY_SCAN_RETRY_CONSECUTIVE_RETRIES = 10 // Retrying to resume the scan 10 times after a stable connection
View Source
const XRAY_SCAN_SLEEP_BETWEEN_RETRIES = 15 * time.Second // 15 seconds sleep between retry
View Source
const XRAY_SCAN_STABLE_CONNECTION_WINDOW = 100 * time.Second

Variables

This section is empty.

Functions

func SearchBySpecFiles

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

Types

type Actions

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

type AqlService

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

func NewAqlService

func NewAqlService(client *rthttpclient.ArtifactoryHttpClient) *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() (*rthttpclient.ArtifactoryHttpClient, error)

func (*AqlService) IsDryRun

func (s *AqlService) IsDryRun() bool

func (*AqlService) SetArtifactoryDetails

func (s *AqlService) SetArtifactoryDetails(rt auth.ServiceDetails)

type BowerLocalRepositoryParams

type BowerLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewBowerLocalRepositoryParams

func NewBowerLocalRepositoryParams() BowerLocalRepositoryParams

type BowerRemoteRepositoryParams

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

func NewBowerRemoteRepositoryParams

func NewBowerRemoteRepositoryParams() BowerRemoteRepositoryParams

type BowerVirtualRepositoryParams

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

func NewBowerVirtualRepositoryParams

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

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

type BuildInfoParams struct {
	BuildName   string
	BuildNumber string
}

func NewBuildInfoParams

func NewBuildInfoParams() BuildInfoParams

type BuildInfoService

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

func (*BuildInfoService) GetArtifactoryDetails

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

func (*BuildInfoService) GetBuildInfo

func (bis *BuildInfoService) GetBuildInfo(params BuildInfoParams) (*buildinfo.BuildInfo, error)

func (*BuildInfoService) GetJfrogHttpClient

func (bis *BuildInfoService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*BuildInfoService) IsDryRun

func (bis *BuildInfoService) IsDryRun() bool

func (*BuildInfoService) PublishBuildInfo

func (bis *BuildInfoService) PublishBuildInfo(build *buildinfo.BuildInfo) error

func (*BuildInfoService) SetArtifactoryDetails

func (bis *BuildInfoService) SetArtifactoryDetails(rt auth.ServiceDetails)

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"`
	DryRun              bool                `json:"dryRun,omitempty"`
	Properties          map[string][]string `json:"properties,omitempty"`
}

type ChefLocalRepositoryParams

type ChefLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewChefLocalRepositoryParams

func NewChefLocalRepositoryParams() ChefLocalRepositoryParams

type ChefRemoteRepositoryParams

type ChefRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewChefRemoteRepositoryParams

func NewChefRemoteRepositoryParams() ChefRemoteRepositoryParams

type ChefVirtualRepositoryParams

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

func NewChefVirtualRepositoryParams

func NewChefVirtualRepositoryParams() ChefVirtualRepositoryParams

type CocoapodsLocalRepositoryParams

type CocoapodsLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewCocoapodsLocalRepositoryParams

func NewCocoapodsLocalRepositoryParams() CocoapodsLocalRepositoryParams

type CocoapodsRemoteRepositoryParams

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

func NewCocoapodsRemoteRepositoryParams

func NewCocoapodsRemoteRepositoryParams() CocoapodsRemoteRepositoryParams

type CommonMavenGradleLocalRepositoryParams

type CommonMavenGradleLocalRepositoryParams 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 CommonMavenGradleRemoteRepositoryParams

type CommonMavenGradleRemoteRepositoryParams struct {
	FetchJarsEagerly             *bool  `json:"fetchJarsEagerly,omitempty"`
	FetchSourcesEagerly          *bool  `json:"fetchSourcesEagerly,omitempty"`
	RemoteRepoChecksumPolicyType string `json:"remoteRepoChecksumPolicyType,omitempty"`
	ListRemoteFolderItems        *bool  `json:"listRemoteFolderItems,omitempty"`
	HandleReleases               *bool  `json:"handleReleases,omitempty"`
	HandleSnapshots              *bool  `json:"handleSnapshots,omitempty"`
	SuppressPomConsistencyChecks *bool  `json:"suppressPomConsistencyChecks,omitempty"`
	RejectInvalidJars            *bool  `json:"rejectInvalidJars,omitempty"`
}

type CommonMavenGradleVirtualRepositoryParams

type CommonMavenGradleVirtualRepositoryParams struct {
	ForceMavenAuthentication             *bool  `json:"forceMavenAuthentication,omitempty"`
	PomRepositoryReferencesCleanupPolicy string `json:"pomRepositoryReferencesCleanupPolicy,omitempty"`
	KeyPair                              string `json:"keyPair,omitempty"`
}

type ComposerLocalRepositoryParams

type ComposerLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewComposerLocalRepositoryParams

func NewComposerLocalRepositoryParams() ComposerLocalRepositoryParams

type ComposerRemoteRepositoryParams

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

func NewComposerRemoteRepositoryParams

func NewComposerRemoteRepositoryParams() ComposerRemoteRepositoryParams

type ConanLocalRepositoryParams

type ConanLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewConanLocalRepositoryParams

func NewConanLocalRepositoryParams() ConanLocalRepositoryParams

type ConanRemoteRepositoryParams

type ConanRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewConanRemoteRepositoryParams

func NewConanRemoteRepositoryParams() ConanRemoteRepositoryParams

type ConanVirtualRepositoryParams

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

func NewConanVirtualRepositoryParams

func NewConanVirtualRepositoryParams() ConanVirtualRepositoryParams

type CondaRemoteRepositoryParams

type CondaRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewCondaRemoteRepositoryParams

func NewCondaRemoteRepositoryParams() CondaRemoteRepositoryParams

type CondaVirtualRepositoryParams

type CondaVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewCondaVirtualRepositoryParams

func NewCondaVirtualRepositoryParams() CondaVirtualRepositoryParams

type ContentSynchronisation

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

type CranLocalRepositoryParams

type CranLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewCranLocalRepositoryParams

func NewCranLocalRepositoryParams() CranLocalRepositoryParams

type CranRemoteRepositoryParams

type CranRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewCranRemoteRepositoryParams

func NewCranRemoteRepositoryParams() CranRemoteRepositoryParams

type CranVirtualRepositoryParams

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

func NewCranVirtualRepositoryParams

func NewCranVirtualRepositoryParams() CranVirtualRepositoryParams

type CreateReplicationParams

type CreateReplicationParams struct {
	utils.ReplicationParams
}

func NewCreateReplicationParams

func NewCreateReplicationParams() CreateReplicationParams

type CreateReplicationService

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

func (*CreateReplicationService) CreateReplication

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

func (*CreateReplicationService) GetJfrogHttpClient

type CreateTokenParams

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

func NewCreateTokenParams

func NewCreateTokenParams() CreateTokenParams

type CreateTokenResponseData

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 DebianLocalRepositoryParams

type DebianLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	DebianTrivialLayout *bool `json:"debianTrivialLayout,omitempty"`
}

func NewDebianLocalRepositoryParams

func NewDebianLocalRepositoryParams() DebianLocalRepositoryParams

type DebianRemoteRepositoryParams

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

func NewDebianRemoteRepositoryParams

func NewDebianRemoteRepositoryParams() DebianRemoteRepositoryParams

type DebianVirtualRepositoryParams

type DebianVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
	DebianTrivialLayout *bool `json:"debianTrivialLayout,omitempty"`
}

func NewDebianVirtualRepositoryParams

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.ArtifactoryCommonParams
}

func NewDeleteParams

func NewDeleteParams() DeleteParams

func (*DeleteParams) GetFile

func (*DeleteParams) SetIncludeDirs

func (ds *DeleteParams) SetIncludeDirs(includeDirs bool)

type DeleteReplicationService

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

func (*DeleteReplicationService) DeleteReplication

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

func (*DeleteReplicationService) GetJfrogHttpClient

func (drs *DeleteReplicationService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

type DeleteRepositoryService

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

func (*DeleteRepositoryService) Delete

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

func (*DeleteRepositoryService) GetJfrogHttpClient

func (drs *DeleteRepositoryService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

type DeleteService

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

func NewDeleteService

func NewDeleteService(client *rthttpclient.ArtifactoryHttpClient) *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() (*rthttpclient.ArtifactoryHttpClient, error)

func (*DeleteService) GetPathsToDelete

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

func (*DeleteService) GetThreads

func (ds *DeleteService) GetThreads() int

func (*DeleteService) IsDryRun

func (ds *DeleteService) IsDryRun() bool

func (*DeleteService) SetArtifactoryDetails

func (ds *DeleteService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*DeleteService) SetThreads

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
	MaxDays         string
	MaxBuilds       string
	ExcludeBuilds   string
	Async           bool
}

func NewDiscardBuildsParams

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) 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 (*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 (*DistributeService) BuildDistribute

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

type DockerLocalRepositoryParams

type DockerLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	MaxUniqueTags    int    `json:"maxUniqueTags,omitempty"`
	DockerApiVersion string `json:"dockerApiVersion,omitempty"`
}

func NewDockerLocalRepositoryParams

func NewDockerLocalRepositoryParams() DockerLocalRepositoryParams

type DockerPromoteBody

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

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

func NewDockerPromoteParams(sourceDockerImage, sourceRepo, targetRepo string) DockerPromoteParams

func (*DockerPromoteParams) GetSourceDockerImage

func (dp *DockerPromoteParams) GetSourceDockerImage() string

func (*DockerPromoteParams) GetSourceTag

func (dp *DockerPromoteParams) GetSourceTag() string

func (*DockerPromoteParams) GetTargetDockerRepository

func (dp *DockerPromoteParams) GetTargetDockerRepository() string

func (*DockerPromoteParams) GetTargetRepo

func (dp *DockerPromoteParams) GetTargetRepo() string

func (*DockerPromoteParams) GetTargetTag

func (dp *DockerPromoteParams) GetTargetTag() string

func (*DockerPromoteParams) IsCopy

func (dp *DockerPromoteParams) IsCopy() bool

type DockerPromoteService

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

func (*DockerPromoteService) GetArtifactoryDetails

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

func (*DockerPromoteService) GetJfrogHttpClient

func (ps *DockerPromoteService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*DockerPromoteService) IsDryRun

func (ps *DockerPromoteService) IsDryRun() bool

func (*DockerPromoteService) PromoteDocker

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

func (*DockerPromoteService) SetArtifactoryDetails

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

type DockerRemoteRepositoryParams

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

func NewDockerRemoteRepositoryParams

func NewDockerRemoteRepositoryParams() DockerRemoteRepositoryParams

type DockerVirtualRepositoryParams

type DockerVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewDockerVirtualRepositoryParams

func NewDockerVirtualRepositoryParams() DockerVirtualRepositoryParams

type DownloadData

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

type DownloadParams

type DownloadParams struct {
	*utils.ArtifactoryCommonParams
	Symlink         bool
	ValidateSymlink bool
	Flat            bool
	Explode         bool
	MinSplitSize    int64
	SplitCount      int
	Retries         int
}

func NewDownloadParams

func NewDownloadParams() DownloadParams

func (*DownloadParams) GetFile

func (*DownloadParams) GetRetries

func (ds *DownloadParams) GetRetries() int

func (*DownloadParams) IsExplode

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.Progress
	ArtDetails   auth.ServiceDetails
	DryRun       bool
	Threads      int
	ResultWriter *content.ContentWriter
	// contains filtered or unexported fields
}

func (*DownloadService) DownloadFiles

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

func (*DownloadService) GetArtifactoryDetails

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

func (*DownloadService) GetJfrogHttpClient

func (ds *DownloadService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*DownloadService) GetThreads

func (ds *DownloadService) GetThreads() int

func (*DownloadService) IsDryRun

func (ds *DownloadService) IsDryRun() bool

func (*DownloadService) SetArtifactoryDetails

func (ds *DownloadService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*DownloadService) SetDryRun

func (ds *DownloadService) SetDryRun(isDryRun bool)

func (*DownloadService) SetServiceDetails

func (ds *DownloadService) SetServiceDetails(artDetails auth.ServiceDetails)

func (*DownloadService) SetThreads

func (ds *DownloadService) SetThreads(threads int)

type GemsLocalRepositoryParams

type GemsLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGemsLocalRepositoryParams

func NewGemsLocalRepositoryParams() GemsLocalRepositoryParams

type GemsRemoteRepositoryParams

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

func NewGemsRemoteRepositoryParams

func NewGemsRemoteRepositoryParams() GemsRemoteRepositoryParams

type GemsVirtualRepositoryParams

type GemsVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewGemsVirtualRepositoryParams

func NewGemsVirtualRepositoryParams() GemsVirtualRepositoryParams

type GenericLocalRepositoryParams

type GenericLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGenericLocalRepositoryParams

func NewGenericLocalRepositoryParams() GenericLocalRepositoryParams

type GenericRemoteRepositoryParams

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

func NewGenericRemoteRepositoryParams

func NewGenericRemoteRepositoryParams() GenericRemoteRepositoryParams

type GenericVirtualRepositoryParams

type GenericVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewGenericVirtualRepositoryParams

func NewGenericVirtualRepositoryParams() GenericVirtualRepositoryParams

type GetReplicationService

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

func (*GetReplicationService) GetJfrogHttpClient

func (drs *GetReplicationService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

func (*GetReplicationService) GetReplication

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

type GetRepositoryService

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

func (*GetRepositoryService) Get

func (grs *GetRepositoryService) Get(repoKey string) (*RepositoryDetails, error)

type GetTokensResponseData

type GetTokensResponseData struct {
	Tokens []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 GitLfsCleanParams

type GitLfsCleanParams struct {
	Refs    string
	Repo    string
	GitPath string
}

func NewGitLfsCleanParams

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 {
	ArtDetails auth.ServiceDetails
	DryRun     bool
	// contains filtered or unexported fields
}

func (*GitLfsCleanService) GetArtifactoryDetails

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

func (*GitLfsCleanService) GetJfrogHttpClient

func (glc *GitLfsCleanService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*GitLfsCleanService) GetUnreferencedGitLfsFiles

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

func (*GitLfsCleanService) IsDryRun

func (glc *GitLfsCleanService) IsDryRun() bool

func (*GitLfsCleanService) SetArtifactoryDetails

func (glc *GitLfsCleanService) SetArtifactoryDetails(art auth.ServiceDetails)

type GitlfsLocalRepositoryParams

type GitlfsLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGitlfsLocalRepositoryParams

func NewGitlfsLocalRepositoryParams() GitlfsLocalRepositoryParams

type GitlfsRemoteRepositoryParams

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

func NewGitlfsRemoteRepositoryParams

func NewGitlfsRemoteRepositoryParams() GitlfsRemoteRepositoryParams

type GitlfsVirtualRepositoryParams

type GitlfsVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewGitlfsVirtualRepositoryParams

func NewGitlfsVirtualRepositoryParams() GitlfsVirtualRepositoryParams

type GoLocalRepositoryParams

type GoLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewGoLocalRepositoryParams

func NewGoLocalRepositoryParams() GoLocalRepositoryParams

type GoRemoteRepositoryParams

type GoRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewGoRemoteRepositoryParams

func NewGoRemoteRepositoryParams() GoRemoteRepositoryParams

type GoVirtualRepositoryParams

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

func NewGoVirtualRepositoryParams

func NewGoVirtualRepositoryParams() GoVirtualRepositoryParams

type HelmLocalRepositoryParams

type HelmLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewHelmLocalRepositoryParams

func NewHelmLocalRepositoryParams() HelmLocalRepositoryParams

type HelmRemoteRepositoryParams

type HelmRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewHelmRemoteRepositoryParams

func NewHelmRemoteRepositoryParams() HelmRemoteRepositoryParams

type HelmVirtualRepositoryParams

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

func NewHelmVirtualRepositoryParams

func NewHelmVirtualRepositoryParams() HelmVirtualRepositoryParams

type IvyLocalRepositoryParams

type IvyLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewIvyLocalRepositoryParams

func NewIvyLocalRepositoryParams() IvyLocalRepositoryParams

type IvyRemoteRepositoryParams

type IvyRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewIvyRemoteRepositoryParams

func NewIvyRemoteRepositoryParams() IvyRemoteRepositoryParams

type IvyVirtualRepositoryParams

type IvyVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewIvyVirtualRepositoryParams

func NewIvyVirtualRepositoryParams() IvyVirtualRepositoryParams

type LocalRepositoryBaseParams

type LocalRepositoryBaseParams struct {
	Key                             string   `json:"key,omitempty"`
	Rclass                          string   `json:"rclass"`
	PackageType                     string   `json:"packageType,omitempty"`
	Description                     string   `json:"description,omitempty"`
	Notes                           string   `json:"notes,omitempty"`
	IncludesPattern                 string   `json:"includesPattern,omitempty"`
	ExcludesPattern                 string   `json:"excludesPattern,omitempty"`
	RepoLayoutRef                   string   `json:"repoLayoutRef,omitempty"`
	BlackedOut                      *bool    `json:"blackedOut,omitempty"`
	XrayIndex                       *bool    `json:"xrayIndex,omitempty"`
	PropertySets                    []string `json:"propertySets,omitempty"`
	ArchiveBrowsingEnabled          *bool    `json:"archiveBrowsingEnabled,omitempty"`
	OptionalIndexCompressionFormats []string `json:"optionalIndexCompressionFormats,omitempty"`
	DownloadRedirect                *bool    `json:"downloadRedirect,omitempty"`
	BlockPushingSchema1             *bool    `json:"blockPushingSchema1,omitempty"`
}

type LocalRepositoryService

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

func NewLocalRepositoryService

func NewLocalRepositoryService(client *rthttpclient.ArtifactoryHttpClient, isUpdate bool) *LocalRepositoryService

func (*LocalRepositoryService) Bower

func (*LocalRepositoryService) Chef

func (*LocalRepositoryService) Cocoapods

func (*LocalRepositoryService) Composer

func (*LocalRepositoryService) Conan

func (*LocalRepositoryService) Cran

func (*LocalRepositoryService) Debian

func (*LocalRepositoryService) Docker

func (*LocalRepositoryService) Gems

func (*LocalRepositoryService) Generic

func (*LocalRepositoryService) GetJfrogHttpClient

func (lrs *LocalRepositoryService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

func (*LocalRepositoryService) Gitlfs

func (*LocalRepositoryService) Go

func (*LocalRepositoryService) Gradle

func (*LocalRepositoryService) Helm

func (*LocalRepositoryService) Ivy

func (*LocalRepositoryService) Maven

func (*LocalRepositoryService) Npm

func (*LocalRepositoryService) Nuget

func (*LocalRepositoryService) Opkg

func (*LocalRepositoryService) Puppet

func (*LocalRepositoryService) Pypi

func (*LocalRepositoryService) Rpm

func (*LocalRepositoryService) Sbt

func (*LocalRepositoryService) Vagrant

func (*LocalRepositoryService) Yum

type MoveCopyParams

type MoveCopyParams struct {
	*utils.ArtifactoryCommonParams
	Flat bool
}

func NewMoveCopyParams

func NewMoveCopyParams() MoveCopyParams

func (*MoveCopyParams) GetFile

func (*MoveCopyParams) IsFlat

func (mc *MoveCopyParams) IsFlat() bool

func (*MoveCopyParams) SetIncludeDir

func (mc *MoveCopyParams) SetIncludeDir(isIncludeDir bool)

type MoveCopyService

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

func NewMoveCopyService

func NewMoveCopyService(client *rthttpclient.ArtifactoryHttpClient, moveType MoveType) *MoveCopyService

func (*MoveCopyService) GetArtifactoryDetails

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

func (*MoveCopyService) GetJfrogHttpClient

func (mc *MoveCopyService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*MoveCopyService) IsDryRun

func (mc *MoveCopyService) IsDryRun() bool

func (*MoveCopyService) MoveCopyServiceMoveFilesWrapper

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

func (*MoveCopyService) SetArtifactoryDetails

func (mc *MoveCopyService) SetArtifactoryDetails(rt auth.ServiceDetails)

type MoveOptions

type MoveOptions struct {
	MovingMsg string
	MovedMsg  string
}

type MoveType

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

type NpmLocalRepositoryParams

type NpmLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewNpmLocalRepositoryParams

func NewNpmLocalRepositoryParams() NpmLocalRepositoryParams

type NpmRemoteRepositoryParams

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

func NewNpmRemoteRepositoryParams

func NewNpmRemoteRepositoryParams() NpmRemoteRepositoryParams

type NpmVirtualRepositoryParams

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

func NewNpmVirtualRepositoryParams

func NewNpmVirtualRepositoryParams() NpmVirtualRepositoryParams

type NugetLocalRepositoryParams

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

func NewNugetLocalRepositoryParams

func NewNugetLocalRepositoryParams() NugetLocalRepositoryParams

type NugetRemoteRepositoryParams

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

func NewNugetRemoteRepositoryParams() NugetRemoteRepositoryParams

type NugetVirtualRepositoryParams

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

func NewNugetVirtualRepositoryParams

func NewNugetVirtualRepositoryParams() NugetVirtualRepositoryParams

type OpkgLocalRepositoryParams

type OpkgLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewOpkgLocalRepositoryParams

func NewOpkgLocalRepositoryParams() OpkgLocalRepositoryParams

type OpkgRemoteRepositoryParams

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

func NewOpkgRemoteRepositoryParams

func NewOpkgRemoteRepositoryParams() OpkgRemoteRepositoryParams

type P2RemoteRepositoryParams

type P2RemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewP2RemoteRepositoryParams

func NewP2RemoteRepositoryParams() P2RemoteRepositoryParams

type P2VirtualRepositoryParams

type P2VirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewP2VirtualRepositoryParams

func NewP2VirtualRepositoryParams() P2VirtualRepositoryParams

type PermissionTargetParams

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

func NewPermissionTargetParams

func NewPermissionTargetParams() PermissionTargetParams

type PermissionTargetSection

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

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

func (*PermissionTargetService) Create

func (*PermissionTargetService) Delete

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

func (*PermissionTargetService) GetJfrogHttpClient

func (pts *PermissionTargetService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

func (*PermissionTargetService) Update

type PingService

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

func NewPingService

func NewPingService(client *rthttpclient.ArtifactoryHttpClient) *PingService

func (*PingService) GetArtifactoryDetails

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

func (*PingService) GetJfrogHttpClient

func (ps *PingService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*PingService) IsDryRun

func (ps *PingService) IsDryRun() bool

func (*PingService) Ping

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

func (*PingService) SetArtifactoryDetails

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

type PromoteService

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

func NewPromotionService

func NewPromotionService(client *rthttpclient.ArtifactoryHttpClient) *PromoteService

func (*PromoteService) BuildPromote

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

type PromotionParams

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

func NewPromotionParams

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

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

func (bp *PromotionParams) IsIncludeDependencies() bool

type PropsParams

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

func NewPropsParams

func NewPropsParams() PropsParams

func (*PropsParams) GetProps

func (sp *PropsParams) GetProps() string

func (*PropsParams) GetReader

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 *rthttpclient.ArtifactoryHttpClient) *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 PuppetLocalRepositoryParams

type PuppetLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewPuppetLocalRepositoryParams

func NewPuppetLocalRepositoryParams() PuppetLocalRepositoryParams

type PuppetRemoteRepositoryParams

type PuppetRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewPuppetRemoteRepositoryParams

func NewPuppetRemoteRepositoryParams() PuppetRemoteRepositoryParams

type PuppetVirtualRepositoryParams

type PuppetVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewPuppetVirtualRepositoryParams

func NewPuppetVirtualRepositoryParams() PuppetVirtualRepositoryParams

type PypiLocalRepositoryParams

type PypiLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewPypiLocalRepositoryParams

func NewPypiLocalRepositoryParams() PypiLocalRepositoryParams

type PypiRemoteRepositoryParams

type PypiRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	ListRemoteFolderItems *bool  `json:"listRemoteFolderItems,omitempty"`
	PypiRegistryUrl       string `json:"pypiRegistryUrl,omitempty"`
}

func NewPypiRemoteRepositoryParams

func NewPypiRemoteRepositoryParams() PypiRemoteRepositoryParams

type PypiVirtualRepositoryParams

type PypiVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewPypiVirtualRepositoryParams

func NewPypiVirtualRepositoryParams() PypiVirtualRepositoryParams

type ReadFileService

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

func (*ReadFileService) GetArtifactoryDetails

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

func (*ReadFileService) GetJfrogHttpClient

func (ds *ReadFileService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*ReadFileService) IsDryRun

func (ds *ReadFileService) IsDryRun() bool

func (*ReadFileService) ReadRemoteFile

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

func (*ReadFileService) SetArtifactoryDetails

func (ds *ReadFileService) SetArtifactoryDetails(rt auth.ServiceDetails)

func (*ReadFileService) SetDryRun

func (ds *ReadFileService) SetDryRun(isDryRun bool)

func (*ReadFileService) SetServiceDetails

func (ds *ReadFileService) SetServiceDetails(artDetails auth.ServiceDetails)

type RefreshTokenParams

type RefreshTokenParams struct {
	Token        CreateTokenParams
	RefreshToken string
	AccessToken  string
}

func NewRefreshTokenParams

func NewRefreshTokenParams() RefreshTokenParams

type RemoteRepositoryBaseParams

type RemoteRepositoryBaseParams struct {
	Key                               string                  `json:"key,omitempty"`
	Rclass                            string                  `json:"rclass"`
	PackageType                       string                  `json:"packageType,omitempty"`
	Url                               string                  `json:"url"`
	Username                          string                  `json:"username,omitempty"`
	Password                          string                  `json:"password,omitempty"`
	Proxy                             string                  `json:"proxy,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"`
	HardFail                          *bool                   `json:"hardFail,omitempty"`
	Offline                           *bool                   `json:"offline,omitempty"`
	BlackedOut                        *bool                   `json:"blackedOut,omitempty"`
	StoreArtifactsLocally             *bool                   `json:"storeArtifactsLocally,omitempty"`
	SocketTimeoutMillis               int                     `json:"socketTimeoutMillis,omitempty"`
	LocalAddress                      string                  `json:"localAddress,omitempty"`
	RetrievalCachePeriodSecs          int                     `json:"retrievalCachePeriodSecs,omitempty"`
	FailedRetrievalCachePeriodSecs    int                     `json:"failedRetrievalCachePeriodSecs,omitempty"`
	MissedRetrievalCachePeriodSecs    int                     `json:"missedRetrievalCachePeriodSecs,omitempty"`
	UnusedArtifactsCleanupEnabled     *bool                   `json:"unusedArtifactsCleanupEnabled,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"`
	PropertySets                      []string                `json:"propertySets,omitempty"`
	AllowAnyHostAuth                  *bool                   `json:"allowAnyHostAuth,omitempty"`
	EnableCookieManagement            *bool                   `json:"enableCookieManagement,omitempty"`
	BypassHeadRequests                *bool                   `json:"bypassHeadRequests,omitempty"`
	ClientTlsCertificate              string                  `json:"clientTlsCertificate,omitempty"`
	BlockPushingSchema1               *bool                   `json:"blockPushingSchema1,omitempty"`
	ContentSynchronisation            *ContentSynchronisation `json:"contentSynchronisation,omitempty"`
}

type RemoteRepositoryService

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

func NewRemoteRepositoryService

func NewRemoteRepositoryService(client *rthttpclient.ArtifactoryHttpClient, isUpdate bool) *RemoteRepositoryService

func (*RemoteRepositoryService) Bower

func (*RemoteRepositoryService) Chef

func (*RemoteRepositoryService) Cocoapods

func (*RemoteRepositoryService) Composer

func (*RemoteRepositoryService) Conan

func (*RemoteRepositoryService) Conda

func (*RemoteRepositoryService) Cran

func (*RemoteRepositoryService) Debian

func (*RemoteRepositoryService) Docker

func (*RemoteRepositoryService) Gems

func (*RemoteRepositoryService) Generic

func (*RemoteRepositoryService) GetJfrogHttpClient

func (rrs *RemoteRepositoryService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

func (*RemoteRepositoryService) Gitlfs

func (*RemoteRepositoryService) Go

func (*RemoteRepositoryService) Gradle

func (*RemoteRepositoryService) Helm

func (*RemoteRepositoryService) Ivy

func (*RemoteRepositoryService) Maven

func (*RemoteRepositoryService) Npm

func (*RemoteRepositoryService) Nuget

func (*RemoteRepositoryService) Opkg

func (*RemoteRepositoryService) P2

func (*RemoteRepositoryService) Puppet

func (*RemoteRepositoryService) Pypi

func (*RemoteRepositoryService) Rpm

func (*RemoteRepositoryService) Sbt

func (*RemoteRepositoryService) Vcs

func (*RemoteRepositoryService) Yum

type RepositoryDetails

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

type RevokeTokenParams

type RevokeTokenParams struct {
	Token   string
	TokenId string
}

func NewRevokeTokenParams

func NewRevokeTokenParams() RevokeTokenParams

type RpmLocalRepositoryParams

type RpmLocalRepositoryParams struct {
	LocalRepositoryBaseParams
	YumRootDepth            int   `json:"yumRootDepth,omitempty"`
	CalculateYumMetadata    *bool `json:"calculateYumMetadata,omitempty"`
	EnableFileListsIndexing *bool `json:"enableFileListsIndexing,omitempty"`
}

func NewRpmLocalRepositoryParams

func NewRpmLocalRepositoryParams() RpmLocalRepositoryParams

type RpmRemoteRepositoryParams

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

func NewRpmRemoteRepositoryParams

func NewRpmRemoteRepositoryParams() RpmRemoteRepositoryParams

type RpmVirtualRepositoryParams

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

func NewRpmVirtualRepositoryParams

func NewRpmVirtualRepositoryParams() RpmVirtualRepositoryParams

type SbtLocalRepositoryParams

type SbtLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewSbtLocalRepositoryParams

func NewSbtLocalRepositoryParams() SbtLocalRepositoryParams

type SbtRemoteRepositoryParams

type SbtRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewSbtRemoteRepositoryParams

func NewSbtRemoteRepositoryParams() SbtRemoteRepositoryParams

type SbtVirtualRepositoryParams

type SbtVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewSbtVirtualRepositoryParams

func NewSbtVirtualRepositoryParams() SbtVirtualRepositoryParams

type SearchParams

type SearchParams struct {
	*utils.ArtifactoryCommonParams
}

func NewSearchParams

func NewSearchParams() SearchParams

func (*SearchParams) GetFile

type SearchService

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

func NewSearchService

func NewSearchService(client *rthttpclient.ArtifactoryHttpClient) *SearchService

func (*SearchService) GetArtifactoryDetails

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

func (*SearchService) GetJfrogHttpClient

func (s *SearchService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*SearchService) IsDryRun

func (s *SearchService) IsDryRun() bool

func (*SearchService) Search

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

func (*SearchService) SetArtifactoryDetails

func (s *SearchService) SetArtifactoryDetails(rt auth.ServiceDetails)

type SecurityService

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

func (*SecurityService) CreateToken

func (*SecurityService) GetTokens

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

func (*SecurityService) RefreshToken

func (*SecurityService) RegenerateAPIKey

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

RegenerateAPIKey regenerates the API Key in Artifactory

func (*SecurityService) RevokeToken

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

type SystemService

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

func NewSystemService

func NewSystemService(client *rthttpclient.ArtifactoryHttpClient) *SystemService

func (*SystemService) GetArtifactoryDetails

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

func (*SystemService) GetJfrogHttpClient

func (ss *SystemService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error)

func (*SystemService) GetServiceId

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

func (*SystemService) GetVersion

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

func (*SystemService) IsDryRun

func (ss *SystemService) IsDryRun() bool

func (*SystemService) SetArtifactoryDetails

func (ss *SystemService) SetArtifactoryDetails(rt auth.ServiceDetails)

type UpdateReplicationParams

type UpdateReplicationParams struct {
	utils.ReplicationParams
}

func NewUpdateReplicationParams

func NewUpdateReplicationParams() UpdateReplicationParams

type UpdateReplicationService

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

func (*UpdateReplicationService) GetJfrogHttpClient

func (*UpdateReplicationService) UpdateReplication

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

type UploadData

type UploadData struct {
	Artifact   clientutils.Artifact
	Props      string
	BuildProps string
	IsDir      bool
}

type UploadParams

type UploadParams struct {
	*utils.ArtifactoryCommonParams
	Deb               string
	BuildProps        string
	Symlink           bool
	ExplodeArchive    bool
	Flat              bool
	AddVcsProps       bool
	Retries           int
	MinChecksumDeploy int64
}

func NewUploadParams

func NewUploadParams() UploadParams

func (*UploadParams) GetDebian

func (up *UploadParams) GetDebian() string

func (*UploadParams) GetRetries

func (up *UploadParams) GetRetries() int

func (*UploadParams) IsAddVcsProps

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.Progress
	ArtDetails auth.ServiceDetails
	DryRun     bool
	Threads    int
	// contains filtered or unexported fields
}

func NewUploadService

func NewUploadService(client *rthttpclient.ArtifactoryHttpClient) *UploadService

func (*UploadService) GetJfrogHttpClient

func (us *UploadService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

func (*UploadService) SetDryRun

func (us *UploadService) SetDryRun(isDryRun bool)

func (*UploadService) SetServiceDetails

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

func (*UploadService) SetThreads

func (us *UploadService) SetThreads(threads int)

func (*UploadService) UploadFiles

func (us *UploadService) UploadFiles(uploadParams ...UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error)

type VagrantLocalRepositoryParams

type VagrantLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewVagrantLocalRepositoryParams

func NewVagrantLocalRepositoryParams() VagrantLocalRepositoryParams

type VcsRemoteRepositoryParams

type VcsRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
	VcsGitProvider        string `json:"vcsGitProvider,omitempty"`
	VcsType               string `json:"vcsType,omitempty"`
	MaxUniqueSnapshots    int    `json:"maxUniqueSnapshots,omitempty"`
	VcsGitDownloadUrl     string `json:"vcsGitDownloadUrl,omitempty"`
	ListRemoteFolderItems *bool  `json:"listRemoteFolderItems,omitempty"`
}

func NewVcsRemoteRepositoryParams

func NewVcsRemoteRepositoryParams() VcsRemoteRepositoryParams

type VirtualRepositoryBaseParams

type VirtualRepositoryBaseParams struct {
	Key                                           string   `json:"key,omitempty"`
	Rclass                                        string   `json:"rclass"`
	PackageType                                   string   `json:"packageType,omitempty"`
	Description                                   string   `json:"description,omitempty"`
	Notes                                         string   `json:"notes,omitempty"`
	IncludesPattern                               string   `json:"includesPattern,omitempty"`
	ExcludesPattern                               string   `json:"excludesPattern,omitempty"`
	RepoLayoutRef                                 string   `json:"repoLayoutRef,omitempty"`
	Repositories                                  []string `json:"repositories,omitempty"`
	ArtifactoryRequestsCanRetrieveRemoteArtifacts *bool    `json:"artifactoryRequestsCanRetrieveRemoteArtifacts,omitempty"`
	DefaultDeploymentRepo                         string   `json:"defaultDeploymentRepo,omitempty"`
}

type VirtualRepositoryService

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

func NewVirtualRepositoryService

func NewVirtualRepositoryService(client *rthttpclient.ArtifactoryHttpClient, isUpdate bool) *VirtualRepositoryService

func (*VirtualRepositoryService) Bower

func (*VirtualRepositoryService) Chef

func (*VirtualRepositoryService) Conan

func (*VirtualRepositoryService) Conda

func (*VirtualRepositoryService) Cran

func (*VirtualRepositoryService) Debian

func (*VirtualRepositoryService) Docker

func (*VirtualRepositoryService) Gems

func (*VirtualRepositoryService) Generic

func (*VirtualRepositoryService) GetJfrogHttpClient

func (vrs *VirtualRepositoryService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient

func (*VirtualRepositoryService) Gitlfs

func (*VirtualRepositoryService) Go

func (*VirtualRepositoryService) Gradle

func (*VirtualRepositoryService) Helm

func (*VirtualRepositoryService) Ivy

func (*VirtualRepositoryService) Maven

func (*VirtualRepositoryService) Npm

func (*VirtualRepositoryService) Nuget

func (*VirtualRepositoryService) P2

func (*VirtualRepositoryService) Puppet

func (*VirtualRepositoryService) Pypi

func (*VirtualRepositoryService) Rpm

func (*VirtualRepositoryService) Sbt

func (*VirtualRepositoryService) Yum

type XrayScanBody

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

type XrayScanParams

type XrayScanParams struct {
	BuildName   string
	BuildNumber string
}

func NewXrayScanParams

func NewXrayScanParams() XrayScanParams

func (*XrayScanParams) GetBuildName

func (bp *XrayScanParams) GetBuildName() string

func (*XrayScanParams) GetBuildNumber

func (bp *XrayScanParams) GetBuildNumber() string

type XrayScanService

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

func (*XrayScanService) ScanBuild

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

type YumLocalRepositoryParams

type YumLocalRepositoryParams struct {
	LocalRepositoryBaseParams
}

func NewYumLocalRepositoryParams

func NewYumLocalRepositoryParams() YumLocalRepositoryParams

type YumRemoteRepositoryParams

type YumRemoteRepositoryParams struct {
	RemoteRepositoryBaseParams
}

func NewYumRemoteRepositoryParams

func NewYumRemoteRepositoryParams() YumRemoteRepositoryParams

type YumVirtualRepositoryParams

type YumVirtualRepositoryParams struct {
	VirtualRepositoryBaseParams
}

func NewYumVirtualRepositoryParams

func NewYumVirtualRepositoryParams() YumVirtualRepositoryParams

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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