bolt

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 20 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 {
	Baask8sService         *baask8s.Service
	BaasmspService         *baasmsp.Service
	ExtensionService       *extension.Service
	RegistryService        *registry.Service
	ResourceControlService *resourcecontrol.Service
	SettingsService        *settings.Service
	TagService             *tag.Service
	TeamMembershipService  *teammembership.Service
	TeamService            *team.Service
	TemplateService        *template.Service
	UserService            *user.Service
	VersionService         *version.Service
	WebhookService         *webhook.Service
	ScheduleService        *schedule.Service
	// contains filtered or unexported fields
}

Store defines the implementation of baasapi.DataStore using BoltDB as the storage system.

func NewStore

func NewStore(storePath string, fileService baasapi.FileService) (*Store, error)

NewStore initializes a new Store and the associated services

func (*Store) Close

func (store *Store) Close() error

Close closes the BoltDB database.

func (*Store) Init

func (store *Store) Init() error

Init creates the default data set.

func (*Store) MigrateData

func (store *Store) MigrateData() error

MigrateData automatically migrate the data based on the DBVersion.

func (*Store) Open

func (store *Store) Open() error

Open opens and initializes the BoltDB database.

Jump to

Keyboard shortcuts

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