Documentation ¶
Index ¶
- Constants
- Variables
- type Destination
- func (d *Destination) CountWhereGroupID(tx Transaction, group_id int) (int, error)
- func (d *Destination) Create(tx Transaction, destination_group_id int, port int, protocol string) (int, error)
- func (d *Destination) Delete(tx Transaction, id int) error
- func (d *Destination) GetID(tx Transaction, destination_group_id int, port int, protocol string) (int, error)
- type DestinationRepo
- type Group
- type GroupRepo
- type Policy
- func (p *Policy) CountWhereDestinationID(tx Transaction, destination_id int) (int, error)
- func (p *Policy) CountWhereGroupID(tx Transaction, source_group_id int) (int, error)
- func (p *Policy) Create(tx Transaction, source_group_id int, destination_id int) error
- func (p *Policy) Delete(tx Transaction, source_group_id int, destination_id int) error
- type PolicyRepo
- type Store
- type Transaction
Constants ¶
View Source
const MAX_TAG_LENGTH = 3
View Source
const MIN_TAG_LENGTH = 1
Variables ¶
View Source
var RecordNotFoundError = errors.New("record not found")
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { }
func (*Destination) CountWhereGroupID ¶
func (d *Destination) CountWhereGroupID(tx Transaction, group_id int) (int, error)
func (*Destination) Create ¶
func (d *Destination) Create(tx Transaction, destination_group_id int, port int, protocol string) (int, error)
func (*Destination) Delete ¶
func (d *Destination) Delete(tx Transaction, id int) error
func (*Destination) GetID ¶
func (d *Destination) GetID(tx Transaction, destination_group_id int, port int, protocol string) (int, error)
type DestinationRepo ¶
type DestinationRepo interface { Create(Transaction, int, int, string) (int, error) Delete(Transaction, int) error GetID(Transaction, int, int, string) (int, error) CountWhereGroupID(Transaction, int) (int, error) }
type GroupRepo ¶
type GroupRepo interface { Create(Transaction, string) (int, error) Delete(Transaction, int) error GetID(Transaction, string) (int, error) }
type Policy ¶
type Policy struct { }
func (*Policy) CountWhereDestinationID ¶
func (p *Policy) CountWhereDestinationID(tx Transaction, destination_id int) (int, error)
func (*Policy) CountWhereGroupID ¶
func (p *Policy) CountWhereGroupID(tx Transaction, source_group_id int) (int, error)
type PolicyRepo ¶
type PolicyRepo interface { Create(Transaction, int, int) error Delete(Transaction, int, int) error CountWhereGroupID(Transaction, int) (int, error) CountWhereDestinationID(Transaction, int) (int, error) }
Click to show internal directories.
Click to hide internal directories.