Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "probe"
Type is the string value of the Target type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Artifact *Artifact Target *Target Logger logz.FieldLogger }
Action is th executor for implementing a network probe
func (*Action) UseLogger ¶
func (a *Action) UseLogger(logger logz.FieldLogger)
UseLogger injects a logger into the target's action
type Artifact ¶
type Artifact struct {
ark.RawArtifact `mapstructure:",squash"`
}
Artifact the result of a successful actions.Probe
func (Artifact) Cacheable ¶
Cacheable always returns false because probes are situational and should not be cacheable
func (Artifact) LocallyCached ¶
LocallyCached always returns false because the target is not cacheable
type Target ¶
type Target struct { ark.RawTarget `mapstructure:",squash"` DialAddress string `json:"address" mapstructure:"address"` Timeout string `json:"timeout" mapstructure:"timeout"` Delay string `json:"delay" mapstructure:"delay"` MaxRetries int `json:"maxRetries" mapstructure:"maxRetries"` ExpectedStatus int `json:"expectedStatus" mapstructure:"expectedStatus"` }
Target expresses the intention to implement a Probe target
Click to show internal directories.
Click to hide internal directories.