Skip to content

HokieGeek/gonexus-private

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gonexus-private

Provides a go library for connecting to, and interacting with, the private APIs of Sonatype Nexus application such as Nexus Repository Manager and Nexus IQ Server.

Specifically, it wraps around github.com/sonatype-nexus-community/gonexus to add functionality using unsupported private APIs

⛔ WARNING: To be clear, use of Sonatype Nexus private APIs is neither supported nor condoned by Sonatype.

Organization of the library

The library is broken into two packages. One for each application

nexusiq

Create a connection to an instance of Nexus IQ Server

Example:

import (
	"github.com/hokiegeek/gonexus-private/iq"
	"github.com/sonatype-nexus-community/gonexus/iq"
)

func main() {
	// Define the IQ server instance
	iq, err := nexusiq.New("http://localhost:8070", "username", "password")
	if err != nil {
		panic(err)
	}

	// Create a new organization using the public API
	orgID, err := nexusiq.CreateOrganization(iq, "foobar")
	if err != nil {
		panic(err)
	}

	// Delete that organization using the private API
	if err := privateiq.DeleteOrganization(iq, orgID); err != nil {
		panic(err)
	}
}

nexusrm

TODO... maybe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages