common

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TfStringsFrom

func TfStringsFrom(in []string) []types.String

func TfStringsTo

func TfStringsTo[T ~string](in []basetypes.StringValue) []T

func ToTagPairs

func ToTagPairs(in []TagModel) []client.TagKeyValuePairInput

Types

type ProviderContext

type ProviderContext struct {
	MonteCarloClient client.MonteCarloClient
}

type TagModel

type TagModel struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

Monte Carlo commonly uses tags with inputs and outputs. For this reason lot of reasources and datasources must provide `tags` attribute as well. This class configures tags attribute structure for schemas using `tags` attribute.

func FromTagPairs

func FromTagPairs(in []client.TagKeyValuePairOutput) []TagModel

func NewTagModel

func NewTagModel(in client.TagKeyValuePairOutput) TagModel

Jump to

Keyboard shortcuts

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