Documentation ¶
Index ¶
- func NewSet(values []Target) *set
- type Target
- type TargetGroup
- type TargetStore
- func (ts *TargetStore) CreateTargetGroup(tg *TargetGroup) error
- func (ts *TargetStore) DeleteLabel(tgID uint64, label_key string) error
- func (ts *TargetStore) DeleteTarget(tgID uint64, tID uint64) error
- func (ts *TargetStore) DeleteTargetGroup(id uint64) error
- func (ts *TargetStore) GetAllTargetGroups() ([]TargetGroup, error)
- func (ts *TargetStore) GetTargetGroup(id uint64) (*TargetGroup, error)
- func (ts *TargetStore) IPInTargetList(bkt *bolt.Bucket, ip string) bool
- func (ts *TargetStore) UpdateTargetGroup(tg *TargetGroup) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TargetGroup ¶
type TargetStore ¶
type TargetStore struct {
// contains filtered or unexported fields
}
func (*TargetStore) CreateTargetGroup ¶
func (ts *TargetStore) CreateTargetGroup(tg *TargetGroup) error
CreateTargetGroup creates a new target group, returns error if target group couldn't be created
func (*TargetStore) DeleteLabel ¶
func (ts *TargetStore) DeleteLabel(tgID uint64, label_key string) error
func (*TargetStore) DeleteTarget ¶
func (ts *TargetStore) DeleteTarget(tgID uint64, tID uint64) error
DeleteTarget deletes a target from targets of a target group, returns error if target group doesn't exist
func (*TargetStore) DeleteTargetGroup ¶
func (ts *TargetStore) DeleteTargetGroup(id uint64) error
DeleteTarget deletes a target from targets of a target group, returns error if target group doesn't exist
func (*TargetStore) GetAllTargetGroups ¶
func (ts *TargetStore) GetAllTargetGroups() ([]TargetGroup, error)
GetAllTargets returns a list of all target groups
func (*TargetStore) GetTargetGroup ¶
func (ts *TargetStore) GetTargetGroup(id uint64) (*TargetGroup, error)
GetTargetGroup returns a target group with ID, returns error if target group doesn't exist
func (*TargetStore) IPInTargetList ¶
func (ts *TargetStore) IPInTargetList(bkt *bolt.Bucket, ip string) bool
func (*TargetStore) UpdateTargetGroup ¶
func (ts *TargetStore) UpdateTargetGroup(tg *TargetGroup) error
UpdateTarget updates port of a target, returns error if target group doesn't exist
Click to show internal directories.
Click to hide internal directories.