Documentation
¶
Index ¶
- func Configure[Req resource.ConfigureRequest | datasource.ConfigureRequest](req Req) (client.MonteCarloClient, diag.Diagnostics)
- func TfStringsFrom(in []string) []types.String
- func TfStringsTo[T ~string](in []basetypes.StringValue) []T
- func ToTagPairs(in []TagModel) []client.TagKeyValuePairInput
- type ProviderContext
- type TagModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure[Req resource.ConfigureRequest | datasource.ConfigureRequest](req Req) (client.MonteCarloClient, diag.Diagnostics)
func TfStringsFrom ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.