artifact_manager

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

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)
	SetProperties(repoName string, filePath string, values ...sdk.KeyValues) error
	DeleteBuild(project string, buildName string, buildVersion string) error
	PublishBuildInfo(project string, request *buildinfo.BuildInfo) error
	XrayScanBuild(params services.XrayScanParams) ([]byte, error)
	GetURL() string
}

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
Package mock_artifact_manager is a generated GoMock package.
Package mock_artifact_manager is a generated GoMock package.

Jump to

Keyboard shortcuts

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