Documentation ¶
Index ¶
- func Create(ctx context.Context, resource string, v ...any)
- func Created(ctx context.Context, resource string, v ...any)
- func DatasourceReading(ctx context.Context, resource string, v ...any)
- func DatasourceResultCount(ctx context.Context, resource string, count int)
- func Delete(ctx context.Context, resource string, v ...any)
- func Deleted(ctx context.Context, resource string, v ...any)
- func ExpandStringList(list types.List) []string
- func FlattenStringList(list []string) types.List
- func GetDataSourceDescription(resourceName string) string
- func GetIds(ids types.List) []string
- func GetNumber(val types.Int64) int
- func GetProviderName() string
- func GetResourceSchemaDescription(resourceName string) string
- func GetStringOrEmpty(tfAttr interface{}) string
- func GetTypeName(name string) string
- func Map[T, V any](items []T, fn func(T) V) []V
- func Read(ctx context.Context, resource string, v ...any)
- func Reading(ctx context.Context, resource string, v ...any)
- func SetToStringArray(ctx context.Context, set types.Set) ([]string, diag.Diagnostics)
- func StringOrNull(s string) types.String
- func Ternary[T interface{}](condition bool, whenTrue T, whenFalse T) T
- func ToValueSlice(slice []string) []attr.Value
- func Update(ctx context.Context, resource string, v ...any)
- func Updated(ctx context.Context, resource string, v ...any)
- type AttributeBuilder
- func NewAttributeBuilder[T any]() *AttributeBuilder[T]
- func ResourceBool() *AttributeBuilder[schema.BoolAttribute]
- func ResourceFloat64() *AttributeBuilder[schema.Float64Attribute]
- func ResourceInt64() *AttributeBuilder[schema.Int64Attribute]
- func ResourceList(elementType attr.Type) *AttributeBuilder[schema.ListAttribute]
- func ResourceMap(elementType attr.Type) *AttributeBuilder[schema.MapAttribute]
- func ResourceNumber() *AttributeBuilder[schema.NumberAttribute]
- func ResourceObject(attributeTypes map[string]attr.Type) *AttributeBuilder[schema.ObjectAttribute]
- func ResourceSet(elementType attr.Type) *AttributeBuilder[schema.SetAttribute]
- func ResourceString() *AttributeBuilder[schema.StringAttribute]
- func (b *AttributeBuilder[T]) AttributeTypes(attributeTypes map[string]attr.Type) *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Build() T
- func (b *AttributeBuilder[T]) Computed() *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Default(defaultValue interface{}) *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Deprecated(deprecationMessage string) *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Description(desc string) *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) ElementType(elementType attr.Type) *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Optional() *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) PlanModifiers(modifiers ...any) *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Required() *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Sensitive() *AttributeBuilder[T]
- func (b *AttributeBuilder[T]) Validators(validators ...any) *AttributeBuilder[T]
- type DataSourceAttributeBuilder
- func DataSourceBool() *DataSourceAttributeBuilder[schema.BoolAttribute]
- func DataSourceFloat64() *DataSourceAttributeBuilder[schema.Float64Attribute]
- func DataSourceInt64() *DataSourceAttributeBuilder[schema.Int64Attribute]
- func DataSourceList(elementType attr.Type) *DataSourceAttributeBuilder[schema.ListAttribute]
- func DataSourceMap(elementType attr.Type) *DataSourceAttributeBuilder[schema.MapAttribute]
- func DataSourceSet(elementType attr.Type) *DataSourceAttributeBuilder[schema.SetAttribute]
- func DataSourceString() *DataSourceAttributeBuilder[schema.StringAttribute]
- func NewDataSourceAttributeBuilder[T any]() *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) Build() T
- func (b *DataSourceAttributeBuilder[T]) Computed() *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) Deprecated(deprecationMessage string) *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) Description(desc string) *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) ElementType(elementType attr.Type) *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) Optional() *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) Required() *DataSourceAttributeBuilder[T]
- func (b *DataSourceAttributeBuilder[T]) Sensitive() *DataSourceAttributeBuilder[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatasourceResultCount ¶
func ExpandStringList ¶
func FlattenStringList ¶
func GetProviderName ¶
func GetProviderName() string
func GetStringOrEmpty ¶
func GetStringOrEmpty(tfAttr interface{}) string
func GetTypeName ¶
func SetToStringArray ¶
func StringOrNull ¶
func ToValueSlice ¶
Types ¶
type AttributeBuilder ¶
type AttributeBuilder[T any] struct { // contains filtered or unexported fields }
func NewAttributeBuilder ¶
func NewAttributeBuilder[T any]() *AttributeBuilder[T]
func ResourceBool ¶
func ResourceBool() *AttributeBuilder[schema.BoolAttribute]
func ResourceFloat64 ¶
func ResourceFloat64() *AttributeBuilder[schema.Float64Attribute]
func ResourceInt64 ¶
func ResourceInt64() *AttributeBuilder[schema.Int64Attribute]
func ResourceList ¶
func ResourceList(elementType attr.Type) *AttributeBuilder[schema.ListAttribute]
func ResourceMap ¶
func ResourceMap(elementType attr.Type) *AttributeBuilder[schema.MapAttribute]
func ResourceNumber ¶
func ResourceNumber() *AttributeBuilder[schema.NumberAttribute]
func ResourceObject ¶
func ResourceObject(attributeTypes map[string]attr.Type) *AttributeBuilder[schema.ObjectAttribute]
func ResourceSet ¶
func ResourceSet(elementType attr.Type) *AttributeBuilder[schema.SetAttribute]
func ResourceString ¶
func ResourceString() *AttributeBuilder[schema.StringAttribute]
func (*AttributeBuilder[T]) AttributeTypes ¶
func (b *AttributeBuilder[T]) AttributeTypes(attributeTypes map[string]attr.Type) *AttributeBuilder[T]
func (*AttributeBuilder[T]) Build ¶
func (b *AttributeBuilder[T]) Build() T
func (*AttributeBuilder[T]) Computed ¶
func (b *AttributeBuilder[T]) Computed() *AttributeBuilder[T]
func (*AttributeBuilder[T]) Default ¶
func (b *AttributeBuilder[T]) Default(defaultValue interface{}) *AttributeBuilder[T]
func (*AttributeBuilder[T]) Deprecated ¶
func (b *AttributeBuilder[T]) Deprecated(deprecationMessage string) *AttributeBuilder[T]
func (*AttributeBuilder[T]) Description ¶
func (b *AttributeBuilder[T]) Description(desc string) *AttributeBuilder[T]
func (*AttributeBuilder[T]) ElementType ¶
func (b *AttributeBuilder[T]) ElementType(elementType attr.Type) *AttributeBuilder[T]
func (*AttributeBuilder[T]) Optional ¶
func (b *AttributeBuilder[T]) Optional() *AttributeBuilder[T]
func (*AttributeBuilder[T]) PlanModifiers ¶
func (b *AttributeBuilder[T]) PlanModifiers(modifiers ...any) *AttributeBuilder[T]
func (*AttributeBuilder[T]) Required ¶
func (b *AttributeBuilder[T]) Required() *AttributeBuilder[T]
func (*AttributeBuilder[T]) Sensitive ¶
func (b *AttributeBuilder[T]) Sensitive() *AttributeBuilder[T]
func (*AttributeBuilder[T]) Validators ¶
func (b *AttributeBuilder[T]) Validators(validators ...any) *AttributeBuilder[T]
type DataSourceAttributeBuilder ¶
type DataSourceAttributeBuilder[T any] struct { // contains filtered or unexported fields }
func DataSourceBool ¶
func DataSourceBool() *DataSourceAttributeBuilder[schema.BoolAttribute]
func DataSourceFloat64 ¶
func DataSourceFloat64() *DataSourceAttributeBuilder[schema.Float64Attribute]
func DataSourceInt64 ¶
func DataSourceInt64() *DataSourceAttributeBuilder[schema.Int64Attribute]
func DataSourceList ¶
func DataSourceList(elementType attr.Type) *DataSourceAttributeBuilder[schema.ListAttribute]
func DataSourceMap ¶
func DataSourceMap(elementType attr.Type) *DataSourceAttributeBuilder[schema.MapAttribute]
func DataSourceSet ¶
func DataSourceSet(elementType attr.Type) *DataSourceAttributeBuilder[schema.SetAttribute]
func DataSourceString ¶
func DataSourceString() *DataSourceAttributeBuilder[schema.StringAttribute]
func NewDataSourceAttributeBuilder ¶
func NewDataSourceAttributeBuilder[T any]() *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) Build ¶
func (b *DataSourceAttributeBuilder[T]) Build() T
func (*DataSourceAttributeBuilder[T]) Computed ¶
func (b *DataSourceAttributeBuilder[T]) Computed() *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) Deprecated ¶
func (b *DataSourceAttributeBuilder[T]) Deprecated(deprecationMessage string) *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) Description ¶
func (b *DataSourceAttributeBuilder[T]) Description(desc string) *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) ElementType ¶
func (b *DataSourceAttributeBuilder[T]) ElementType(elementType attr.Type) *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) Optional ¶
func (b *DataSourceAttributeBuilder[T]) Optional() *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) Required ¶
func (b *DataSourceAttributeBuilder[T]) Required() *DataSourceAttributeBuilder[T]
func (*DataSourceAttributeBuilder[T]) Sensitive ¶
func (b *DataSourceAttributeBuilder[T]) Sensitive() *DataSourceAttributeBuilder[T]
Click to show internal directories.
Click to hide internal directories.