driver

package
v0.19.770 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: AGPL-3.0 Imports: 10 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, rls *rspb.Release) error

Create creates a new release or returns ErrReleaseExists.

func (*Nuon) Delete

func (h *Nuon) Delete(key string) (*rspb.Release, error)

Delete deletes a release or returns ErrReleaseNotFound.

func (*Nuon) Get

func (h *Nuon) Get(key string) (*rspb.Release, error)

Get returns the release named by key or returns ErrReleaseNotFound.

func (*Nuon) List

func (h *Nuon) List(filter func(*rspb.Release) bool) ([]*rspb.Release, 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) ([]*rspb.Release, 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, rls *rspb.Release) 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