snowflake

package
v0.0.0-...-08e5c89 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("Not found")

Functions

This section is empty.

Types

type Client

type Client interface {
	// TableClient
	DatabaseClient
}

type ClientInfo

type ClientInfo struct {
	SnowflakeAccount string
	JwtToken         string
	// contains filtered or unexported fields
}

func GetClientInfo

func GetClientInfo(ctx context.Context, c client.Client, mg resource.Managed) (*ClientInfo, error)

all helper method

func UseProviderConfig

func UseProviderConfig(ctx context.Context, c client.Client, mg resource.Managed) (*ClientInfo, error)

func (ClientInfo) CreateDatabase

func (c ClientInfo) CreateDatabase(ctx context.Context, db *v1alpha1.DatabaseParameters) (string, error)

create database

func (ClientInfo) DeleteDatabase

func (c ClientInfo) DeleteDatabase(ctx context.Context, dbName string) error

func (ClientInfo) FetchDatabase

func (c ClientInfo) FetchDatabase(ctx context.Context, dbinfo DbInfo)

func (ClientInfo) ListDatabase

func (c ClientInfo) ListDatabase(ctx context.Context, dbinfo DbInfo)

func (*ClientInfo) MakeRequest

func (c *ClientInfo) MakeRequest(method string, api_path string, payload map[string]interface{})

func (ClientInfo) UpdateDatabase

func (c ClientInfo) UpdateDatabase(ctx context.Context, dbinfo DbInfo)

type DatabaseClient

type DatabaseClient interface {
	ListDatabase(ctx context.Context, dbinfo DbInfo)
	FetchDatabase(ctx context.Context, dbinfo DbInfo)
	CreateDatabase(ctx context.Context, db *dbv1alpha1.DatabaseParameters) (string, error)
	DeleteDatabase(ctx context.Context, db *dbv1alpha1.DatabaseParameters) error
	UpdateDatabase(ctx context.Context, dbinfo DbInfo)
}

type DbInfo

type DbInfo struct {
	DbName string
	Kind   string
}

Jump to

Keyboard shortcuts

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