Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoURI = errors.New("no URI provided")
ErrNoURI is returned when an operation requires a URI but none was provided.
Functions ¶
func LibraryFallbackConsumer ¶
LibraryFallbackConsumer will be registered to handle responses that don't include data, or have straight text / HTML etc. This is necessary to properly present bare errors from the oci-library-shim that don't fit the Sylabs JSON response structure. These can occur when attempting to fetch a container by id (suppported by v1) rather than a delimited repository path. Without a custom handler a confusing unmarshalling error is displayed.
Types ¶
type Clients ¶
type Clients struct {
LibraryClient *libraryclient.SylabsContainerLibraryAPIOCISHIM
BuildSrvClient *buildserverclient.SylabsRemoteBuildServer
BuildManClient *buildmanagerclient.SylabsRemoteBuildManager
KeyClient *keyclient.SylabsKeyServiceAPI
ConsentClient *consentclient.SylabsConsentServiceAPI
TokenClient *tokenclient.SylabsTokenServiceAPI
}
Clients holds the set of go-swagger API clients for the Singularity Enterprise services.
func NewClients ¶
func NewClients(sURIs *config.ServiceURIs, authInfo runtime.ClientAuthInfoWriter) (c *Clients, err error)
NewClients returns a set of initialized API clients for services with URIs specified in sURIs.