Documentation
¶
Index ¶
- Constants
- func ActiveInstanceId() string
- func ActiveInstancePath() string
- func AddBootstrapExtension(ext BootstrapExtension)
- func AllocateDump(run string) string
- func AllocateForensicScenario(run, scenario string) string
- func Bootstrap() error
- func BootstrapBindings() error
- func BootstrapInstance() error
- func ClearActiveInstance() error
- func ConfigBuild() string
- func ConfigSrc() string
- func CreateLabel(instanceId, modelName string) error
- func FablabRoot() string
- func KitBuild() string
- func ListDumps() ([]string, error)
- func ListInstances() ([]string, error)
- func ListModels() []string
- func NewInstance() (string, error)
- func NewNamedInstance(name string) error
- func PkiBuild() string
- func RegisterModel(name string, m *Model)
- func RemoveInstance(instanceId string) error
- func ScriptBuild() string
- func ScriptSrc() string
- func SetActiveInstance(instanceId string) error
- type Action
- type ActionBinder
- type ActionBinders
- type ActivationBinder
- type ActivationBinders
- type ActivationStage
- type Bindings
- type BootstrapExtension
- type Component
- type ComponentDump
- type Components
- type ConfigurationBinder
- type ConfigurationBinders
- type ConfigurationStage
- type CpuTimeslice
- type Data
- type DisposalBinder
- type DisposalBinders
- type DisposalStage
- type DistributionBinder
- type DistributionBinders
- type DistributionStage
- type Dump
- type Factory
- type Host
- type HostDump
- type HostSummary
- type Hosts
- type InfrastructureBinder
- type InfrastructureBinders
- type InfrastructureStage
- type InstanceState
- type IperfSummary
- type IperfTimeslice
- type IperfUdpSummary
- type IperfUdpTimeslice
- type KittingBinder
- type KittingBinders
- type KittingStage
- type Label
- type MemoryTimeslice
- type Model
- func (m *Model) Activate(l *Label) error
- func (m *Model) BindBindings(bindings Bindings) error
- func (m *Model) BindLabel(l *Label)
- func (m *Model) Build(l *Label) error
- func (m *Model) Dispose(l *Label) error
- func (m *Model) Dump() *Dump
- func (m *Model) Express(l *Label) error
- func (m *Model) GetAction(name string) (Action, bool)
- func (m *Model) GetAllHosts() []*Host
- func (m *Model) GetAllRegions() []*Region
- func (m *Model) GetComponentsByTag(componentTag string) []*Component
- func (m *Model) GetHostById(selectId string) (*Host, error)
- func (m *Model) GetHostByTags(regionTag, hostTag string) *Host
- func (m *Model) GetHosts(regionSpec, hostSpec string) []*Host
- func (m *Model) GetRegion(regionId string) *Region
- func (m *Model) GetRegionByTag(regionTag string) *Region
- func (m *Model) GetRegionsByTag(regionTag string) []*Region
- func (m *Model) GetVariable(name ...string) (interface{}, bool)
- func (m *Model) IsBound() bool
- func (m *Model) IterateScopes(f func(i interface{}, path ...string))
- func (m *Model) Kit(l *Label) error
- func (m *Model) Merge(parent *Model) error
- func (m *Model) MustVariable(name ...string) interface{}
- func (m *Model) Operate(l *Label) error
- func (m *Model) Sync(l *Label) error
- type OperatingBinder
- type OperatingBinders
- type OperatingStage
- type ProcessTimeslice
- type Region
- type RegionDump
- type Regions
- type Scope
- type ScopeDump
- type Tags
- type Variable
- type VariableDump
- type Variables
- type ZitiFabricLinkMetricsSummary
- type ZitiFabricLinkSummary
- type ZitiFabricMeshSummary
- type ZitiFabricRouterMetricsSummary
Constants ¶
View Source
const Version = "0.3.6 (sp1r4l)"
Variables ¶
This section is empty.
Functions ¶
func ActiveInstanceId ¶
func ActiveInstanceId() string
func ActiveInstancePath ¶
func ActiveInstancePath() string
func AddBootstrapExtension ¶
func AddBootstrapExtension(ext BootstrapExtension)
func AllocateDump ¶ added in v0.3.4
func AllocateForensicScenario ¶ added in v0.3.5
func BootstrapBindings ¶
func BootstrapBindings() error
func BootstrapInstance ¶
func BootstrapInstance() error
func ClearActiveInstance ¶
func ClearActiveInstance() error
func ConfigBuild ¶
func ConfigBuild() string
func CreateLabel ¶
func FablabRoot ¶
func FablabRoot() string
func ListInstances ¶
func ListModels ¶
func ListModels() []string
func NewInstance ¶
func NewNamedInstance ¶
func RegisterModel ¶
func RemoveInstance ¶
func ScriptBuild ¶
func ScriptBuild() string
func SetActiveInstance ¶
Types ¶
type ActionBinder ¶
type ActionBinders ¶
type ActionBinders map[string]ActionBinder
type ActivationBinder ¶
type ActivationBinder func(m *Model) ActivationStage
type ActivationBinders ¶
type ActivationBinders []ActivationBinder
type ActivationStage ¶
type Bindings ¶
type Bindings map[interface{}]interface{}
func GetBindings ¶ added in v0.3.4
func GetBindings() Bindings
type BootstrapExtension ¶
type Component ¶
type ComponentDump ¶ added in v0.3.5
type ComponentDump struct { Scope *ScopeDump `json:"scope,omitempty"` ScriptSrc string `json:"script_src,omitempty"` ScriptName string `json:"script_name,omitempty"` ConfigSrc string `json:"config_src,omitempty"` ConfigName string `json:"config_name,omitempty"` BinaryName string `json:"binary_name,omitempty"` PublicIdentity string `json:"public_identity,omitempty` PrivateIdentity string `json:"private_identity,omitempty"` }
type Components ¶
func (Components) Merge ¶
func (c Components) Merge(parent Components) (Components, error)
type ConfigurationBinder ¶
type ConfigurationBinder func(m *Model) ConfigurationStage
type ConfigurationBinders ¶
type ConfigurationBinders []ConfigurationBinder
type ConfigurationStage ¶
type CpuTimeslice ¶ added in v0.3.5
type CpuTimeslice struct { TimestampMs int64 `json:"timestamp_ms"` PercentUser float64 `json:"percent_user"` PercentNice float64 `json:"percent_nice"` PercentSystem float64 `json:"percent_system"` PercentIowait float64 `json:"percent_iowait"` PercentSteal float64 `json:"percent_steal"` PercentIdle float64 `json:"percent_idle"` }
type DisposalBinder ¶
type DisposalBinder func(m *Model) DisposalStage
type DisposalBinders ¶
type DisposalBinders []DisposalBinder
type DisposalStage ¶
type DistributionBinder ¶
type DistributionBinder func(m *Model) DistributionStage
type DistributionBinders ¶
type DistributionBinders []DistributionBinder
type DistributionStage ¶
type Dump ¶ added in v0.3.4
type Dump struct { Scope *ScopeDump `json:"scope,omitempty"` Regions map[string]*RegionDump `json:"regions"` }
type Host ¶
type Host struct { Scope PublicIp string PrivateIp string InstanceType string Components Components }
func (*Host) GetComponent ¶
func (*Host) GetComponents ¶
func (*Host) GetComponentsByTag ¶
type HostSummary ¶ added in v0.3.5
type HostSummary struct { Cpu []*CpuTimeslice `json:"cpu,omitempty"` Memory []*MemoryTimeslice `json:"memory,omitempty"` Process []*ProcessTimeslice `json:"process,omitempty"` }
type InfrastructureBinder ¶
type InfrastructureBinder func(m *Model) InfrastructureStage
type InfrastructureBinders ¶
type InfrastructureBinders []InfrastructureBinder
type InfrastructureStage ¶
type InstanceState ¶
type InstanceState int
const ( Created InstanceState = iota Expressed Configured Kitted Distributed Activated Operating Disposed )
func (InstanceState) String ¶
func (instanceState InstanceState) String() string
type IperfSummary ¶
type IperfSummary struct { Timeslices []*IperfTimeslice `json:"timeslices"` Bytes float64 `json:"bytes"` BitsPerSecond float64 `json:"bits_per_second"` }
type IperfTimeslice ¶
type IperfUdpSummary ¶
type IperfUdpSummary struct { Timeslices []*IperfUdpTimeslice `json:"timeslices"` Bytes float64 `json:"bytes"` BitsPerSecond float64 `json:"bits_per_second"` JitterMs float64 `json:"jitter_ms"` LostPackets float64 `json:"lost_packets"` }
type IperfUdpTimeslice ¶
type KittingBinder ¶
type KittingBinder func(m *Model) KittingStage
type KittingBinders ¶
type KittingBinders []KittingBinder
type KittingStage ¶
type Label ¶
type Label struct { Model string `yaml:"model"` State InstanceState `yaml:"state"` Bindings Bindings `yaml:"bindings"` // contains filtered or unexported fields }
func LoadLabelForInstance ¶
func (*Label) SaveAtPath ¶
type MemoryTimeslice ¶ added in v0.3.5
type MemoryTimeslice struct { TimestampMs int64 `json:"timestamp_ms"` MemFreeK int64 `json:"free_k"` AvailK int64 `json:"avail_k"` UsedK int64 `json:"used_k"` UsedPercent float64 `json:"used_percent"` BuffersK int64 `json:"buffers_k"` CachedK int64 `json:"cached_k"` CommitK int64 `json:"commit_k"` CommitPercent float64 `json:"commit_percent"` ActiveK int64 `json:"active_k"` InactiveK int64 `json:"inactive_k"` DirtyK int64 `json:"dirty_k"` }
type Model ¶
type Model struct { Parent *Model Scope Regions Regions Factories []Factory Actions map[string]ActionBinder Infrastructure InfrastructureBinders Configuration ConfigurationBinders Kitting KittingBinders Distribution DistributionBinders Activation ActivationBinders Operation OperatingBinders Disposal DisposalBinders // contains filtered or unexported fields }
func (*Model) BindBindings ¶
func (*Model) GetAllHosts ¶
func (*Model) GetAllRegions ¶ added in v0.3.5
func (*Model) GetComponentsByTag ¶
func (*Model) GetHostByTags ¶
func (*Model) GetRegionByTag ¶
func (*Model) GetRegionsByTag ¶
func (*Model) GetVariable ¶
func (*Model) IterateScopes ¶
func (*Model) MustVariable ¶
type OperatingBinder ¶
type OperatingBinder func(m *Model) OperatingStage
type OperatingBinders ¶
type OperatingBinders []OperatingBinder
type OperatingStage ¶
type ProcessTimeslice ¶ added in v0.3.5
type ProcessTimeslice struct { TimestampMs int64 `json:"timestamp_ms"` RunQueueSize int64 `json:"run_queue_size"` ProcessListSize int64 `json:"process_list_size"` LoadAverage1m float64 `json:"load_average_1m"` LoadAverage5m float64 `json:"load_average_5m` LoadAverage15m float64 `json:"load_average_15m"` Blocked int64 `json:"blocked"` }
type RegionDump ¶ added in v0.3.4
type Scope ¶
type VariableDump ¶ added in v0.3.4
type VariableDump struct { Description string `json:"description,omitempty"` Default string `json:"default,omitempty"` Required bool `json:"required"` Scoped bool `json:"scoped"` GlobalFallback bool `json:"global_fallback"` Sensitive bool `json:"sensitive"` Binder string `json:"binder,omitempty"` Value string `json:"value,omitempty"` Bound bool `json:"bound"` }
type ZitiFabricLinkSummary ¶
type ZitiFabricMeshSummary ¶
type ZitiFabricMeshSummary struct { TimestampMs int64 `json:"timestamp_ms"` RouterIds []string `json:"router_ids"` Links []ZitiFabricLinkSummary `json:"links,omitempty"` }
type ZitiFabricRouterMetricsSummary ¶
type ZitiFabricRouterMetricsSummary struct { SourceId string `json:"source_id"` TimestampMs int64 `json:"timestamp_ms"` FabricRxBytesRateM1 float64 `json:"fabric_rx_bytes_rate_m1"` FabricTxBytesRateM1 float64 `json:"fabric_tx_bytes_rate_m1"` IngressRxBytesRateM1 float64 `json:"ingress_rx_bytes_rate_m1"` IngressTxBytesRateM1 float64 `json:"ingress_tx_bytes_rate_m1"` EgressRxBytesRateM1 float64 `json:"egress_rx_bytes_rate_m1"` EgressTxBytesRateM1 float64 `json:"egress_tx_bytes_rate_m1"` Links []ZitiFabricLinkMetricsSummary `json:"links,omitempty"` }
Click to show internal directories.
Click to hide internal directories.