Documentation ¶
Index ¶
- func BuildForEachInvocationModel(block *hcl.Block, model types.RattModel, ctx types.RattContext) types.Invocation
- func BuildInvocationBlockBody(block *hcl.Block, model types.RattModel, schema *hcl.BodySchema, ...) ([]types.Invocation, *hcl.BodyContent)
- func BuildRequestDeclarationModels(blocks []*hcl.Block, ctx types.RattContext) []types.RequestDeclaration
- func BuildRequestInvocatioExecnModel(declaration types.RequestDeclaration, args map[string]string, ...) types.ExecRequestInvocation
- func BuildRequestInvocationArg(invokeContent *hcl.BodyContent, ctx types.RattContext) []types.RequestInvocationArg
- func BuildRequestInvocationModel(declaration types.RequestDeclaration, block *hcl.Block, ctx types.RattContext) types.RequestInvocation
- func BuildScriptDeclarationModels(blocks []*hcl.Block, ctx types.RattContext) []types.ScriptDeclaration
- func BuildScriptInvocatioModel(declaration types.ScriptDeclaration, block *hcl.Block, ctx types.RattContext) types.ScriptInvocation
- func BuildTestcaseInvocationModel(block *hcl.Block, model types.RattModel, ctx types.RattContext) types.TestCaseInvocation
- func BuildTestcaseInvocationModels(blocks []*hcl.Block, model types.RattModel, ctx types.RattContext) []types.Invocation
- func BuildVarModels(blocks hcl.Blocks, ctx types.RattContext) []types.VarDeclaration
- func ForEachSchema() *hcl.BodySchema
- func InvokeRequestSchema(args []hcl.AttributeSchema) *hcl.BodySchema
- func InvokeScriptSchema() *hcl.BodySchema
- func ListRootBlocks(ctx types.RattContext) []*hcl.Block
- func RequestHeaderSchema() *hcl.BodySchema
- func RequestSchema() *hcl.BodySchema
- func RootSchema() *hcl.BodySchema
- func ScriptSchema() *hcl.BodySchema
- func TestcaseSchema() *hcl.BodySchema
- type RequestInstance
- type ScriptInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildForEachInvocationModel ¶
func BuildForEachInvocationModel(block *hcl.Block, model types.RattModel, ctx types.RattContext) types.Invocation
func BuildInvocationBlockBody ¶
func BuildInvocationBlockBody(block *hcl.Block, model types.RattModel, schema *hcl.BodySchema, ctx types.RattContext) ([]types.Invocation, *hcl.BodyContent)
func BuildRequestDeclarationModels ¶
func BuildRequestDeclarationModels(blocks []*hcl.Block, ctx types.RattContext) []types.RequestDeclaration
func BuildRequestInvocatioExecnModel ¶
func BuildRequestInvocatioExecnModel(declaration types.RequestDeclaration, args map[string]string, ctx types.RattContext) types.ExecRequestInvocation
func BuildRequestInvocationArg ¶
func BuildRequestInvocationArg(invokeContent *hcl.BodyContent, ctx types.RattContext) []types.RequestInvocationArg
func BuildRequestInvocationModel ¶
func BuildRequestInvocationModel(declaration types.RequestDeclaration, block *hcl.Block, ctx types.RattContext) types.RequestInvocation
func BuildScriptDeclarationModels ¶
func BuildScriptDeclarationModels(blocks []*hcl.Block, ctx types.RattContext) []types.ScriptDeclaration
func BuildScriptInvocatioModel ¶
func BuildScriptInvocatioModel(declaration types.ScriptDeclaration, block *hcl.Block, ctx types.RattContext) types.ScriptInvocation
func BuildTestcaseInvocationModel ¶
func BuildTestcaseInvocationModel(block *hcl.Block, model types.RattModel, ctx types.RattContext) types.TestCaseInvocation
func BuildTestcaseInvocationModels ¶
func BuildTestcaseInvocationModels(blocks []*hcl.Block, model types.RattModel, ctx types.RattContext) []types.Invocation
func BuildVarModels ¶
func BuildVarModels(blocks hcl.Blocks, ctx types.RattContext) []types.VarDeclaration
func ForEachSchema ¶
func ForEachSchema() *hcl.BodySchema
func InvokeRequestSchema ¶
func InvokeRequestSchema(args []hcl.AttributeSchema) *hcl.BodySchema
func InvokeScriptSchema ¶
func InvokeScriptSchema() *hcl.BodySchema
func ListRootBlocks ¶
func ListRootBlocks(ctx types.RattContext) []*hcl.Block
func RequestHeaderSchema ¶
func RequestHeaderSchema() *hcl.BodySchema
func RequestSchema ¶
func RequestSchema() *hcl.BodySchema
func RootSchema ¶
func RootSchema() *hcl.BodySchema
func ScriptSchema ¶
func ScriptSchema() *hcl.BodySchema
func TestcaseSchema ¶
func TestcaseSchema() *hcl.BodySchema
Types ¶
type RequestInstance ¶
type RequestInstance struct {
// contains filtered or unexported fields
}
func NewRequestInstance ¶
func NewRequestInstance(declaration types.RequestDeclaration) *RequestInstance
func (*RequestInstance) Exec ¶
func (re *RequestInstance) Exec(ctx types.RattContext, args map[string]cty.Value) *types.RequestExecutionResult
type ScriptInstance ¶
type ScriptInstance struct {
// contains filtered or unexported fields
}
func NewScriptInstance ¶
func NewScriptInstance(declaration types.ScriptDeclaration) *ScriptInstance
func (*ScriptInstance) Exec ¶
func (si *ScriptInstance) Exec(ctx types.RattContext) (*types.ScriptExecutionResult, error)
Source Files ¶
- invocation_block.go
- invocation_foreach.go
- invocation_request.go
- invocation_request_arg.go
- invocation_request_exec.go
- invocation_script.go
- invocation_testcase.go
- invocation_then_assert.go
- invocation_then_set.go
- request.go
- request_arg.go
- request_header.go
- request_instance.go
- root.go
- schemas.go
- script.go
- script_instance.go
- var.go
Click to show internal directories.
Click to hide internal directories.