Documentation
¶
Index ¶
- func NormReq(req *restfile.Request) *restfile.Request
- func ReqID(req *restfile.Request) string
- func ReqMethod(req *restfile.Request) string
- func ReqTarget(req *restfile.Request) string
- func ReqTitle(req *restfile.Request) string
- func Tags(xs []string) []string
- type AuthState
- type CompareResult
- type CompareRow
- type Config
- type Executor
- type ProfileFailure
- type ProfileResult
- type RequestResult
- type RuntimeFile
- type RuntimeGlobal
- type RuntimeState
- type Timing
- type WorkflowResult
- type WorkflowStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthState ¶
type AuthState struct {
OAuth []oauth.SnapshotEntry `json:"oauth,omitempty"`
Command []authcmd.SnapshotEntry `json:"command,omitempty"`
}
type CompareResult ¶
type CompareRow ¶
type CompareRow struct {
Environment string
Summary string
Response *httpclient.Response
GRPC *grpcclient.Response
Stream *scripts.StreamInfo
Transcript []byte
Err error
Tests []scripts.TestResult
ScriptErr error
Skipped bool
SkipReason string
Canceled bool
Success bool
Duration time.Duration
}
type Config ¶
type Config struct {
FilePath string
Client *httpclient.Client
EnvironmentSet vars.EnvironmentSet
EnvironmentName string
EnvironmentFile string
AllowInteractiveOAuth bool
HTTPOptions httpclient.Options
GRPCOptions grpcclient.Options
SSHManager *ssh.Manager
K8sManager *k8s.Manager
History history.Store
WorkspaceRoot string
Recursive bool
CompareTargets []string
CompareBase string
Registry *registry.Index
Bindings *bindings.Map
}
type Executor ¶
type Executor interface {
ExecuteRequest(
doc *restfile.Document,
req *restfile.Request,
envOverride string,
) (RequestResult, error)
ExecuteWorkflow(
doc *restfile.Document,
wf *restfile.Workflow,
envOverride string,
) (*WorkflowResult, error)
ExecuteCompare(
doc *restfile.Document,
req *restfile.Request,
spec *restfile.CompareSpec,
envOverride string,
) (*CompareResult, error)
ExecuteProfile(
doc *restfile.Document,
req *restfile.Request,
envOverride string,
) (*ProfileResult, error)
RuntimeState() RuntimeState
LoadRuntimeState(RuntimeState)
AuthState() AuthState
LoadAuthState(AuthState)
Close() error
}
type ProfileFailure ¶
type ProfileResult ¶
type RequestResult ¶
type RequestResult struct {
Response *httpclient.Response
GRPC *grpcclient.Response
Stream *scripts.StreamInfo
Transcript []byte
Err error
Tests []scripts.TestResult
ScriptErr error
Executed *restfile.Request
RequestText string
RuntimeSecrets []string
Environment string
Skipped bool
SkipReason string
Preview bool
Explain *xplain.Report
Timing Timing
Compare *CompareResult
Profile *ProfileResult
Workflow *WorkflowResult
}
type RuntimeFile ¶
type RuntimeGlobal ¶
type RuntimeState ¶
type RuntimeState struct {
Globals []RuntimeGlobal `json:"globals,omitempty"`
Files []RuntimeFile `json:"files,omitempty"`
}
type WorkflowResult ¶
type WorkflowStep ¶
type WorkflowStep struct {
Name string
Method string
Target string
Branch string
Iteration int
Total int
Summary string
Response *httpclient.Response
GRPC *grpcclient.Response
Stream *scripts.StreamInfo
Transcript []byte
Err error
Tests []scripts.TestResult
ScriptErr error
Skipped bool
Canceled bool
Success bool
Duration time.Duration
}
Click to show internal directories.
Click to hide internal directories.