storage

package
v2.0.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package storage implements storage for Tiller objects.

Tiller stores releases (see 'cmd/tiller/environment'.Environment). The backend storage mechanism may be implemented with different backends. This package and its subpackages provide storage layers for Tiller objects.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("release not found")

ErrNotFound indicates that a release is not found.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Memory is an in-memory ReleaseStorage implementation.

func NewMemory

func NewMemory() *Memory

NewMemory creates a new in-memory storage.

func (*Memory) Create

func (m *Memory) Create(rel *release.Release) error

Create sets a release.

func (*Memory) Delete

func (m *Memory) Delete(name string) (*release.Release, error)

Delete removes a release.

func (*Memory) History

func (m *Memory) History(name string) ([]*release.Release, error)

History returns the history of this release, in the form of a series of releases.

func (*Memory) List

func (m *Memory) List() ([]*release.Release, error)

List returns all releases whose status is not Status_DELETED.

func (*Memory) Query

func (m *Memory) Query(labels map[string]string) ([]*release.Release, error)

Query searches all releases for matches.

func (*Memory) Read

func (m *Memory) Read(k string) (*release.Release, error)

Read returns the named Release.

If the release is not found, an ErrNotFound error is returned.

func (*Memory) Update

func (m *Memory) Update(rel *release.Release) error

Update sets a release.

Jump to

Keyboard shortcuts

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