Documentation
¶
Index ¶
- Constants
- Variables
- func DataSourceConfigure(ctx context.Context, req datasource.ConfigureRequest, ...) *lidarr.APIClient
- func ErrDataNotFoundError(kind, field, search string) error
- func ImportStatePassthroughIntID(ctx context.Context, attrPath path.Path, req resource.ImportStateRequest, ...)
- func ParseClientError(action, name string, err error) string
- func ReadBoolField(name string, fieldCase interface{}) *lidarr.Field
- func ReadFloatField(name string, fieldCase interface{}) *lidarr.Field
- func ReadIntField(name string, fieldCase interface{}) *lidarr.Field
- func ReadIntSliceField(ctx context.Context, name string, fieldCase interface{}) *lidarr.Field
- func ReadStringField(name string, fieldCase interface{}) *lidarr.Field
- func ReadStringSliceField(ctx context.Context, name string, fieldCase interface{}) *lidarr.Field
- func ResourceConfigure(ctx context.Context, req resource.ConfigureRequest, ...) *lidarr.APIClient
- func WriteBoolField(fieldOutput *lidarr.Field, fieldCase interface{})
- func WriteFloatField(fieldOutput *lidarr.Field, fieldCase interface{})
- func WriteIntField(fieldOutput *lidarr.Field, fieldCase interface{})
- func WriteIntSliceField(ctx context.Context, fieldOutput *lidarr.Field, fieldCase interface{})
- func WriteStringField(fieldOutput *lidarr.Field, fieldCase interface{})
- func WriteStringSliceField(ctx context.Context, fieldOutput *lidarr.Field, fieldCase interface{})
Constants ¶
View Source
const ( Create = "create" Read = "read" Update = "update" Delete = "delete" List = "list" ClientError = "Client Error" ResourceError = "Resource Error" DataSourceError = "Data Source Error" UnexpectedImportIdentifier = "Unexpected Import Identifier" UnexpectedResourceConfigureType = "Unexpected Resource Configure Type" UnexpectedDataSourceConfigureType = "Unexpected DataSource Configure Type" )
define constant for error management.
Variables ¶
View Source
var ErrDataNotFound = errors.New("data source not found")
Functions ¶
func DataSourceConfigure ¶ added in v1.5.0
func DataSourceConfigure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) *lidarr.APIClient
DataSourceConfigure is a helper function to set the client for a specific data source.
func ErrDataNotFoundError ¶ added in v1.5.0
func ImportStatePassthroughIntID ¶ added in v1.5.0
func ImportStatePassthroughIntID(ctx context.Context, attrPath path.Path, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportStatePassthroughIntID is a helper function to set the import identifier to a given state attribute path. The attribute must accept a int value. extends https://github.com/hashicorp/terraform-plugin-framework/blob/main/resource/import_state.go.
func ParseClientError ¶ added in v1.5.0
func ReadBoolField ¶ added in v1.5.0
func ReadFloatField ¶ added in v1.5.0
func ReadIntField ¶ added in v1.5.0
func ReadIntSliceField ¶ added in v1.5.0
func ReadStringField ¶ added in v1.5.0
func ReadStringSliceField ¶ added in v1.5.0
func ResourceConfigure ¶ added in v1.5.0
func ResourceConfigure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) *lidarr.APIClient
ResourceConfigure is a helper function to set the client for a specific resource.
func WriteBoolField ¶ added in v1.5.0
func WriteFloatField ¶ added in v1.5.0
func WriteIntField ¶ added in v1.5.0
func WriteIntSliceField ¶ added in v1.5.0
func WriteStringField ¶ added in v1.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.