Documentation
¶
Index ¶
Constants ¶
View Source
const ( TestPermanentRepository = "ods-permanent-artifacts" TestTemporaryRepository = "ods-temporary-artifacts" )
Variables ¶
This section is empty.
Functions ¶
func ArtifactGroup ¶
ArtifactGroup returns the group in which aritfacts are stored for the given ODS pipeline context and the subdir.
func ArtifactGroupBase ¶
ArtifactGroupBase returns the group base in which aritfacts are stored for the given ODS pipeline context.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Nexus client, wrapping github.com/sonatype-nexus-community/gonexus/rm.RM
func NewClient ¶
func NewClient(clientConfig *ClientConfig) (*Client, error)
NewClient initializes a Nexus client.
type ClientConfig ¶
type ClientConfig struct {
// Nexus username.
Username string
// Password of Nexus user.
Password string
// URL of Nexus instance.
BaseURL string
// Logger is the logger to send logging messages to.
Logger logging.LeveledLoggerInterface
// Timeout of HTTP client used to download assets.
Timeout time.Duration
// HTTP client used to download assets.
HTTPClient *http.Client
// Certificate to use for HTTP communication.
CertFile string
}
ClientConfig configures a Nexus client.
type ClientInterface ¶
type TestArtifact ¶
type TestClient ¶
type TestClient struct {
// Artifacts contains Artifacts per repository
Artifacts map[string][]TestArtifact
}
func (*TestClient) Download ¶
func (c *TestClient) Download(url, outfile string) (int64, error)
Download writes a dummy string into outfile.
Click to show internal directories.
Click to hide internal directories.