artifactory

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactoryServicesManager

type ArtifactoryServicesManager interface {
	CreateLocalRepository() *services.LocalRepositoryService
	CreateRemoteRepository() *services.RemoteRepositoryService
	CreateVirtualRepository() *services.VirtualRepositoryService
	UpdateLocalRepository() *services.LocalRepositoryService
	UpdateRemoteRepository() *services.RemoteRepositoryService
	UpdateVirtualRepository() *services.VirtualRepositoryService
	DeleteRepository(repoKey string) error
	GetRepository(repoKey string) (*services.RepositoryDetails, error)
	CreatePermissionTarget(params services.PermissionTargetParams) error
	UpdatePermissionTarget(params services.PermissionTargetParams) error
	DeletePermissionTarget(permissionTargetName string) error
	PublishBuildInfo(build *buildinfo.BuildInfo) error
	DistributeBuild(params services.BuildDistributionParams) error
	PromoteBuild(params services.PromotionParams) error
	DiscardBuilds(params services.DiscardBuildsParams) error
	XrayScanBuild(params services.XrayScanParams) ([]byte, error)
	GetPathsToDelete(params services.DeleteParams) (*content.ContentReader, error)
	DeleteFiles(reader *content.ContentReader) (int, error)
	ReadRemoteFile(readPath string) (io.ReadCloser, error)

	DownloadFiles(params ...services.DownloadParams) (totalDownloaded, totalExpected int, err error)
	DownloadFilesWithResultReader(params ...services.DownloadParams) (resultReader *content.ContentReader, totalDownloaded, totalExpected int, err error)
	GetUnreferencedGitLfsFiles(params services.GitLfsCleanParams) (*content.ContentReader, error)
	SearchFiles(params services.SearchParams) (*content.ContentReader, error)
	Aql(aql string) (io.ReadCloser, error)
	SetProps(params services.PropsParams) (int, error)
	DeleteProps(params services.PropsParams) (int, error)
	UploadFiles(params ...services.UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error)
	Copy(params services.MoveCopyParams) (successCount, failedCount int, err error)
	Move(params services.MoveCopyParams) (successCount, failedCount int, err error)
	PublishGoProject(params _go.GoParams) error
	Ping() ([]byte, error)
	GetConfig() config.Config
	GetBuildInfo(params services.BuildInfoParams) (*buildinfo.BuildInfo, error)
	CreateToken(params services.CreateTokenParams) (services.CreateTokenResponseData, error)
	GetTokens() (services.GetTokensResponseData, error)
	RefreshToken(params services.RefreshTokenParams) (services.CreateTokenResponseData, error)
	RevokeToken(params services.RevokeTokenParams) (string, error)
	CreateReplication(params services.CreateReplicationParams) error
	UpdateReplication(params services.UpdateReplicationParams) error
	DeleteReplication(repoKey string) error
	GetReplication(repoKey string) ([]utils.ReplicationParams, error)
	GetVersion() (string, error)
	GetServiceId() (string, error)
	PromoteDocker(params services.DockerPromoteParams) error
	Client() *rthttpclient.ArtifactoryHttpClient
	// contains filtered or unexported methods
}

func New

func NewWithProgress

func NewWithProgress(artDetails *auth.ServiceDetails, config config.Config, progress ioutils.Progress) (ArtifactoryServicesManager, error)

type ArtifactoryServicesManagerImp

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

func (*ArtifactoryServicesManagerImp) Aql

func (*ArtifactoryServicesManagerImp) Client

func (*ArtifactoryServicesManagerImp) Copy

func (sm *ArtifactoryServicesManagerImp) Copy(params services.MoveCopyParams) (successCount, failedCount int, err error)

func (*ArtifactoryServicesManagerImp) CreateLocalRepository

func (sm *ArtifactoryServicesManagerImp) CreateLocalRepository() *services.LocalRepositoryService

func (*ArtifactoryServicesManagerImp) CreatePermissionTarget

func (sm *ArtifactoryServicesManagerImp) CreatePermissionTarget(params services.PermissionTargetParams) error

func (*ArtifactoryServicesManagerImp) CreateRemoteRepository

