Documentation ¶
Index ¶
- type Storage
- func (s *Storage) Close()
- func (s *Storage) CreateOrUpdate(c *models.IpsetResources) error
- func (s *Storage) DeleteBucket(bucket string) error
- func (s *Storage) GetBoolKV(bucket, key string) (bool, error)
- func (s *Storage) GetIpsetResources(name string) (*models.IpsetResources, error)
- func (s *Storage) GetIpsetTimestamp(name string) (time.Time, error)
- func (s *Storage) GetRule(bucket, key string) ([]string, error)
- func (s *Storage) GetStringKV(bucket, key string) (string, error)
- func (s *Storage) ListBuckets() (map[string]struct{}, error)
- func (s *Storage) ListBucketsForDeletion() (map[string]struct{}, error)
- func (s *Storage) SetBoolKV(bucket, key string, val bool) error
- func (s *Storage) SetStringKV(bucket, key, val string) error
- func (s *Storage) StoreRule(bucket, key string, rule []string) error
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 (*Storage) CreateOrUpdate ¶
func (s *Storage) CreateOrUpdate(c *models.IpsetResources) error
func (*Storage) DeleteBucket ¶
func (*Storage) GetIpsetResources ¶
func (s *Storage) GetIpsetResources(name string) (*models.IpsetResources, error)
func (*Storage) GetIpsetTimestamp ¶
func (*Storage) ListBuckets ¶
func (*Storage) ListBucketsForDeletion ¶
func (*Storage) SetStringKV ¶
Click to show internal directories.
Click to hide internal directories.