Documentation ¶
Index ¶
- func AddTelemetry(productId string, resourceMap map[string]*schema.Resource) map[string]*schema.Resource
- func BoolPtr(v bool) *bool
- func CastToInterfaceArr(arr []string) []interface{}
- func CastToStringArr(arr []interface{}) []string
- func CheckArtifactoryLicense(client *resty.Client, licenseTypesToCheck ...string) diag.Diagnostics
- func ExecuteTemplate(name, temp string, fields interface{}) string
- func FieldToHcl(field reflect.StructField) string
- func FmtMapToHcl(fields map[string]interface{}) string
- func FormatCommaSeparatedString(thing interface{}) string
- func MergeMaps[K comparable, V any](schemata ...map[K]V) map[K]V
- func SendUsage(ctx context.Context, client *resty.Client, productId string, ...)
- type Identifiable
- type Lens
- type ResourceData
- func (d *ResourceData) GetBool(key string, onlyIfChanged bool) bool
- func (d *ResourceData) GetBoolRef(key string, onlyIfChanged bool) *bool
- func (d *ResourceData) GetInt(key string, onlyIfChanged bool) int
- func (d *ResourceData) GetList(key string) []string
- func (d *ResourceData) GetSet(key string) []string
- func (d *ResourceData) GetString(key string, onlyIfChanged bool) string
- type Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTelemetry ¶ added in v0.5.0
func CastToInterfaceArr ¶
func CastToInterfaceArr(arr []string) []interface{}
func CastToStringArr ¶
func CastToStringArr(arr []interface{}) []string
func CheckArtifactoryLicense ¶ added in v0.5.0
func CheckArtifactoryLicense(client *resty.Client, licenseTypesToCheck ...string) diag.Diagnostics
func ExecuteTemplate ¶ added in v1.1.0
func FieldToHcl ¶ added in v1.0.0
func FieldToHcl(field reflect.StructField) string
FieldToHcl this function is meant to use the HCL provided in the tag, or create a snake_case from the field name it actually works as expected, but dynamically working with these names was catching edge cases everywhere and it was/is a time sink to catch.
func FmtMapToHcl ¶ added in v1.1.0
func FormatCommaSeparatedString ¶
func FormatCommaSeparatedString(thing interface{}) string
func MergeMaps ¶ added in v1.1.0
func MergeMaps[K comparable, V any](schemata ...map[K]V) map[K]V
Types ¶
type Identifiable ¶ added in v1.1.0
type Identifiable interface {
Id() string
}
type ResourceData ¶
type ResourceData struct{ *schema.ResourceData }
func (*ResourceData) GetBoolRef ¶
func (d *ResourceData) GetBoolRef(key string, onlyIfChanged bool) *bool
func (*ResourceData) GetList ¶
func (d *ResourceData) GetList(key string) []string
func (*ResourceData) GetSet ¶
func (d *ResourceData) GetSet(key string) []string
Click to show internal directories.
Click to hide internal directories.