func (sm *ArtifactoryServicesManagerImp) CreateRemoteRepository() *services.RemoteRepositoryService

func (*ArtifactoryServicesManagerImp) CreateReplication

func (*ArtifactoryServicesManagerImp) CreateToken

func (*ArtifactoryServicesManagerImp) CreateVirtualRepository

func (sm *ArtifactoryServicesManagerImp) CreateVirtualRepository() *services.VirtualRepositoryService

func (*ArtifactoryServicesManagerImp) DeleteFiles

func (sm *ArtifactoryServicesManagerImp) DeleteFiles(reader *content.ContentReader) (int, error)

func (*ArtifactoryServicesManagerImp) DeletePermissionTarget

func (sm *ArtifactoryServicesManagerImp) DeletePermissionTarget(permissionTargetName string) error

func (*ArtifactoryServicesManagerImp) DeleteProps

func (sm *ArtifactoryServicesManagerImp) DeleteProps(params services.PropsParams) (int, error)

func (*ArtifactoryServicesManagerImp) DeleteReplication

func (sm *ArtifactoryServicesManagerImp) DeleteReplication(repoKey string) error

func (*ArtifactoryServicesManagerImp) DeleteRepository

func (sm *ArtifactoryServicesManagerImp) DeleteRepository(repoKey string) error

func (*ArtifactoryServicesManagerImp) DiscardBuilds

func (*ArtifactoryServicesManagerImp) DistributeBuild

func (*ArtifactoryServicesManagerImp) DownloadFiles

func (sm *ArtifactoryServicesManagerImp) DownloadFiles(params ...services.DownloadParams) (totalDownloaded, totalExpected int, err error)

func (*ArtifactoryServicesManagerImp) DownloadFilesWithResultReader

func (sm *ArtifactoryServicesManagerImp) DownloadFilesWithResultReader(params ...services.DownloadParams) (resultReader *content.ContentReader, totalDownloaded, totalExpected int, err error)

func (*ArtifactoryServicesManagerImp) GetBuildInfo

func (*ArtifactoryServicesManagerImp) GetConfig

func (*ArtifactoryServicesManagerImp) GetPathsToDelete

func (*ArtifactoryServicesManagerImp) GetReplication

func (sm *ArtifactoryServicesManagerImp) GetReplication(repoKey string) ([]utils.ReplicationParams, error)

func (*ArtifactoryServicesManagerImp) GetRepository

func (sm *ArtifactoryServicesManagerImp) GetRepository(repoKey string) (*services.RepositoryDetails, error)

func (*ArtifactoryServicesManagerImp) GetServiceId

func (sm *ArtifactoryServicesManagerImp) GetServiceId() (string, error)

func (*ArtifactoryServicesManagerImp) GetTokens

func (*ArtifactoryServicesManagerImp) GetUnreferencedGitLfsFiles

func (sm *ArtifactoryServicesManagerImp) GetUnreferencedGitLfsFiles(params services.GitLfsCleanParams) (*content.ContentReader, error)

func (*ArtifactoryServicesManagerImp) GetVersion

func (sm *ArtifactoryServicesManagerImp) GetVersion() (string, error)

func (*ArtifactoryServicesManagerImp) Move

func (sm *ArtifactoryServicesManagerImp) Move(params services.MoveCopyParams) (successCount, failedCount int, err error)

func (*ArtifactoryServicesManagerImp) Ping

func (sm *ArtifactoryServicesManagerImp) Ping() ([]byte, error)

func (*ArtifactoryServicesManagerImp) PromoteBuild

func (*ArtifactoryServicesManagerImp) PromoteDocker

func (*ArtifactoryServicesManagerImp) PublishBuildInfo

func (sm *ArtifactoryServicesManagerImp) PublishBuildInfo(build *buildinfo.BuildInfo) error

func (*ArtifactoryServicesManagerImp) PublishGoProject

func (sm *ArtifactoryServicesManagerImp) PublishGoProject(params _go.GoParams) error

func (*ArtifactoryServicesManagerImp) ReadRemoteFile

