bolt

package
v0.0.0-...-4a5832f Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2017 Atos

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BBoltRepository

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

func New

func New() (BBoltRepository, error)

func (BBoltRepository) CreateAgreement

func (r BBoltRepository) CreateAgreement(agreement *model.Agreement) (*model.Agreement, error)

func (BBoltRepository) CreateProvider

func (r BBoltRepository) CreateProvider(provider *model.Provider) (*model.Provider, error)

func (BBoltRepository) DeleteAgreement

func (r BBoltRepository) DeleteAgreement(agreement *model.Agreement) error

func (BBoltRepository) DeleteProvider

func (r BBoltRepository) DeleteProvider(provider *model.Provider) error

func (BBoltRepository) ExecuteOperation

func (r BBoltRepository) ExecuteOperation(ft func(fn func(tx *bolt.Tx) error) error, fb func(b *bolt.Bucket) error) error

func (BBoltRepository) ExecuteReadOperation

func (r BBoltRepository) ExecuteReadOperation(f func(b *bolt.Bucket) error) error

func (BBoltRepository) ExecuteTx

func (r BBoltRepository) ExecuteTx(options *bolt.Options, f func(db *bolt.DB) error) error

func (BBoltRepository) ExecuteWriteOperation

func (r BBoltRepository) ExecuteWriteOperation(f func(b *bolt.Bucket) error) error

func (BBoltRepository) GetActiveAgreements

func (r BBoltRepository) GetActiveAgreements() (model.Agreements, error)

func (BBoltRepository) GetAgreement

func (r BBoltRepository) GetAgreement(id string) (*model.Agreement, error)

func (BBoltRepository) GetAllAgreements

func (r BBoltRepository) GetAllAgreements() (model.Agreements, error)

func (BBoltRepository) GetAllProviders

func (r BBoltRepository) GetAllProviders() (model.Providers, error)

func (BBoltRepository) GetProvider

func (r BBoltRepository) GetProvider(id string) (*model.Provider, error)

func (*BBoltRepository) SetDatabase

func (r *BBoltRepository) SetDatabase(database string) error

func (BBoltRepository) StartAgreement

func (r BBoltRepository) StartAgreement(id string) error

func (BBoltRepository) StopAgreement

func (r BBoltRepository) StopAgreement(id string) error

Jump to

Keyboard shortcuts

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