Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactManager ¶
type ArtifactManager interface { GetFileInfo(repoName string, filePath string) (sdk.FileInfo, error) GetRepository(repoName string) (*services.RepositoryDetails, error) GetFolderInfo(repoName string, folderPath string) (*utils.FolderInfo, error) GetProperties(repoName string, filePath string) (map[string][]string, error) SetProperties(repoName string, filePath string, values *utils.Properties) error DeleteBuild(project string, buildName string, buildVersion string) error PublishBuildInfo(project string, request *buildinfo.BuildInfo) error XrayScanBuild(params services.XrayScanParams) ([]byte, error) GetURL() string CheckArtifactExists(repoName string, artiName string) (bool, error) PromoteDocker(params services.DockerPromoteParams) error Copy(params services.MoveCopyParams) (successCount, failedCount int, err error) Move(params services.MoveCopyParams) (successCount, failedCount int, err error) GetRepositoryMaturity(repoName string) (string, error) Search(ctx context.Context, query string) (sdk.ArtifactResults, error) }
mockgen -source=interface.go -package mock_artifact_manager -destination=mock_artifact_manager/interface_mock.go ArtifactManager
func NewClient ¶
func NewClient(managerType, url, token string) (ArtifactManager, error)
type ClientFactoryFunc ¶
type ClientFactoryFunc func(string, string, string) (ArtifactManager, error)
var DefaultClientFactory ClientFactoryFunc = newClient
Directories ¶
Path | Synopsis |
---|---|
xray/mock_xray
Package mock_xray is a generated GoMock package.
|
Package mock_xray is a generated GoMock package. |
Package mock_artifact_manager is a generated GoMock package.
|
Package mock_artifact_manager is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.