func (sm *ArtifactoryServicesManagerImp) ReadRemoteFile(readPath string) (io.ReadCloser, error)

func (*ArtifactoryServicesManagerImp) RefreshToken

func (*ArtifactoryServicesManagerImp) RevokeToken

func (*ArtifactoryServicesManagerImp) SearchFiles

func (*ArtifactoryServicesManagerImp) SetProps

func (*ArtifactoryServicesManagerImp) UpdateLocalRepository

func (sm *ArtifactoryServicesManagerImp) UpdateLocalRepository() *services.LocalRepositoryService

func (*ArtifactoryServicesManagerImp) UpdatePermissionTarget

func (sm *ArtifactoryServicesManagerImp) UpdatePermissionTarget(params services.PermissionTargetParams) error

func (*ArtifactoryServicesManagerImp) UpdateRemoteRepository

func (sm *ArtifactoryServicesManagerImp) UpdateRemoteRepository() *services.RemoteRepositoryService

func (*ArtifactoryServicesManagerImp) UpdateReplication

func (*ArtifactoryServicesManagerImp) UpdateVirtualRepository

func (sm *ArtifactoryServicesManagerImp) UpdateVirtualRepository() *services.VirtualRepositoryService

func (*ArtifactoryServicesManagerImp) UploadFiles

func (sm *ArtifactoryServicesManagerImp) UploadFiles(params ...services.UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error)

func (*ArtifactoryServicesManagerImp) XrayScanBuild

func (sm *ArtifactoryServicesManagerImp) XrayScanBuild(params services.XrayScanParams) ([]byte, error)

type EmptyArtifactoryServicesManager

type EmptyArtifactoryServicesManager struct {
}

By using this struct, you have the option of overriding only some of the ArtifactoryServicesManager interface's methods, but still implement this interface. This comes in very handy for tests.

func (*EmptyArtifactoryServicesManager) Aql

func (*EmptyArtifactoryServicesManager) Client

func (*EmptyArtifactoryServicesManager) Copy

func (esm *EmptyArtifactoryServicesManager) Copy(params services.MoveCopyParams) (successCount, failedCount int, err error)

func (*EmptyArtifactoryServicesManager) CreateLocalRepository

func (esm *EmptyArtifactoryServicesManager) CreateLocalRepository() *services.LocalRepositoryService

func (*EmptyArtifactoryServicesManager) CreatePermissionTarget

func (esm *EmptyArtifactoryServicesManager) CreatePermissionTarget(params services.PermissionTargetParams) error

func (*EmptyArtifactoryServicesManager) CreateRemoteRepository

func (esm *EmptyArtifactoryServicesManager) CreateRemoteRepository() *services.RemoteRepositoryService

func (*EmptyArtifactoryServicesManager) CreateReplication

func (*EmptyArtifactoryServicesManager) CreateToken

func (*EmptyArtifactoryServicesManager) CreateVirtualRepository

func (esm *EmptyArtifactoryServicesManager) CreateVirtualRepository() *services.VirtualRepositoryService

func (*EmptyArtifactoryServicesManager) DeleteFiles

func (esm *EmptyArtifactoryServicesManager) DeleteFiles(reader *content.ContentReader) (int, error)

func (*EmptyArtifactoryServicesManager) DeletePermissionTarget

func (esm *EmptyArtifactoryServicesManager) DeletePermissionTarget(permissionTargetName string) error

func (*EmptyArtifactoryServicesManager) DeleteProps

func (esm *EmptyArtifactoryServicesManager) DeleteProps(params services.PropsParams) (int, error)

func (*EmptyArtifactoryServicesManager) DeleteReplication

func (esm *EmptyArtifactoryServicesManager) DeleteReplication(repoKey string) error

func (*EmptyArtifactoryServicesManager) DeleteRepository

func (esm *EmptyArtifactoryServicesManager) DeleteRepository(repoKey string) error

func (*EmptyArtifactoryServicesManager) DiscardBuilds

func (*EmptyArtifactoryServicesManager) DistributeBuild

func (*EmptyArtifactoryServicesManager) DownloadFiles

func (esm *EmptyArtifactoryServicesManager) DownloadFiles(params ...services.DownloadParams) (totalDownloaded, totalExpected int, err error)

