Documentation
¶
Overview ¶
Package pack loads product packs (folders of journeys, stresses and targets for one kind of product), detects which pack fits a target, and installs a pack's files into a project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detect ¶
type Detect struct {
Paths []string `yaml:"paths"`
OpenAPITags []string `yaml:"openapiTags"`
HTMLMeta []string `yaml:"htmlMeta"`
Headers map[string]string `yaml:"headers"`
}
Detect lists evidence that a target is this kind of product.
type Entry ¶
type Entry struct {
Name string `yaml:"name" json:"name"`
Title string `yaml:"title" json:"title"`
Status string `yaml:"status" json:"status"`
Signature string `yaml:"signature" json:"signature"`
Drivers []string `yaml:"drivers" json:"drivers"`
}
Entry is one line of the catalogue.
type Evidence ¶
type Evidence struct {
OpenAPI bool
// OIDC is set when the target publishes OpenID Connect discovery.
OIDC bool
Paths []string
OpenAPITags []string
HTML string
Headers http.Header
}
Evidence is what detection found about a target.
type JourneyResult ¶
type JourneyResult struct {
File string
Journey string
OK bool
// Problem describes the first failure.
Problem string
}
JourneyResult is the outcome of running one journey once.
type Pack ¶
type Pack struct {
Name string `yaml:"name"`
Title string `yaml:"title"`
Description string `yaml:"description"`
Status string `yaml:"status"`
Protocols []string `yaml:"protocols"`
ReferenceApp string `yaml:"referenceApp"`
Detect Detect `yaml:"detect"`
Variables map[string]struct {
Description string `yaml:"description"`
} `yaml:"variables"`
// contains filtered or unexported fields
}
Pack is a pack's manifest.
func (*Pack) Files ¶
Files lists the pack's scenario files (journeys and stresses), relative to the pack root.
Click to show internal directories.
Click to hide internal directories.