driver

package
v0.19.1300 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// NuonDriverName is the string name of this driver.
	NuonDriverName = "nuon"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Nuon

type Nuon struct {
	// contains filtered or unexported fields
}

Nuon is the Nuon storage driver implementation.

func NewNuonDriver

func NewNuonDriver(serverURL, apiKey string) (*Nuon, error)

NewNuonDriver initializes a new Nuon driver.

func (*Nuon) Create

func (h *Nuon) Create(key string, rel relapi.Releaser) error

Create creates a new release or returns ErrReleaseExists.

func (*Nuon) Delete

func (h *Nuon) Delete(key string) (relapi.Releaser, error)

Delete deletes a release or returns ErrReleaseNotFound.

func (*Nuon) Get

func (h *Nuon) Get(key string) (relapi.Releaser, error)

Get returns the release named by key or returns ErrReleaseNotFound.

func (*Nuon) List

func (h *Nuon) List(filter func(relapi.Releaser) bool) ([]relapi.Releaser, error)

List returns the list of all releases such that filter(release) == true

func (*Nuon) Name

func (h *Nuon) Name() string

Name returns the name of the driver.

func (*Nuon) Query

func (h *Nuon) Query(keyvals map[string]string) ([]relapi.Releaser, error)

Query returns the set of releases that match the provided set of labels

func (*Nuon) SetNamespace

func (h *Nuon) SetNamespace(ns string)

SetNamespace sets a specific namespace in which releases will be accessed.

func (*Nuon) Update

func (h *Nuon) Update(key string, rel relapi.Releaser) error

Update updates a release or returns ErrReleaseNotFound.

Jump to

Keyboard shortcuts

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