func (*EmptyArtifactoryServicesManager) DownloadFilesWithResultReader

func (esm *EmptyArtifactoryServicesManager) DownloadFilesWithResultReader(params ...services.DownloadParams) (resultReader *content.ContentReader, totalDownloaded, totalExpected int, err error)

func (*EmptyArtifactoryServicesManager) GetBuildInfo

func (*EmptyArtifactoryServicesManager) GetConfig

func (*EmptyArtifactoryServicesManager) GetPathsToDelete

func (*EmptyArtifactoryServicesManager) GetReplication

func (esm *EmptyArtifactoryServicesManager) GetReplication(repoKey string) ([]utils.ReplicationParams, error)

func (*EmptyArtifactoryServicesManager) GetRepository

func (esm *EmptyArtifactoryServicesManager) GetRepository(repoKey string) (*services.RepositoryDetails, error)

func (*EmptyArtifactoryServicesManager) GetServiceId

func (esm *EmptyArtifactoryServicesManager) GetServiceId() (string, error)

func (*EmptyArtifactoryServicesManager) GetTokens

func (*EmptyArtifactoryServicesManager) GetUnreferencedGitLfsFiles

func (esm *EmptyArtifactoryServicesManager) GetUnreferencedGitLfsFiles(params services.GitLfsCleanParams) (*content.ContentReader, error)

func (*EmptyArtifactoryServicesManager) GetVersion

func (esm *EmptyArtifactoryServicesManager) GetVersion() (string, error)

func (*EmptyArtifactoryServicesManager) Move

func (esm *EmptyArtifactoryServicesManager) Move(params services.MoveCopyParams) (successCount, failedCount int, err error)

func (*EmptyArtifactoryServicesManager) Ping

func (esm *EmptyArtifactoryServicesManager) Ping() ([]byte, error)

func (*EmptyArtifactoryServicesManager) PromoteBuild

func (*EmptyArtifactoryServicesManager) PromoteDocker

func (*EmptyArtifactoryServicesManager) PublishBuildInfo

func (esm *EmptyArtifactoryServicesManager) PublishBuildInfo(build *buildinfo.BuildInfo) error

func (*EmptyArtifactoryServicesManager) PublishGoProject

func (esm *EmptyArtifactoryServicesManager) PublishGoProject(params _go.GoParams) error

func (*EmptyArtifactoryServicesManager) ReadRemoteFile

func (esm *EmptyArtifactoryServicesManager) ReadRemoteFile(readPath string) (io.ReadCloser, error)

func (*EmptyArtifactoryServicesManager) RefreshToken

func (*EmptyArtifactoryServicesManager) RevokeToken

func (*EmptyArtifactoryServicesManager) SearchFiles

func (*EmptyArtifactoryServicesManager) SetProps

func (*EmptyArtifactoryServicesManager) UpdateLocalRepository

func (esm *EmptyArtifactoryServicesManager) UpdateLocalRepository() *services.LocalRepositoryService

func (*EmptyArtifactoryServicesManager) UpdatePermissionTarget

func (esm *EmptyArtifactoryServicesManager) UpdatePermissionTarget(params services.PermissionTargetParams) error

func (*EmptyArtifactoryServicesManager) UpdateRemoteRepository

func (esm *EmptyArtifactoryServicesManager) UpdateRemoteRepository() *services.RemoteRepositoryService

func (*EmptyArtifactoryServicesManager) UpdateReplication

func (*EmptyArtifactoryServicesManager) UpdateVirtualRepository

func (esm *EmptyArtifactoryServicesManager) UpdateVirtualRepository() *services.VirtualRepositoryService

func (*EmptyArtifactoryServicesManager) UploadFiles

func (esm *EmptyArtifactoryServicesManager) UploadFiles(params ...services.UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error)

func (*EmptyArtifactoryServicesManager) XrayScanBuild

func (esm *EmptyArtifactoryServicesManager) XrayScanBuild(params services.XrayScanParams) ([]byte, error)

Directories

Path Synopsis
go

Jump to

Keyboard shortcuts

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