disk

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a cache on-disk

func New

func New(path string) (*Store, error)

New returns a new Store

func NewTemp

func NewTemp() (*Store, error)

NewTemp returns a new Store

func (*Store) Get

func (d *Store) Get(project, name string) (*crdv1.RobotAccountCredential, error)

Get returns a item

func (*Store) Has

func (d *Store) Has(project, name string) bool

Has returns true if the item exists, false if not

func (*Store) Keys

func (d *Store) Keys() [][]string

Keys returns all available keys

func (*Store) Reset

func (d *Store) Reset() error

Reset deletes all entries from the cache

func (*Store) Set

func (d *Store) Set(project string, cred crdv1.RobotAccountCredential) error

Set writes data to the disk store

Jump to

Keyboard shortcuts

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