Help us shape the future of Go! Take the 2026 Go Developer Survey

driver

package
v0.19.1256 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

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