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 ¶
- type BBoltRepository
- func (r BBoltRepository) CreateAgreement(agreement *model.Agreement) (*model.Agreement, error)
- func (r BBoltRepository) CreateProvider(provider *model.Provider) (*model.Provider, error)
- func (r BBoltRepository) DeleteAgreement(agreement *model.Agreement) error
- func (r BBoltRepository) DeleteProvider(provider *model.Provider) error
- func (r BBoltRepository) ExecuteOperation(ft func(fn func(tx *bolt.Tx) error) error, fb func(b *bolt.Bucket) error) error
- func (r BBoltRepository) ExecuteReadOperation(f func(b *bolt.Bucket) error) error
- func (r BBoltRepository) ExecuteTx(options *bolt.Options, f func(db *bolt.DB) error) error
- func (r BBoltRepository) ExecuteWriteOperation(f func(b *bolt.Bucket) error) error
- func (r BBoltRepository) GetActiveAgreements() (model.Agreements, error)
- func (r BBoltRepository) GetAgreement(id string) (*model.Agreement, error)
- func (r BBoltRepository) GetAllAgreements() (model.Agreements, error)
- func (r BBoltRepository) GetAllProviders() (model.Providers, error)
- func (r BBoltRepository) GetProvider(id string) (*model.Provider, error)
- func (r *BBoltRepository) SetDatabase(database string) error
- func (r BBoltRepository) StartAgreement(id string) error
- func (r BBoltRepository) StopAgreement(id string) error
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 (BBoltRepository) CreateProvider ¶
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 (BBoltRepository) ExecuteReadOperation ¶
func (r BBoltRepository) ExecuteReadOperation(f func(b *bolt.Bucket) 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
Click to show internal directories.
Click to hide internal directories.