Documentation
¶
Index ¶
- type AllParsedSecrets
- type AuthCfg
- type BasicAuthCfg
- type BearerAuthCfg
- type EnvironmentCfg
- type EnvironmentCfgs
- type EvalContext
- type ExecutionContext
- type ExternalFunctionCfg
- type ExternalFunctionCfgs
- type GofakeitFunc
- type ParsedSecret
- type Request
- type RequestAsVars
- type RequestCfg
- type RequestCfgs
- type RequestTiming
- type Requests
- type Response
- type RootCfg
- type SecretCfg
- type SecretCfgs
- type VariableCfg
- type VariableCfgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllParsedSecrets ¶ added in v0.6.0
type AllParsedSecrets map[string]ParsedSecret
type AuthCfg ¶ added in v0.7.0
type AuthCfg struct {
BasicAuth *BasicAuthCfg `hcl:"basic,block"`
BearerAuth *BearerAuthCfg `hcl:"bearer,block"`
}
type BasicAuthCfg ¶ added in v0.9.0
type BearerAuthCfg ¶ added in v0.9.0
type EnvironmentCfg ¶
type EnvironmentCfg struct {
Name string `hcl:"name,label"`
Default bool `hcl:"default,optional"`
Secrets SecretCfgs `hcl:"secrets,block"`
Variables hcl.Body `hcl:",remain"`
}
type EnvironmentCfgs ¶ added in v0.6.0
type EnvironmentCfgs []*EnvironmentCfg
type EvalContext ¶ added in v0.5.4
type EvalContext struct {
Functions *map[string]function.Function
Variables *map[string]cty.Value
Environment *cty.Value
RequestAsVars RequestAsVars
RawRequests RequestCfgs
RawDynamics VariableCfgs
}
func LoadEvalCtx ¶ added in v0.5.4
func LoadEvalCtx(env string, execCtx *ExecutionContext) (*EvalContext, error)
Get all internal functions Parse external functions Parse environment variables Parse variables Create EvalContext
type ExecutionContext ¶ added in v0.5.1
type ExternalFunctionCfg ¶ added in v0.5.0
type ExternalFunctionCfgs ¶ added in v0.6.0
type ExternalFunctionCfgs []*ExternalFunctionCfg
type GofakeitFunc ¶ added in v0.7.0
type ParsedSecret ¶ added in v0.6.0
type Request ¶
type Request struct {
Method string
Url string
Headers map[string]string
Body string
EvalContext
PrecedingRequests []*Response
*Response
*ExecutionContext
RoundTripper http.RoundTripper
}
func LoadOnlyRequest ¶ added in v0.5.4
func LoadOnlyRequest(name string, evCtx *EvalContext, execCtx *ExecutionContext) (request *Request, err error)
Load only request with given EvalContext
type RequestAsVars ¶ added in v0.5.7
type RequestCfg ¶
type RequestCfgs ¶
type RequestCfgs []*RequestCfg
type RequestTiming ¶
type RootCfg ¶
type RootCfg struct {
Requests RequestCfgs `hcl:"request,block"`
Variables VariableCfgs `hcl:"variable,block"`
Dynamics VariableCfgs `hcl:"dynamic,block"`
Environments EnvironmentCfgs `hcl:"env,block"`
ExternalFunctions ExternalFunctionCfgs `hcl:"external-function,block"`
Version string `hcl:"version,optional"`
}
type SecretCfgs ¶ added in v0.6.0
type SecretCfgs []*SecretCfg
type VariableCfg ¶
type VariableCfgs ¶ added in v0.6.0
type VariableCfgs []*VariableCfg
Source Files
¶
Click to show internal directories.
Click to hide internal directories.