Versions in this module Expand all Collapse all v0 v0.6.0 Mar 27, 2023 Changes in this version + const MainScript + const ResourceDir + func AllScripts() []string + func AllTypes() map[db.ResourceType]string + func GraphiteTimestamp(t time.Time) string + type Graphite struct + func (Graphite) Id() db.ResourceType + func (Graphite) Name() string + func (Graphite) Scripts() []string + func (Graphite) Templates() string + type GraphiteDaemon struct + Base string + func (g GraphiteDaemon) Query(target string, from, until time.Time) ([]GraphiteSeries, error) + func (g GraphiteDaemon) QueryRecent(target string, d time.Duration) ([]GraphiteSeries, error) + func (g GraphiteDaemon) RenderURL(targets []string, args map[string]string) string + type GraphiteResource struct + URL string + func (g GraphiteResource) Serialize() (string, error) + func (g GraphiteResource) Type() ResourceType + func (g GraphiteResource) Validate() []string + type GraphiteResourceDBModel struct + URL string + type GraphiteSeries struct + End time.Time + Name string + Start time.Time + Step time.Duration + Values []float64 + type Resource interface + Serialize func() (string, error) + Type func() ResourceType + Validate func() []string + func Blank(id db.ResourceType) (Resource, error) + func Default() (Resource, error) + func LoadFromDB(id db.ResourceType, dsJson string) (Resource, error) + func LoadFromParams(id db.ResourceType, dsParams string) (Resource, error) + type ResourceType interface + Id func() db.ResourceType + Name func() string + Scripts func() []string + Templates func() string + type VM struct + Delete bool + ResourceID db.ResourceID + ResourceParams string + ResourceType db.ResourceType + func All(DB *db.DB) ([]*VM, error) + func AllOfTypes(DB *db.DB, ids []db.ResourceType) ([]*VM, error) + func (*VM) ComponentName() string + func (vm *VM) Id() int64 + func (vm *VM) IsCreate() bool + func (vm *VM) IsDelete() bool + func (vm *VM) Save(tx *db.Tx) error + func (vm *VM) Validate() (errs []string) v0.6.0-alpha.0 Jun 18, 2021