Documentation ΒΆ
Index ΒΆ
- type Client
- type DefaultClient
- func (s *DefaultClient) Del(endpoint string) (resp *http.Response, err error)
- func (s *DefaultClient) Do(request *http.Request) (body []byte, resp *http.Response, err error)
- func (s *DefaultClient) Get(endpoint string) ([]byte, *http.Response, error)
- func (s *DefaultClient) Info() ServerInfo
- func (s *DefaultClient) NewRequest(method, endpoint string, payload io.Reader) (request *http.Request, err error)
- func (s *DefaultClient) Post(endpoint string, payload io.Reader) ([]byte, *http.Response, error)
- func (s *DefaultClient) Put(endpoint string, payload io.Reader) ([]byte, *http.Response, error)
- func (s *DefaultClient) SetCertFile(certFile string)
- func (s *DefaultClient) SetDebug(enable bool)
- type SearchQueryBuilder
- type ServerInfo
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Client ΒΆ
type Client interface { NewRequest(method, endpoint string, payload io.Reader) (*http.Request, error) Do(request *http.Request) ([]byte, *http.Response, error) Get(endpoint string) ([]byte, *http.Response, error) Post(endpoint string, payload io.Reader) ([]byte, *http.Response, error) Put(endpoint string, payload io.Reader) ([]byte, *http.Response, error) Del(endpoint string) (*http.Response, error) Info() ServerInfo SetDebug(enable bool) SetCertFile(certFile string) }
Client is the interface which allows interacting with an IQ server
type DefaultClient ΒΆ
type DefaultClient struct { ServerInfo Debug bool }
DefaultClient provides an HTTP wrapper with optimized for communicating with a Nexus server
func (*DefaultClient) Del ΒΆ
func (s *DefaultClient) Del(endpoint string) (resp *http.Response, err error)
Del performs an HTTP DELETE against the indicated endpoint
func (*DefaultClient) Info ΒΆ
func (s *DefaultClient) Info() ServerInfo
Info return information about the Nexus server
func (*DefaultClient) NewRequest ΒΆ
func (s *DefaultClient) NewRequest(method, endpoint string, payload io.Reader) (request *http.Request, err error)
NewRequest created an http.Request object based on an endpoint and fills in basic auth
func (*DefaultClient) SetCertFile ΒΆ added in v0.59.0
func (s *DefaultClient) SetCertFile(certFile string)
SetCertFile sets the certificate to use for HTTP communication
func (*DefaultClient) SetDebug ΒΆ added in v0.58.3
func (s *DefaultClient) SetDebug(enable bool)
SetDebug will enable or disable debug output on HTTP communication
type SearchQueryBuilder ΒΆ added in v0.22.0
type SearchQueryBuilder interface {
Build() string
}
SearchQueryBuilder is the interface that a search builder should follow
type ServerInfo ΒΆ
type ServerInfo struct {
Host, Username, Password, CertFile string
}
ServerInfo contains the information needed to connect to a Nexus server
Directories ΒΆ
Path | Synopsis |
---|---|
Package nexusiq provides a number of functions that interact with the Nexus IQ REST API.
|
Package nexusiq provides a number of functions that interact with the Nexus IQ REST API. |
iqwebhooks
Package iqwebhooks provides structs for all of the Nexus IQ webhook events as well as an http.HandlerFunc which will take the http.Request and put any IQ webhook it finds on a channel.
|
Package iqwebhooks provides structs for all of the Nexus IQ webhook events as well as an http.HandlerFunc which will take the http.Request and put any IQ webhook it finds on a channel. |
Package nexusrm provides a number of functions that interact with the Nexus Repository Manager REST API.
|
Package nexusrm provides a number of functions that interact with the Nexus Repository Manager REST API. |
Click to show internal directories.
Click to hide internal directories.