contexthelpers

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAsserter

func GetAsserter(ctx context.Context, provider string) (assertions.Asserter, error)

GetAsserter returns the asserter for the given provider.

func GetAwsRegion

func GetAwsRegion(ctx context.Context) string

GetAwsRegion returns the AWS region from the context.

func GetConfig

func GetConfig(ctx context.Context) *config.Config

GetConfig returns the configuration from the context.

func GetHttpRequestOptions added in v0.0.14

func GetHttpRequestOptions(ctx context.Context) *httphelpers.HttpRequestOptions

func GetHttpResponse added in v0.0.14

func GetHttpResponse(ctx context.Context) *httphelpers.HttpResponse

func GetIacProvisionerOptions

func GetIacProvisionerOptions(ctx context.Context) *iacprovisioner.Options

GetIacProvisionerOptions returns the IaC provisioner options from the context.

func GetTerraformHasApplied

func GetTerraformHasApplied(ctx context.Context) bool

GetTerraformHasApplied returns the Terraform has applied flag from the context.

func GetUri

func GetUri(ctx context.Context) string

GetUri returns the URI from the context.

func SetAwsRegion

func SetAwsRegion(ctx context.Context, region string) context.Context

SetAwsRegion sets the AWS region in the context.

func SetTerraformHasApplied

func SetTerraformHasApplied(ctx context.Context, hasApplied bool) context.Context

SetTerraformHasApplied sets the Terraform has applied flag in the context.

Types

type AssertionsCtxKey

type AssertionsCtxKey struct{}

AssertionsCtxKey is the key used to store the available assertions in context.Context.

type AwsRegionCtxKey

type AwsRegionCtxKey struct{}

AwsRegionCtxKey is the key used to store the AWS region in context.Context.

type ConfigCtxKey

type ConfigCtxKey struct{}

ConfigCtxKey is the key used to store the configuration in context.Context.

type HttpRequestOptionsCtxKey added in v0.0.14

type HttpRequestOptionsCtxKey struct{}

HttpRequestOptionsCtxKey is the key used to the store the Http Request options in context.Context.

type HttpResponseCtxKey added in v0.0.14

type HttpResponseCtxKey struct{}

HttpResponseCtxKey is the key used to store the HTTP response in context.Context.

type RDSDBInstanceIDCtxKey

type RDSDBInstanceIDCtxKey struct{}

RDSDBInstanceIDCtxKey is the key used to store the RDS DB instance ID in context.Context.

type TFOptionsCtxKey

type TFOptionsCtxKey struct{}

TFOptionsCtxKey is the key used to store the Terraform options in context.Context.

type TerraformHasAppliedCtxKey

type TerraformHasAppliedCtxKey struct{}

TerraformHasAppliedCtxKey is the key used to store the Terraform has applied flag in context.Context.

type UriCtxKey

type UriCtxKey struct{}

UriCtxKey is the key used to store the scenario URI in context.Context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL