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 FormatCommaSeparatedString(thing interface{}) string
- func MergeSchema(schemata ...map[string]*schema.Schema) map[string]*schema.Schema
- func SendUsage(ctx context.Context, client *resty.Client, productId string, ...)
- type AutoMapper
- type HclPredicate
- type Lens
- type PackFunc
- 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 FormatCommaSeparatedString ¶
func FormatCommaSeparatedString(thing interface{}) string
func MergeSchema ¶
Types ¶
type AutoMapper ¶ added in v0.2.0
type AutoMapper func(field reflect.StructField, thing reflect.Value) map[string]interface{}
type HclPredicate ¶
func SchemaHasKey ¶
func SchemaHasKey(skeema map[string]*schema.Schema) HclPredicate
type PackFunc ¶ added in v0.2.0
type PackFunc func(repo interface{}, d *schema.ResourceData) error
func UniversalPack ¶ added in v0.2.0
func UniversalPack(predicate HclPredicate) PackFunc
UniversalPack consider making this a function that takes a predicate of what to include and returns a function that does the job. This would allow for the legacy code to specify which keys to keep and not
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.