testprovider

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSet

func MustSet(data Settable, key string, value interface{})

func MustSetIfUnset

func MustSetIfUnset(data ResourceData, key string, value interface{})

func ProviderV1

func ProviderV1() *schemav1.Provider

func ProviderV2

func ProviderV2() *schemav2.Provider

func Timeout

func Timeout(d time.Duration) *time.Duration

Types

type ResourceData

type ResourceData interface {
	Settable

	GetOk(key string) (interface{}, bool)
}

type Settable

type Settable interface {
	Set(key string, value interface{}) error
}

Jump to

Keyboard shortcuts

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