types

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

types contains shared attr.Type implementations for unit testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Bool

type Bool struct {
	types.Bool
	CreatedBy attr.Type
}

func (Bool) Equal

func (b Bool) Equal(o attr.Value) bool

func (Bool) Type

func (b Bool) Type(_ context.Context) attr.Type

type BoolType

type BoolType struct{}

BoolType is a reimplementation of types.BoolType that can be used as a base for other extension types in testing.

func (BoolType) ApplyTerraform5AttributePathStep

func (t BoolType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (BoolType) Equal

func (t BoolType) Equal(o attr.Type) bool

func (BoolType) String

func (t BoolType) String() string

func (BoolType) TerraformType

func (t BoolType) TerraformType(_ context.Context) tftypes.Type

func (BoolType) ValueFromTerraform

func (t BoolType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type BoolTypeWithValidateError

type BoolTypeWithValidateError struct {
	BoolType
}

func (BoolTypeWithValidateError) Validate

func (BoolTypeWithValidateError) ValueFromTerraform

func (b BoolTypeWithValidateError) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type BoolTypeWithValidateWarning

type BoolTypeWithValidateWarning struct {
	BoolType
}

func (BoolTypeWithValidateWarning) Validate

func (BoolTypeWithValidateWarning) ValueFromTerraform

func (b BoolTypeWithValidateWarning) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type ListTypeWithValidateError added in v0.4.0

type ListTypeWithValidateError struct {
	types.ListType
}

func (ListTypeWithValidateError) Validate added in v0.4.0

type ListTypeWithValidateWarning added in v0.4.0

type ListTypeWithValidateWarning struct {
	types.ListType
}

func (ListTypeWithValidateWarning) Validate added in v0.4.0

type MapTypeWithValidateError added in v0.4.0

type MapTypeWithValidateError struct {
	types.MapType
}

func (MapTypeWithValidateError) Validate added in v0.4.0

type MapTypeWithValidateWarning added in v0.4.0

type MapTypeWithValidateWarning struct {
	types.MapType
}

func (MapTypeWithValidateWarning) Validate added in v0.4.0

type Number

type Number struct {
	types.Number

	CreatedBy attr.Type
}

func (Number) Equal

func (n Number) Equal(o attr.Value) bool

func (Number) Type

func (n Number) Type(_ context.Context) attr.Type

type NumberType

type NumberType struct{}

NumberType is a reimplementation of types.NumberType that can be used as a base for other extension types in testing.

func (NumberType) ApplyTerraform5AttributePathStep

func (t NumberType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (NumberType) Equal

func (t NumberType) Equal(o attr.Type) bool

func (NumberType) String

func (t NumberType) String() string

func (NumberType) TerraformType

func (t NumberType) TerraformType(_ context.Context) tftypes.Type

func (NumberType) ValueFromTerraform

func (t NumberType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type NumberTypeWithValidateError

type NumberTypeWithValidateError struct {
	NumberType
}

func (NumberTypeWithValidateError) Validate

func (NumberTypeWithValidateError) ValueFromTerraform

func (n NumberTypeWithValidateError) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type NumberTypeWithValidateWarning

type NumberTypeWithValidateWarning struct {
	NumberType
}

func (NumberTypeWithValidateWarning) Validate

func (NumberTypeWithValidateWarning) ValueFromTerraform

func (n NumberTypeWithValidateWarning) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type SetTypeWithValidateError added in v0.4.0

type SetTypeWithValidateError struct {
	types.SetType
}

func (SetTypeWithValidateError) Validate added in v0.4.0

type SetTypeWithValidateWarning added in v0.4.0

type SetTypeWithValidateWarning struct {
	types.SetType
}

func (SetTypeWithValidateWarning) Validate added in v0.4.0

type String

type String struct {
	types.String
	CreatedBy attr.Type
}

func (String) Equal

func (s String) Equal(o attr.Value) bool

func (String) Type

func (s String) Type(_ context.Context) attr.Type

type StringType

type StringType struct{}

StringType is a reimplementation of types.StringType that can be used as a base for other extension types in testing.

func (StringType) ApplyTerraform5AttributePathStep

func (t StringType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (StringType) Equal

func (t StringType) Equal(o attr.Type) bool

func (StringType) String

func (t StringType) String() string

func (StringType) TerraformType

func (t StringType) TerraformType(_ context.Context) tftypes.Type

func (StringType) ValueFromTerraform

func (t StringType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type StringTypeWithValidateError

type StringTypeWithValidateError struct {
	StringType
}

func (StringTypeWithValidateError) Equal

func (StringTypeWithValidateError) Validate

func (StringTypeWithValidateError) ValueFromTerraform

func (s StringTypeWithValidateError) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type StringTypeWithValidateWarning

type StringTypeWithValidateWarning struct {
	StringType
}

func (StringTypeWithValidateWarning) Equal

func (StringTypeWithValidateWarning) Validate

func (StringTypeWithValidateWarning) ValueFromTerraform

func (s StringTypeWithValidateWarning) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

Jump to

Keyboard shortcuts

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