common

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeColumn

func DecodeColumn(raw *interface{}, target interface{}) error

DecodeColumn decodes the raw *interface{} response from GetColumn into a typed model.

func FormatError

func FormatError(err error) string

FormatError returns a detailed error string including status code and response body.

func GetColumnStatus

func GetColumnStatus(raw *interface{}) (string, error)

GetColumnStatus extracts the status field from a raw GetColumn response.

func ImportColumnState

func ImportColumnState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

ImportColumnState parses a "database_id/table_id/key" import ID into state.

func IsColumnNotAvailableError

func IsColumnNotAvailableError(err error) bool

IsColumnNotAvailableError checks if the error is due to a column still being processed.

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError checks if an Appwrite SDK error is a 404.

Types

type AppwriteClients

type AppwriteClients struct {
	TablesDB  *tablesdb.TablesDB
	Storage   *storage.Storage
	Messaging *messaging.Messaging
	Users     *users.Users
	Teams     *teams.Teams
	Backups   *backups.Backups
	Webhooks  *webhooks.Webhooks
}

AppwriteClients holds the configured SDK service clients.

Jump to

Keyboard shortcuts

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