store

package
v0.0.0-...-fb51b82 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDBStore

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

func NewLevelDBStore

func NewLevelDBStore(filePath string) (*LevelDBStore, error)

func (*LevelDBStore) AddApplication

func (s *LevelDBStore) AddApplication(app *engine.Application) error

func (*LevelDBStore) AddApplicationRunTime

func (s *LevelDBStore) AddApplicationRunTime(rt *engine.ApplicationRuntime) error

func (*LevelDBStore) AddConfig

func (s *LevelDBStore) AddConfig(config *engine.Config) error

func (*LevelDBStore) ForeachApplicationRunTime

func (s *LevelDBStore) ForeachApplicationRunTime(f func(*engine.ApplicationRuntime)) error

func (*LevelDBStore) GetApplication

func (s *LevelDBStore) GetApplication(tag *engine.ApplicationTag) (*engine.Application, error)

func (*LevelDBStore) GetApplicationRuntime

func (s *LevelDBStore) GetApplicationRuntime(name string) (*engine.ApplicationRuntime, error)

func (*LevelDBStore) GetConfig

func (s *LevelDBStore) GetConfig(name string) (*engine.Config, error)

func (*LevelDBStore) HasApplication

func (s *LevelDBStore) HasApplication(tag *engine.ApplicationTag) (bool, error)

func (*LevelDBStore) HasConfig

func (s *LevelDBStore) HasConfig(name string) (bool, error)

func (*LevelDBStore) ListApplicationRunTimes

func (s *LevelDBStore) ListApplicationRunTimes(size int, lastPos string) ([]*engine.ApplicationRuntime, string, error)

func (*LevelDBStore) ListApplications

func (s *LevelDBStore) ListApplications(size int, lastPos string) ([]*engine.ApplicationTag, string, error)

func (*LevelDBStore) RemoveApplication

func (s *LevelDBStore) RemoveApplication(tag *engine.ApplicationTag) error

func (*LevelDBStore) RemoveApplicationRunTime

func (s *LevelDBStore) RemoveApplicationRunTime(name string) error

func (*LevelDBStore) RemoveConfig

func (s *LevelDBStore) RemoveConfig(name string) error

func (*LevelDBStore) UpdateApplication

func (s *LevelDBStore) UpdateApplication(tag *engine.ApplicationTag, f func(*engine.Application)) error

func (*LevelDBStore) UpdateApplicationRuntime

func (s *LevelDBStore) UpdateApplicationRuntime(name string, f func(*engine.ApplicationRuntime) error) error

Jump to

Keyboard shortcuts

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