store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 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 AppStore

type AppStore struct {
	*Store
}

func (AppStore) Delete

func (s AppStore) Delete(app *apps.App) error

func (AppStore) Get

func (s AppStore) Get(appID apps.AppID) (*apps.App, error)

func (AppStore) GetAll

func (s AppStore) GetAll() []*apps.App

func (AppStore) Save

func (s AppStore) Save(app *apps.App) error

type ManifestStore

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

func (ManifestStore) Cleanup

func (s ManifestStore) Cleanup()

func (ManifestStore) Delete

func (s ManifestStore) Delete(appID apps.AppID)

func (ManifestStore) Get

func (s ManifestStore) Get(appID apps.AppID) (*apps.Manifest, error)

func (ManifestStore) GetAll

func (s ManifestStore) GetAll() map[apps.AppID]*apps.Manifest

func (ManifestStore) Save

func (s ManifestStore) Save(manifest *apps.Manifest)

type Store

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

func New

func New(mm *pluginapi.Client, conf api.Configurator) *Store

func (*Store) App

func (s *Store) App() api.AppStore

func (*Store) Manifest

func (s *Store) Manifest() api.ManifestStore

func (*Store) Sub

func (s *Store) Sub() api.SubStore

type Stores

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

type SubStore

type SubStore struct {
	*Store
}

func (SubStore) Delete

func (s SubStore) Delete(sub *apps.Subscription) error

func (SubStore) Get

func (s SubStore) Get(subject apps.Subject, teamID, channelID string) ([]*apps.Subscription, error)

func (SubStore) Save

func (s SubStore) Save(sub *apps.Subscription) error

Jump to

Keyboard shortcuts

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