supabase

package
v1.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RlsTypeModel   = "table"
	RlsTypeStorage = "storage"
)

Variables

View Source
var (
	DefaultApiUrl         = "https://api.supabase.com"
	DefaultIncludedSchema = []string{"public", "auth"}
)
View Source
var DefaultObjectTable = "objects"
View Source
var DefaultStorageSchema = "storage"
View Source
var StorageLogger = logger.HcLog().Named("supabase.storage")
View Source
var SupabaseLogger = logger.HcLog().Named("supabase")

Functions

func AdminUpdateUserData

func AdminUpdateUserData(cfg *raiden.Config, userId string, data objects.User) (objects.User, error)

func CreateBucket

func CreateBucket(cfg *raiden.Config, param objects.Bucket) (bucket objects.Bucket, err error)

func CreateFunction

func CreateFunction(cfg *raiden.Config, fn objects.Function) (objects.Function, error)

func CreatePolicy

func CreatePolicy(cfg *raiden.Config, policy objects.Policy) (objects.Policy, error)

func CreateRole

func CreateRole(cfg *raiden.Config, role objects.Role) (objects.Role, error)

func CreateTable

func CreateTable(cfg *raiden.Config, table objects.Table) (rs objects.Table, err error)

func DefaultAuthInterceptor

func DefaultAuthInterceptor(apiKey string, accessToken string) func(req *http.Request) error

func DeleteBucket

func DeleteBucket(cfg *raiden.Config, param objects.Bucket) (err error)

func DeleteFunction

func DeleteFunction(cfg *raiden.Config, fn objects.Function) (err error)

func DeletePolicy

func DeletePolicy(cfg *raiden.Config, old objects.Policy) (err error)

func DeleteRole

func DeleteRole(cfg *raiden.Config, old objects.Role) (err error)

func DeleteTable

func DeleteTable(cfg *raiden.Config, table objects.Table, cascade bool) (err error)

func FindProject

func FindProject(cfg *raiden.Config) (objects.Project, error)

func GetBucket

func GetBucket(cfg *raiden.Config, name string) (buckets objects.Bucket, err error)

func GetBuckets

func GetBuckets(cfg *raiden.Config) (buckets []objects.Bucket, err error)

func GetFunctionByName

func GetFunctionByName(cfg *raiden.Config, schema string, name string) (objects.Function, error)

func GetFunctions

func GetFunctions(cfg *raiden.Config) ([]objects.Function, error)

func GetPolicies

func GetPolicies(cfg *raiden.Config) (objects.Policies, error)

func GetPolicyByName

func GetPolicyByName(cfg *raiden.Config, name string) (objects.Policy, error)

func GetPolicyName

func GetPolicyName(command objects.PolicyCommand, resource string, name string) string

func GetRoleByName

func GetRoleByName(cfg *raiden.Config, name string) (objects.Role, error)

func GetRoles

func GetRoles(cfg *raiden.Config) ([]objects.Role, error)

func GetTableByName

func GetTableByName(cfg *raiden.Config, name string, schema string, includeColumn bool) (result objects.Table, err error)

func GetTables

func GetTables(cfg *raiden.Config, includedSchemas []string) (tables []objects.Table, err error)

func UpdateBucket

func UpdateBucket(cfg *raiden.Config, param objects.Bucket, updateItem objects.UpdateBucketParam) error

func UpdateFunction

func UpdateFunction(cfg *raiden.Config, fn objects.Function) (err error)

func UpdatePolicy

func UpdatePolicy(cfg *raiden.Config, new objects.Policy, updateItems objects.UpdatePolicyParam) (err error)

func UpdateRole

func UpdateRole(cfg *raiden.Config, new objects.Role, updateItems objects.UpdateRoleParam) (err error)

func UpdateTable

func UpdateTable(cfg *raiden.Config, newTable objects.Table, updateItems objects.UpdateTableParam) (err error)

Types

type CreateBucketSuccessResponse

type CreateBucketSuccessResponse struct {
	Name string `json:"name"`
}

type DefaultBucketSuccessResponse

type DefaultBucketSuccessResponse struct {
	Message string `json:"message"`
}

type RlsType

type RlsType string

Directories

Path Synopsis
net
drivers
sql

Jump to

Keyboard shortcuts

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