api

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoURI = errors.New("no URI provided")

ErrNoURI is returned when an operation requires a URI but none was provided.

Functions

func LibraryFallbackConsumer

func LibraryFallbackConsumer() runtime.Consumer

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

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.

Jump to

Keyboard shortcuts

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