framework

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attr_DataFilter

func Attr_DataFilter(description SchemaAttributeDescription, acceptableAttributes []string, mutuallyExclusiveAttributes []string) schema.ListNestedBlock

func Attr_DataSourceReturnIDs

func Attr_DataSourceReturnIDs(description SchemaAttributeDescription) schema.ListAttribute

func Attr_ID

func Attr_ID() schema.StringAttribute

Common schema attributes

func Attr_LinkID

func Attr_LinkID(description SchemaAttributeDescription) schema.StringAttribute

func Attr_LinkIDWithValidators

func Attr_LinkIDWithValidators(description SchemaAttributeDescription, validators []validator.String) schema.StringAttribute

func Attr_SCIMFilter

func Attr_SCIMFilter(description SchemaAttributeDescription, acceptableAttributes []string, mutuallyExclusiveAttributes []string) schema.StringAttribute

func BoolOkToTF

func BoolOkToTF(b *bool, ok bool) basetypes.BoolValue

func BoolToTF

func BoolToTF(b bool) basetypes.BoolValue

func DaVinciExportTypeOkToTF

func DaVinciExportTypeOkToTF(v *string, ok bool, cmpOpts davinci.ExportCmpOpts) davinciexporttype.ParsedValue

func DaVinciExportTypeToTF

func DaVinciExportTypeToTF(v string, cmpOpts davinci.ExportCmpOpts) davinciexporttype.ParsedValue

func EnumOkToTF

func EnumOkToTF(v interface{}, ok bool) basetypes.StringValue

func EnumSetOkToTF

func EnumSetOkToTF(v interface{}, ok bool) basetypes.SetValue

func EnumToTF

func EnumToTF(v interface{}) basetypes.StringValue

func Float32OkToTF

func Float32OkToTF(i *float32, ok bool) basetypes.Float64Value

func Int32OkToTF

func Int32OkToTF(i *int32, ok bool) basetypes.Int64Value

func Int32ToTF

func Int32ToTF(i int32) basetypes.Int64Value

func ParseImportID

func ParseImportID(id string, components ...ImportComponent) (map[string]string, error)

Parse Import ID format

func StringListOkToTF

func StringListOkToTF(v []string, ok bool) basetypes.ListValue

func StringListToTF

func StringListToTF(v []string) basetypes.ListValue

func StringMapOkToTF

func StringMapOkToTF(v *map[string]string, ok bool) basetypes.MapValue

func StringOkToTF

func StringOkToTF(v *string, ok bool) basetypes.StringValue

func StringSetOkToTF

func StringSetOkToTF(v []string, ok bool) basetypes.SetValue

func StringSetToTF

func StringSetToTF(v []string) basetypes.SetValue

func StringSliceToTF

func StringSliceToTF(v []string) (basetypes.ListValue, diag.Diagnostics)

func StringToTF

func StringToTF(v string) basetypes.StringValue

func TFListToStringSlice

func TFListToStringSlice(ctx context.Context, v types.List) []*string

func TFSetToStringSlice

func TFSetToStringSlice(ctx context.Context, v types.Set) []*string

func TimeOkToTF

func TimeOkToTF(v *time.Time, ok bool) basetypes.StringValue

Types

type DataFilterModel

type DataFilterModel struct {
	Name   types.String `tfsdk:"name"`
	Values types.List   `tfsdk:"values"`
}

Common models

type ImportComponent

type ImportComponent struct {
	Label     string
	Regexp    *regexp.Regexp
	PrimaryID bool
}

type ResourceType

type ResourceType struct {
	Client *dv.APIClient
}

type SchemaAttributeDescription

type SchemaAttributeDescription SchemaDescriptionModel

func SchemaAttributeDescriptionFromMarkdown

func SchemaAttributeDescriptionFromMarkdown(description string) SchemaAttributeDescription

func (SchemaAttributeDescription) AllowedValues

func (r SchemaAttributeDescription) AllowedValues(allowedValues ...any) SchemaAttributeDescription

func (SchemaAttributeDescription) AllowedValuesComplex

func (r SchemaAttributeDescription) AllowedValuesComplex(allowedValuesMap map[string]string) SchemaAttributeDescription

func (SchemaAttributeDescription) AllowedValuesEnum

func (r SchemaAttributeDescription) AllowedValuesEnum(allowedValuesEnumSlice interface{}) SchemaAttributeDescription

func (SchemaAttributeDescription) AppendMarkdownString

func (r SchemaAttributeDescription) AppendMarkdownString(text string) SchemaAttributeDescription

func (SchemaAttributeDescription) AppendMarkdownStringTrim added in v0.4.0

func (r SchemaAttributeDescription) AppendMarkdownStringTrim(text string, trimSpace bool) SchemaAttributeDescription

func (SchemaAttributeDescription) AppendSliceValues

func (r SchemaAttributeDescription) AppendSliceValues(pretext string, values []string) SchemaAttributeDescription

func (SchemaAttributeDescription) AppendStringValue

func (r SchemaAttributeDescription) AppendStringValue(pretext string, value string) SchemaAttributeDescription

func (SchemaAttributeDescription) Clean

func (r SchemaAttributeDescription) Clean(removeTrailingStop bool) SchemaAttributeDescription

func (SchemaAttributeDescription) ConflictsWith

func (r SchemaAttributeDescription) ConflictsWith(fieldPaths []string) SchemaAttributeDescription

func (SchemaAttributeDescription) DefaultValue

func (r SchemaAttributeDescription) DefaultValue(defaultValue any) SchemaAttributeDescription

func (SchemaAttributeDescription) ExactlyOneOf

func (r SchemaAttributeDescription) ExactlyOneOf(fieldPaths []string) SchemaAttributeDescription

func (SchemaAttributeDescription) RequiresReplace

func (SchemaAttributeDescription) RequiresReplaceBlock

func (r SchemaAttributeDescription) RequiresReplaceBlock() SchemaAttributeDescription

type SchemaDescription

type SchemaDescription SchemaDescriptionModel

func SchemaDescriptionFromMarkdown

func SchemaDescriptionFromMarkdown(description string) SchemaDescription

func (SchemaDescription) AppendMarkdownString

func (r SchemaDescription) AppendMarkdownString(text string) SchemaDescription

func (SchemaDescription) AppendMarkdownStringTrim added in v0.4.0

func (r SchemaDescription) AppendMarkdownStringTrim(text string, trimSpace bool) SchemaDescription

func (SchemaDescription) AppendSliceValues

func (r SchemaDescription) AppendSliceValues(pretext string, values []string) SchemaDescription

func (SchemaDescription) AppendStringValue

func (r SchemaDescription) AppendStringValue(pretext string, value string) SchemaDescription

func (SchemaDescription) Clean

func (r SchemaDescription) Clean(removeTrailingStop bool) SchemaDescription

func (SchemaDescription) OnlyOneDefinitionPerEnvironment

func (r SchemaDescription) OnlyOneDefinitionPerEnvironment(resourceName string) SchemaDescription

type SchemaDescriptionModel

type SchemaDescriptionModel struct {
	Description         string
	MarkdownDescription string
}

Directories

Path Synopsis
customtypes

Jump to

Keyboard shortcuts

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