Documentation
¶
Index ¶
- type Action
- type AttachRequest
- type Attacher
- type Bucket
- func (teb *Bucket) Attach(a AttachRequest)
- func (teb *Bucket) ClearLoadInfo()
- func (teb Bucket) CloneRepository() RepositoryAttacher
- func (teb *Bucket) ComputeCheckInstances()
- func (teb *Bucket) DeleteCheck(c Check)
- func (teb *Bucket) DeleteProperty(p Property)
- func (teb *Bucket) Destroy()
- func (teb *Bucket) Detach()
- func (teb *Bucket) Find(f FindRequest, b bool) Attacher
- func (teb *Bucket) GetBucket() Receiver
- func (teb *Bucket) GetEnvironment() string
- func (teb *Bucket) GetID() string
- func (teb *Bucket) GetName() string
- func (teb *Bucket) GetRepository() string
- func (teb *Bucket) GetRepositoryName() string
- func (teb *Bucket) GetType() string
- func (teb *Bucket) LoadInstance(i CheckInstance)
- func (teb *Bucket) Receive(r ReceiveRequest)
- func (teb *Bucket) SetCheck(c Check)
- func (teb *Bucket) SetProperty(p Property)
- func (teb *Bucket) Unlink(u UnlinkRequest)
- func (teb *Bucket) UpdateProperty(p Property)
- type BucketAttacher
- type BucketReceiver
- type BucketSpec
- type BucketUnlinker
- type Bucketeer
- type Builder
- type Check
- func (c *Check) Clone() Check
- func (c *Check) GetCapabilityId() string
- func (c *Check) GetCheckConfigId() string
- func (c *Check) GetCheckId() string
- func (c *Check) GetChildrenOnly() bool
- func (c *Check) GetInheritance() bool
- func (c *Check) GetInheritedFrom() string
- func (c *Check) GetInterval() uint64
- func (c *Check) GetIsInherited() bool
- func (c *Check) GetItemId(objType string, objId uuid.UUID) uuid.UUID
- func (c *Check) GetSourceCheckId() string
- func (c *Check) GetSourceType() string
- func (c *Check) GetView() string
- func (c *Check) MakeAction() Action
- type CheckConstraint
- type CheckGetter
- type CheckInstance
- type CheckItem
- type CheckThreshold
- type Checker
- type Cluster
- func (tec *Cluster) Attach(a AttachRequest)
- func (tec *Cluster) ClearLoadInfo()
- func (tec Cluster) Clone() *Cluster
- func (tec Cluster) CloneBucket() BucketAttacher
- func (tec Cluster) CloneGroup() GroupAttacher
- func (tec *Cluster) ComputeCheckInstances()
- func (tec *Cluster) DeleteCheck(c Check)
- func (tec *Cluster) DeleteProperty(p Property)
- func (tec *Cluster) Destroy()
- func (tec *Cluster) Detach()
- func (tec *Cluster) Find(f FindRequest, b bool) Attacher
- func (tec *Cluster) GetBucket() Receiver
- func (tec *Cluster) GetEnvironment() string
- func (tec *Cluster) GetID() string
- func (tec *Cluster) GetName() string
- func (tec *Cluster) GetRepository() string
- func (tec *Cluster) GetRepositoryName() string
- func (tec *Cluster) GetType() string
- func (tec *Cluster) LoadInstance(i CheckInstance)
- func (tec *Cluster) ReAttach(a AttachRequest)
- func (tec *Cluster) Receive(r ReceiveRequest)
- func (tec *Cluster) SetCheck(c Check)
- func (tec *Cluster) SetProperty(p Property)
- func (tec *Cluster) Unlink(u UnlinkRequest)
- func (tec *Cluster) UpdateProperty(p Property)
- type ClusterAttacher
- type ClusterReceiver
- type ClusterSpec
- type ClusterUnlinker
- type Configurator
- type Error
- type Fault
- func (tef *Fault) Attach(a AttachRequest)
- func (tef *Fault) ClearLoadInfo()
- func (tef Fault) CloneRepository() RepositoryAttacher
- func (tef *Fault) ComputeCheckInstances()
- func (tef *Fault) DeleteCheck(c Check)
- func (tef *Fault) DeleteProperty(p Property)
- func (tef *Fault) Destroy()
- func (tef *Fault) Detach()
- func (tef *Fault) GetBucket() Receiver
- func (tef *Fault) GetEnvironment() string
- func (tef *Fault) GetID() string
- func (tef *Fault) GetName() string
- func (tef *Fault) GetType() string
- func (tef *Fault) LoadInstance(i CheckInstance)
- func (tef *Fault) ReAttach(a AttachRequest)
- func (tef *Fault) Receive(r ReceiveRequest)
- func (tef *Fault) SetCheck(c Check)
- func (tef *Fault) SetProperty(p Property)
- func (tef *Fault) Unlink(u UnlinkRequest)
- func (tef *Fault) UpdateProperty(p Property)
- type FaultReceiver
- type FaultUnlinker
- type FindRequest
- type Finder
- type Group
- func (teg *Group) Attach(a AttachRequest)
- func (teg *Group) ClearLoadInfo()
- func (teg Group) Clone() *Group
- func (teg Group) CloneBucket() BucketAttacher
- func (teg Group) CloneGroup() GroupAttacher
- func (teg *Group) ComputeCheckInstances()
- func (teg *Group) DeleteCheck(c Check)
- func (teg *Group) DeleteProperty(p Property)
- func (teg *Group) Destroy()
- func (teg *Group) Detach()
- func (teg *Group) Find(f FindRequest, b bool) Attacher
- func (teg *Group) GetBucket() Receiver
- func (teg *Group) GetEnvironment() string
- func (teg *Group) GetID() string
- func (teg *Group) GetName() string
- func (teg *Group) GetRepository() string
- func (teg *Group) GetRepositoryName() string
- func (teg *Group) GetType() string
- func (teg *Group) LoadInstance(i CheckInstance)
- func (teg *Group) ReAttach(a AttachRequest)
- func (teg *Group) Receive(r ReceiveRequest)
- func (teg *Group) SetCheck(c Check)
- func (teg *Group) SetProperty(p Property)
- func (teg *Group) Unlink(u UnlinkRequest)
- func (teg *Group) UpdateProperty(p Property)
- type GroupAttacher
- type GroupReceiver
- type GroupSpec
- type GroupUnlinker
- type Node
- func (ten *Node) Attach(a AttachRequest)
- func (ten *Node) ClearLoadInfo()
- func (ten Node) Clone() *Node
- func (ten Node) CloneBucket() BucketAttacher
- func (ten Node) CloneCluster() ClusterAttacher
- func (ten Node) CloneGroup() GroupAttacher
- func (ten *Node) ComputeCheckInstances()
- func (ten *Node) DeleteCheck(c Check)
- func (ten *Node) DeleteProperty(p Property)
- func (ten *Node) Destroy()
- func (ten *Node) Detach()
- func (ten *Node) Find(f FindRequest, b bool) Attacher
- func (ten *Node) GetID() string
- func (ten *Node) GetName() string
- func (ten *Node) GetType() string
- func (ten *Node) LoadInstance(i CheckInstance)
- func (ten *Node) ReAttach(a AttachRequest)
- func (ten *Node) SetCheck(c Check)
- func (ten *Node) SetProperty(p Property)
- func (ten *Node) UpdateProperty(p Property)
- type NodeReceiver
- type NodeSpec
- type NodeUnlinker
- type Propertier
- type Property
- type PropertyCustom
- func (p PropertyCustom) Clone() Property
- func (p *PropertyCustom) Equal(id uuid.UUID) bool
- func (p *PropertyCustom) GetID() string
- func (p *PropertyCustom) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
- func (p *PropertyCustom) GetIsInherited() bool
- func (p *PropertyCustom) GetKey() string
- func (p *PropertyCustom) GetKeyField() string
- func (p *PropertyCustom) GetSource() string
- func (p *PropertyCustom) GetSourceInstance() string
- func (p *PropertyCustom) GetSourceType() string
- func (p *PropertyCustom) GetType() string
- func (p *PropertyCustom) GetValue() string
- func (p *PropertyCustom) GetValueField() string
- func (p *PropertyCustom) GetView() string
- func (p *PropertyCustom) MakeAction() Action
- func (p *PropertyCustom) SetId(id uuid.UUID)
- func (p *PropertyCustom) SetInherited(inherited bool)
- func (p *PropertyCustom) SetInheritedFrom(id uuid.UUID)
- func (p *PropertyCustom) SetSourceId(id uuid.UUID)
- func (p *PropertyCustom) SetSourceType(s string)
- type PropertyInstance
- type PropertyOncall
- func (p PropertyOncall) Clone() Property
- func (p *PropertyOncall) Equal(id uuid.UUID) bool
- func (p *PropertyOncall) GetID() string
- func (p *PropertyOncall) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
- func (p *PropertyOncall) GetIsInherited() bool
- func (p *PropertyOncall) GetKey() string
- func (p *PropertyOncall) GetName() string
- func (p *PropertyOncall) GetNumber() string
- func (p *PropertyOncall) GetSource() string
- func (p *PropertyOncall) GetSourceInstance() string
- func (p *PropertyOncall) GetSourceType() string
- func (p *PropertyOncall) GetType() string
- func (p *PropertyOncall) GetValue() string
- func (p *PropertyOncall) GetView() string
- func (p *PropertyOncall) MakeAction() Action
- func (p *PropertyOncall) SetId(id uuid.UUID)
- func (p *PropertyOncall) SetInherited(inherited bool)
- func (p *PropertyOncall) SetInheritedFrom(id uuid.UUID)
- func (p *PropertyOncall) SetSourceId(id uuid.UUID)
- func (p *PropertyOncall) SetSourceType(s string)
- type PropertyService
- func (p PropertyService) Clone() Property
- func (p *PropertyService) Equal(id uuid.UUID) bool
- func (p *PropertyService) GetID() string
- func (p *PropertyService) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
- func (p *PropertyService) GetIsInherited() bool
- func (p *PropertyService) GetKey() string
- func (p *PropertyService) GetSource() string
- func (p *PropertyService) GetSourceInstance() string
- func (p *PropertyService) GetSourceType() string
- func (p *PropertyService) GetType() string
- func (p *PropertyService) GetValue() string
- func (p *PropertyService) GetView() string
- func (p *PropertyService) MakeAction() Action
- func (p *PropertyService) SetId(id uuid.UUID)
- func (p *PropertyService) SetInherited(inherited bool)
- func (p *PropertyService) SetInheritedFrom(id uuid.UUID)
- func (p *PropertyService) SetSourceId(id uuid.UUID)
- func (p *PropertyService) SetSourceType(s string)
- type PropertySystem
- func (p PropertySystem) Clone() Property
- func (p *PropertySystem) Equal(id uuid.UUID) bool
- func (p *PropertySystem) GetID() string
- func (p *PropertySystem) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
- func (p *PropertySystem) GetIsInherited() bool
- func (p *PropertySystem) GetKey() string
- func (p *PropertySystem) GetSource() string
- func (p *PropertySystem) GetSourceInstance() string
- func (p *PropertySystem) GetSourceType() string
- func (p *PropertySystem) GetType() string
- func (p *PropertySystem) GetValue() string
- func (p *PropertySystem) GetView() string
- func (p *PropertySystem) MakeAction() Action
- func (p *PropertySystem) SetId(id uuid.UUID)
- func (p *PropertySystem) SetInherited(inherited bool)
- func (p *PropertySystem) SetInheritedFrom(id uuid.UUID)
- func (p *PropertySystem) SetSourceId(id uuid.UUID)
- func (p *PropertySystem) SetSourceType(s string)
- type ReceiveRequest
- type Receiver
- type Repository
- func (ter *Repository) Attach(a AttachRequest)
- func (ter *Repository) ClearLoadInfo()
- func (ter Repository) Clone() Repository
- func (ter *Repository) ComputeCheckInstances()
- func (ter *Repository) DeleteCheck(c Check)
- func (ter *Repository) DeleteProperty(p Property)
- func (ter *Repository) Destroy()
- func (ter *Repository) Detach()
- func (ter *Repository) Find(f FindRequest, b bool) Attacher
- func (ter *Repository) GetID() string
- func (ter *Repository) GetName() string
- func (ter *Repository) GetType() string
- func (ter *Repository) LoadInstance(i CheckInstance)
- func (ter *Repository) Receive(r ReceiveRequest)
- func (ter *Repository) SetCheck(c Check)
- func (ter *Repository) SetProperty(p Property)
- func (ter *Repository) Unlink(u UnlinkRequest)
- func (ter *Repository) UpdateProperty(p Property)
- type RepositoryAttacher
- type RepositoryReceiver
- type RepositorySpec
- type RepositoryUnlinker
- type RootAttacher
- type Tree
- func (st *Tree) AttachError(err Error)
- func (st *Tree) Begin()
- func (st *Tree) ClearLoadInfo()
- func (st *Tree) Commit()
- func (st *Tree) ComputeCheckInstances()
- func (st *Tree) Find(f FindRequest, b bool) Attacher
- func (st *Tree) GetErrors() []error
- func (st *Tree) GetID() string
- func (st *Tree) GetName() string
- func (st *Tree) GetType() string
- func (st *Tree) Receive(r ReceiveRequest)
- func (st *Tree) Rollback()
- func (st *Tree) SetError(c chan *Error)
- func (st *Tree) Unlink(u UnlinkRequest)
- type TreeSpec
- type UnlinkRequest
- type Unlinker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Action string `json:"action,omitempty"`
Type string `json:"type,omitempty"`
Bucket proto.Bucket `json:"bucket,omitempty"`
Check proto.Check `json:"check,omitempty"`
CheckInstance proto.CheckInstance `json:"check_instance,omitempty"`
ChildCluster proto.Cluster `json:"child_cluster,omitempty"`
ChildGroup proto.Group `json:"child_group,omitempty"`
ChildNode proto.Node `json:"child_node,omitempty"`
ChildType string `json:"child_type,omitempty"`
Cluster proto.Cluster `json:"cluster,omitempty"`
Group proto.Group `json:"group,omitempty"`
Node proto.Node `json:"node,omitempty"`
Property proto.Property `json:"property,omitempty"`
Repository proto.Repository `json:"repository,omitempty"`
}
type AttachRequest ¶
type Attacher ¶
type Attacher interface {
Propertier
Checker
Attach(a AttachRequest)
Destroy()
Detach()
GetName() string
ComputeCheckInstances()
ClearLoadInfo()
// contains filtered or unexported methods
}
type Bucket ¶
type Bucket struct {
Id uuid.UUID
Name string
Environment string
Type string
State string
Frozen bool
Deleted bool
Repository uuid.UUID
Team uuid.UUID
Parent BucketReceiver `json:"-"`
Fault *Fault `json:"-"`
PropertyOncall map[string]Property
PropertyService map[string]Property
PropertySystem map[string]Property
PropertyCustom map[string]Property
Checks map[string]Check
Children map[string]BucketAttacher //`json:"-"`
Action chan *Action `json:"-"`
}
func (*Bucket) ClearLoadInfo ¶
func (teb *Bucket) ClearLoadInfo()
func (Bucket) CloneRepository ¶
func (teb Bucket) CloneRepository() RepositoryAttacher
func (*Bucket) ComputeCheckInstances ¶
func (teb *Bucket) ComputeCheckInstances()
func (*Bucket) DeleteCheck ¶
func (*Bucket) DeleteProperty ¶
func (*Bucket) GetEnvironment ¶
func (*Bucket) GetRepository ¶
func (*Bucket) GetRepositoryName ¶
func (*Bucket) SetProperty ¶
func (*Bucket) UpdateProperty ¶
type BucketAttacher ¶
type BucketAttacher interface {
Attacher
CloneBucket() BucketAttacher
ReAttach(a AttachRequest)
// contains filtered or unexported methods
}
implemented by: groups, clusters, nodes
type BucketReceiver ¶
type BucketReceiver interface {
Receiver
BucketUnlinker
// contains filtered or unexported methods
}
implemented by: repositories
type BucketSpec ¶
type BucketUnlinker ¶
type BucketUnlinker interface {
Unlinker
// contains filtered or unexported methods
}
type Check ¶
type Check struct {
Id uuid.UUID
SourceId uuid.UUID
SourceType string
Inherited bool
InheritedFrom uuid.UUID
CapabilityId uuid.UUID
ConfigId uuid.UUID
Inheritance bool
ChildrenOnly bool
View string
Interval uint64
Thresholds []CheckThreshold
Constraints []CheckConstraint
Items []CheckItem
}
func (*Check) GetCapabilityId ¶
func (*Check) GetCheckConfigId ¶
func (*Check) GetCheckId ¶
func (*Check) GetChildrenOnly ¶
func (*Check) GetInheritance ¶
func (*Check) GetInheritedFrom ¶
func (*Check) GetInterval ¶
func (*Check) GetIsInherited ¶
func (*Check) GetSourceCheckId ¶
func (*Check) GetSourceType ¶
func (*Check) MakeAction ¶
type CheckConstraint ¶
func (*CheckConstraint) Clone ¶
func (cc *CheckConstraint) Clone() CheckConstraint
type CheckGetter ¶
type CheckGetter interface {
GetCheckId() string
GetSourceCheckId() string
GetCheckConfigId() string
GetSourceType() string
GetIsInherited() bool
GetInheritedFrom() string
GetInheritance() bool
GetChildrenOnly() bool
GetView() string
GetCapabilityId() string
GetInterval() uint64
GetItemId(objType string, objId uuid.UUID) uuid.UUID
}
type CheckInstance ¶
type CheckInstance struct {
InstanceId uuid.UUID
CheckId uuid.UUID
ConfigId uuid.UUID
InstanceConfigId uuid.UUID
Version uint64
ConstraintHash string
ConstraintValHash string
ConstraintOncall string // Ids
ConstraintService map[string]string // svcName->value
ConstraintSystem map[string]string // Id->value
ConstraintCustom map[string]string // Id->value
ConstraintNative map[string]string // prop->value
ConstraintAttribute map[string]map[string][]string // svcId->attr->[ value, value, ... ]
InstanceServiceConfig map[string]string // attr->value
InstanceService string
InstanceSvcCfgHash string
}
func (*CheckInstance) Clone ¶
func (tci *CheckInstance) Clone() CheckInstance
func (CheckInstance) MakeAction ¶
func (ci CheckInstance) MakeAction() Action
type CheckThreshold ¶
func (*CheckThreshold) Clone ¶
func (ct *CheckThreshold) Clone() CheckThreshold
type Checker ¶
type Checker interface {
SetCheck(c Check)
LoadInstance(i CheckInstance)
DeleteCheck(c Check)
// contains filtered or unexported methods
}
type Cluster ¶
type Cluster struct {
Id uuid.UUID
Name string
State string
Team uuid.UUID
Type string
Parent ClusterReceiver `json:"-"`
Fault *Fault `json:"-"`
Action chan *Action `json:"-"`
PropertyOncall map[string]Property
PropertyService map[string]Property
PropertySystem map[string]Property
PropertyCustom map[string]Property
Checks map[string]Check
CheckInstances map[string][]string
Instances map[string]CheckInstance
Children map[string]ClusterAttacher `json:"-"`
// contains filtered or unexported fields
}
func (*Cluster) ClearLoadInfo ¶
func (tec *Cluster) ClearLoadInfo()
func (Cluster) CloneBucket ¶
func (tec Cluster) CloneBucket() BucketAttacher
func (Cluster) CloneGroup ¶
func (tec Cluster) CloneGroup() GroupAttacher
func (*Cluster) ComputeCheckInstances ¶
func (tec *Cluster) ComputeCheckInstances()
func (*Cluster) DeleteCheck ¶
func (*Cluster) DeleteProperty ¶
func (*Cluster) GetEnvironment ¶
func (*Cluster) GetRepository ¶
func (*Cluster) GetRepositoryName ¶
func (*Cluster) LoadInstance ¶
func (tec *Cluster) LoadInstance(i CheckInstance)
func (*Cluster) ReAttach ¶
func (tec *Cluster) ReAttach(a AttachRequest)
func (*Cluster) SetProperty ¶
func (*Cluster) UpdateProperty ¶
type ClusterAttacher ¶
type ClusterAttacher interface {
Attacher
CloneCluster() ClusterAttacher
ReAttach(a AttachRequest)
// contains filtered or unexported methods
}
implemented by: nodes
type ClusterReceiver ¶
type ClusterReceiver interface {
Receiver
ClusterUnlinker
// contains filtered or unexported methods
}
implemented by: buckets, groups
type ClusterSpec ¶
type ClusterUnlinker ¶
type ClusterUnlinker interface {
Unlinker
// contains filtered or unexported methods
}
type Configurator ¶
type Configurator interface {
// contains filtered or unexported methods
}
type Fault ¶
type Fault struct {
Id uuid.UUID
Name string
Type string
State string
Parent FaultReceiver `json:"-"`
Errors []error
Action chan *Action `json:"-"`
Error chan *Error `json:"-"`
}
func (*Fault) ClearLoadInfo ¶
func (tef *Fault) ClearLoadInfo()
func (Fault) CloneRepository ¶
func (tef Fault) CloneRepository() RepositoryAttacher
func (*Fault) ComputeCheckInstances ¶
func (tef *Fault) ComputeCheckInstances()
func (*Fault) DeleteCheck ¶
func (*Fault) DeleteProperty ¶
func (*Fault) GetEnvironment ¶
func (*Fault) LoadInstance ¶
func (tef *Fault) LoadInstance(i CheckInstance)
func (*Fault) ReAttach ¶
func (tef *Fault) ReAttach(a AttachRequest)
func (*Fault) SetProperty ¶
func (*Fault) UpdateProperty ¶
type FaultReceiver ¶
type FaultReceiver interface {
Receiver
FaultUnlinker
// contains filtered or unexported methods
}
type FaultUnlinker ¶
type FaultUnlinker interface {
Unlinker
// contains filtered or unexported methods
}
type FindRequest ¶
type Finder ¶
type Finder interface {
Find(f FindRequest, b bool) Attacher
}
type Group ¶
type Group struct {
Id uuid.UUID
Name string
State string
Team uuid.UUID
Type string
Parent GroupReceiver `json:"-"`
Fault *Fault `json:"-"`
Action chan *Action `json:"-"`
PropertyOncall map[string]Property
PropertyService map[string]Property
PropertySystem map[string]Property
PropertyCustom map[string]Property
Checks map[string]Check
CheckInstances map[string][]string
Instances map[string]CheckInstance
Children map[string]GroupAttacher `json:"-"`
// contains filtered or unexported fields
}
func (*Group) ClearLoadInfo ¶
func (teg *Group) ClearLoadInfo()
func (Group) CloneBucket ¶
func (teg Group) CloneBucket() BucketAttacher
func (Group) CloneGroup ¶
func (teg Group) CloneGroup() GroupAttacher
func (*Group) ComputeCheckInstances ¶
func (teg *Group) ComputeCheckInstances()
func (*Group) DeleteCheck ¶
func (*Group) DeleteProperty ¶
func (*Group) GetEnvironment ¶
func (*Group) GetRepository ¶
func (*Group) GetRepositoryName ¶
func (*Group) LoadInstance ¶
func (teg *Group) LoadInstance(i CheckInstance)
func (*Group) ReAttach ¶
func (teg *Group) ReAttach(a AttachRequest)
func (*Group) SetProperty ¶
func (*Group) UpdateProperty ¶
type GroupAttacher ¶
type GroupAttacher interface {
Attacher
CloneGroup() GroupAttacher
ReAttach(a AttachRequest)
// contains filtered or unexported methods
}
implemented by: groups, clusters, nodes
type GroupReceiver ¶
type GroupReceiver interface {
Receiver
GroupUnlinker
// contains filtered or unexported methods
}
implemented by: buckets, groups
type GroupUnlinker ¶
type GroupUnlinker interface {
Unlinker
// contains filtered or unexported methods
}
type Node ¶
type Node struct {
Id uuid.UUID
Name string
AssetId uint64
Team uuid.UUID
ServerId uuid.UUID
State string
Online bool
Deleted bool
Type string
Parent NodeReceiver `json:"-"`
Fault *Fault `json:"-"`
Action chan *Action `json:"-"`
PropertyOncall map[string]Property
PropertyService map[string]Property
PropertySystem map[string]Property
PropertyCustom map[string]Property
Checks map[string]Check
CheckInstances map[string][]string
Instances map[string]CheckInstance
// contains filtered or unexported fields
}
func (*Node) ClearLoadInfo ¶
func (ten *Node) ClearLoadInfo()
func (Node) CloneBucket ¶
func (ten Node) CloneBucket() BucketAttacher
func (Node) CloneCluster ¶
func (ten Node) CloneCluster() ClusterAttacher
func (Node) CloneGroup ¶
func (ten Node) CloneGroup() GroupAttacher
func (*Node) ComputeCheckInstances ¶
func (ten *Node) ComputeCheckInstances()
func (*Node) DeleteCheck ¶
func (*Node) DeleteProperty ¶
func (*Node) LoadInstance ¶
func (ten *Node) LoadInstance(i CheckInstance)
func (*Node) ReAttach ¶
func (ten *Node) ReAttach(a AttachRequest)
func (*Node) SetProperty ¶
func (*Node) UpdateProperty ¶
type NodeReceiver ¶
type NodeReceiver interface {
Receiver
NodeUnlinker
// contains filtered or unexported methods
}
implemented by: buckets, groups, clusters
type NodeUnlinker ¶
type NodeUnlinker interface {
Unlinker
// contains filtered or unexported methods
}
type Propertier ¶
type Property ¶
type Property interface {
GetID() string
GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
GetIsInherited() bool
GetKey() string
GetSource() string
GetSourceInstance() string
GetSourceType() string
GetType() string
GetValue() string
GetView() string
SetId(id uuid.UUID)
SetInherited(inherited bool)
SetInheritedFrom(id uuid.UUID)
SetSourceId(id uuid.UUID)
SetSourceType(s string)
Clone() Property
Equal(id uuid.UUID) bool
MakeAction() Action
// contains filtered or unexported methods
}
type PropertyCustom ¶
type PropertyCustom struct {
// Id of the custom property
Id uuid.UUID
// Id of the source custom property this was inherited from
SourceId uuid.UUID
// ObjectType the source property was attached to
SourceType string
// Id of the custom property type
CustomId uuid.UUID
// Indicator if this was inherited
Inherited bool
// Id of the object the SourceId property is on
InheritedFrom uuid.UUID
// Inheritance is enabled/disabled
Inheritance bool
// ChildrenOnly is enabled/disabled
ChildrenOnly bool
// View this property is attached in
View string
// Property Key
Key string
// Property Value
Value string
// Filled with IDs during from-DB load to restore with same IDs
Instances []PropertyInstance
}
Custom
func (PropertyCustom) Clone ¶
func (p PropertyCustom) Clone() Property
func (*PropertyCustom) Equal ¶
func (p *PropertyCustom) Equal(id uuid.UUID) bool
func (*PropertyCustom) GetID ¶
func (p *PropertyCustom) GetID() string
func (*PropertyCustom) GetInstanceId ¶
func (p *PropertyCustom) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
func (*PropertyCustom) GetIsInherited ¶
func (p *PropertyCustom) GetIsInherited() bool
func (*PropertyCustom) GetKey ¶
func (p *PropertyCustom) GetKey() string
func (*PropertyCustom) GetKeyField ¶
func (p *PropertyCustom) GetKeyField() string
func (*PropertyCustom) GetSource ¶
func (p *PropertyCustom) GetSource() string
func (*PropertyCustom) GetSourceInstance ¶
func (p *PropertyCustom) GetSourceInstance() string
func (*PropertyCustom) GetSourceType ¶
func (p *PropertyCustom) GetSourceType() string
func (*PropertyCustom) GetType ¶
func (p *PropertyCustom) GetType() string
func (*PropertyCustom) GetValue ¶
func (p *PropertyCustom) GetValue() string
func (*PropertyCustom) GetValueField ¶
func (p *PropertyCustom) GetValueField() string
func (*PropertyCustom) GetView ¶
func (p *PropertyCustom) GetView() string
func (*PropertyCustom) MakeAction ¶
func (p *PropertyCustom) MakeAction() Action
func (*PropertyCustom) SetId ¶
func (p *PropertyCustom) SetId(id uuid.UUID)
func (*PropertyCustom) SetInherited ¶
func (p *PropertyCustom) SetInherited(inherited bool)
func (*PropertyCustom) SetInheritedFrom ¶
func (p *PropertyCustom) SetInheritedFrom(id uuid.UUID)
func (*PropertyCustom) SetSourceId ¶
func (p *PropertyCustom) SetSourceId(id uuid.UUID)
func (*PropertyCustom) SetSourceType ¶
func (p *PropertyCustom) SetSourceType(s string)
type PropertyInstance ¶
type PropertyInstance struct {
ObjectId uuid.UUID
ObjectType string
InstanceId uuid.UUID
}
type PropertyOncall ¶
type PropertyOncall struct {
Id uuid.UUID
SourceId uuid.UUID
SourceType string
OncallId uuid.UUID
Inherited bool
InheritedFrom uuid.UUID
Inheritance bool
ChildrenOnly bool
View string
Name string
Number string
Instances []PropertyInstance
}
Oncall
func (PropertyOncall) Clone ¶
func (p PropertyOncall) Clone() Property
func (*PropertyOncall) Equal ¶
func (p *PropertyOncall) Equal(id uuid.UUID) bool
func (*PropertyOncall) GetID ¶
func (p *PropertyOncall) GetID() string
func (*PropertyOncall) GetInstanceId ¶
func (p *PropertyOncall) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
func (*PropertyOncall) GetIsInherited ¶
func (p *PropertyOncall) GetIsInherited() bool
func (*PropertyOncall) GetKey ¶
func (p *PropertyOncall) GetKey() string
func (*PropertyOncall) GetName ¶
func (p *PropertyOncall) GetName() string
func (*PropertyOncall) GetNumber ¶
func (p *PropertyOncall) GetNumber() string
func (*PropertyOncall) GetSource ¶
func (p *PropertyOncall) GetSource() string
func (*PropertyOncall) GetSourceInstance ¶
func (p *PropertyOncall) GetSourceInstance() string
func (*PropertyOncall) GetSourceType ¶
func (p *PropertyOncall) GetSourceType() string
func (*PropertyOncall) GetType ¶
func (p *PropertyOncall) GetType() string
func (*PropertyOncall) GetValue ¶
func (p *PropertyOncall) GetValue() string
func (*PropertyOncall) GetView ¶
func (p *PropertyOncall) GetView() string
func (*PropertyOncall) MakeAction ¶
func (p *PropertyOncall) MakeAction() Action
func (*PropertyOncall) SetId ¶
func (p *PropertyOncall) SetId(id uuid.UUID)
func (*PropertyOncall) SetInherited ¶
func (p *PropertyOncall) SetInherited(inherited bool)
func (*PropertyOncall) SetInheritedFrom ¶
func (p *PropertyOncall) SetInheritedFrom(id uuid.UUID)
func (*PropertyOncall) SetSourceId ¶
func (p *PropertyOncall) SetSourceId(id uuid.UUID)
func (*PropertyOncall) SetSourceType ¶
func (p *PropertyOncall) SetSourceType(s string)
type PropertyService ¶
type PropertyService struct {
Id uuid.UUID
SourceId uuid.UUID
SourceType string
Inherited bool
InheritedFrom uuid.UUID
Inheritance bool
ChildrenOnly bool
View string
Service string
Attributes []proto.ServiceAttribute
Instances []PropertyInstance
}
Service
func (PropertyService) Clone ¶
func (p PropertyService) Clone() Property
func (*PropertyService) Equal ¶
func (p *PropertyService) Equal(id uuid.UUID) bool
func (*PropertyService) GetID ¶
func (p *PropertyService) GetID() string
func (*PropertyService) GetInstanceId ¶
func (p *PropertyService) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
func (*PropertyService) GetIsInherited ¶
func (p *PropertyService) GetIsInherited() bool
func (*PropertyService) GetKey ¶
func (p *PropertyService) GetKey() string
func (*PropertyService) GetSource ¶
func (p *PropertyService) GetSource() string
func (*PropertyService) GetSourceInstance ¶
func (p *PropertyService) GetSourceInstance() string
func (*PropertyService) GetSourceType ¶
func (p *PropertyService) GetSourceType() string
func (*PropertyService) GetType ¶
func (p *PropertyService) GetType() string
func (*PropertyService) GetValue ¶
func (p *PropertyService) GetValue() string
service has no Value per se, so ensure comparing values never succeeds, but Interface is fulfilled
func (*PropertyService) GetView ¶
func (p *PropertyService) GetView() string
func (*PropertyService) MakeAction ¶
func (p *PropertyService) MakeAction() Action
func (*PropertyService) SetId ¶
func (p *PropertyService) SetId(id uuid.UUID)
func (*PropertyService) SetInherited ¶
func (p *PropertyService) SetInherited(inherited bool)
func (*PropertyService) SetInheritedFrom ¶
func (p *PropertyService) SetInheritedFrom(id uuid.UUID)
func (*PropertyService) SetSourceId ¶
func (p *PropertyService) SetSourceId(id uuid.UUID)
func (*PropertyService) SetSourceType ¶
func (p *PropertyService) SetSourceType(s string)
type PropertySystem ¶
type PropertySystem struct {
Id uuid.UUID
SourceId uuid.UUID
SourceType string
Inherited bool
InheritedFrom uuid.UUID
Inheritance bool
ChildrenOnly bool
View string
Key string
Value string
Instances []PropertyInstance
}
System
func (PropertySystem) Clone ¶
func (p PropertySystem) Clone() Property
func (*PropertySystem) Equal ¶
func (p *PropertySystem) Equal(id uuid.UUID) bool
func (*PropertySystem) GetID ¶
func (p *PropertySystem) GetID() string
func (*PropertySystem) GetInstanceId ¶
func (p *PropertySystem) GetInstanceId(objType string, objId uuid.UUID) uuid.UUID
func (*PropertySystem) GetIsInherited ¶
func (p *PropertySystem) GetIsInherited() bool
func (*PropertySystem) GetKey ¶
func (p *PropertySystem) GetKey() string
func (*PropertySystem) GetSource ¶
func (p *PropertySystem) GetSource() string
func (*PropertySystem) GetSourceInstance ¶
func (p *PropertySystem) GetSourceInstance() string
func (*PropertySystem) GetSourceType ¶
func (p *PropertySystem) GetSourceType() string
func (*PropertySystem) GetType ¶
func (p *PropertySystem) GetType() string
func (*PropertySystem) GetValue ¶
func (p *PropertySystem) GetValue() string
func (*PropertySystem) GetView ¶
func (p *PropertySystem) GetView() string
func (*PropertySystem) MakeAction ¶
func (p *PropertySystem) MakeAction() Action
func (*PropertySystem) SetId ¶
func (p *PropertySystem) SetId(id uuid.UUID)
func (*PropertySystem) SetInherited ¶
func (p *PropertySystem) SetInherited(inherited bool)
func (*PropertySystem) SetInheritedFrom ¶
func (p *PropertySystem) SetInheritedFrom(id uuid.UUID)
func (*PropertySystem) SetSourceId ¶
func (p *PropertySystem) SetSourceId(id uuid.UUID)
func (*PropertySystem) SetSourceType ¶
func (p *PropertySystem) SetSourceType(s string)
type ReceiveRequest ¶
type Receiver ¶
type Receiver interface {
Receive(r ReceiveRequest)
}
type Repository ¶
type Repository struct {
Id uuid.UUID
Name string
Team uuid.UUID
Deleted bool
Active bool
Type string
State string
Parent RepositoryReceiver `json:"-"`
Fault *Fault `json:"-"`
PropertyOncall map[string]Property
PropertyService map[string]Property
PropertySystem map[string]Property
PropertyCustom map[string]Property
Checks map[string]Check
Children map[string]RepositoryAttacher // `json:"-"`
Action chan *Action `json:"-"`
}
func (*Repository) ClearLoadInfo ¶
func (ter *Repository) ClearLoadInfo()
func (Repository) Clone ¶
func (ter Repository) Clone() Repository
func (*Repository) ComputeCheckInstances ¶
func (ter *Repository) ComputeCheckInstances()
func (*Repository) DeleteCheck ¶
func (ter *Repository) DeleteCheck(c Check)
func (*Repository) DeleteProperty ¶
func (ter *Repository) DeleteProperty(p Property)
func (*Repository) Destroy ¶
func (ter *Repository) Destroy()
func (*Repository) Detach ¶
func (ter *Repository) Detach()
func (*Repository) Find ¶
func (ter *Repository) Find(f FindRequest, b bool) Attacher
Interface: Finder
func (*Repository) GetName ¶
func (ter *Repository) GetName() string
func (*Repository) GetType ¶
func (ter *Repository) GetType() string
func (*Repository) SetProperty ¶
func (ter *Repository) SetProperty(p Property)
func (*Repository) UpdateProperty ¶
func (ter *Repository) UpdateProperty(p Property)
type RepositoryAttacher ¶
type RepositoryAttacher interface {
Attacher
CloneRepository() RepositoryAttacher
// contains filtered or unexported methods
}
implemented by: buckets
type RepositoryReceiver ¶
type RepositoryReceiver interface {
Receiver
RepositoryUnlinker
// contains filtered or unexported methods
}
implemented by: root
type RepositorySpec ¶
type RepositoryUnlinker ¶
type RepositoryUnlinker interface {
Unlinker
// contains filtered or unexported methods
}
type RootAttacher ¶
type RootAttacher interface {
Attacher
// contains filtered or unexported methods
}
implemented by: repository
type Tree ¶
type Tree struct {
Id uuid.UUID
Name string
Type string
Child *Repository
Snap *Repository
Action chan *Action `json:"-"`
}
func (*Tree) AttachError ¶
func (*Tree) ClearLoadInfo ¶
func (st *Tree) ClearLoadInfo()
func (*Tree) ComputeCheckInstances ¶
func (st *Tree) ComputeCheckInstances()
type UnlinkRequest ¶
type Unlinker ¶
type Unlinker interface {
Unlink(u UnlinkRequest)
}
Source Files
¶
- action.go
- attacher.go
- attacher_bucket.go
- attacher_cluster.go
- attacher_fault.go
- attacher_group.go
- attacher_node.go
- attacher_repository.go
- bucket.go
- bucketeer.go
- builder.go
- checker.go
- checker_bucket.go
- checker_cluster.go
- checker_fault.go
- checker_group.go
- checker_node.go
- checker_repository.go
- cluster.go
- configurator.go
- configurator_cluster.go
- configurator_group.go
- configurator_node.go
- error.go
- fault.go
- finder.go
- finder_bucket.go
- finder_cluster.go
- finder_fault.go
- finder_group.go
- finder_node.go
- finder_repository.go
- group.go
- node.go
- propertier.go
- propertier_bucket.go
- propertier_cluster.go
- propertier_fault.go
- propertier_group.go
- propertier_node.go
- propertier_repository.go
- property.go
- receiver.go
- receiver_bucket.go
- receiver_cluster.go
- receiver_fault.go
- receiver_group.go
- receiver_repository.go
- repository.go
- tree.go
- unlinker_bucket.go
- unlinker_cluster.go
- unlinker_fault.go
- unlinker_group.go
- unlinker_repository.go
- util.go
- validation.go
Click to show internal directories.
Click to hide internal directories.