bolt

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(path string) (*Storage, error)

func (*Storage) Close

func (s *Storage) Close()

func (*Storage) CreateOrUpdate

func (s *Storage) CreateOrUpdate(c *models.IpsetResources) error

func (*Storage) DeleteBucket

func (s *Storage) DeleteBucket(bucket string) error

func (*Storage) GetBoolKV

func (s *Storage) GetBoolKV(bucket, key string) (bool, error)

func (*Storage) GetIpsetResources

func (s *Storage) GetIpsetResources(name string) (*models.IpsetResources, error)

func (*Storage) GetIpsetTimestamp

func (s *Storage) GetIpsetTimestamp(name string) (time.Time, error)

func (*Storage) GetRule

func (s *Storage) GetRule(bucket, key string) ([]string, error)

func (*Storage) GetStringKV

func (s *Storage) GetStringKV(bucket, key string) (string, error)

func (*Storage) ListBuckets

func (s *Storage) ListBuckets() (map[string]struct{}, error)

func (*Storage) ListBucketsForDeletion

func (s *Storage) ListBucketsForDeletion() (map[string]struct{}, error)

func (*Storage) SetBoolKV

func (s *Storage) SetBoolKV(bucket, key string, val bool) error

func (*Storage) SetStringKV

func (s *Storage) SetStringKV(bucket, key, val string) error

func (*Storage) StoreRule

func (s *Storage) StoreRule(bucket, key string, rule []string) error

Jump to

Keyboard shortcuts

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