api

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sessionCache *awsds.SessionCache, settings awsModels.Settings) (api.AWSAPI, error)

Types

type API

type API struct {
	DataClient       redshiftdataapiserviceiface.RedshiftDataAPIServiceAPI
	SecretsClient    secretsmanageriface.SecretsManagerAPI
	ManagementClient redshiftiface.RedshiftAPI
	// contains filtered or unexported fields
}

func (*API) CancelQuery added in v1.4.0

func (c *API) CancelQuery(ctx context.Context, options sqlds.Options, queryID string) error

func (*API) Clusters added in v1.0.4

func (c *API) Clusters() ([]models.RedshiftCluster, error)

func (*API) Columns added in v1.0.2

func (c *API) Columns(ctx aws.Context, options sqlds.Options) ([]string, error)

func (*API) Databases added in v1.0.2

func (c *API) Databases(ctx aws.Context, options sqlds.Options) ([]string, error)

func (*API) Execute

func (c *API) Execute(ctx context.Context, input *api.ExecuteQueryInput) (*api.ExecuteQueryOutput, error)

func (*API) GetQueryID added in v1.4.0

func (c *API) GetQueryID(ctx context.Context, query string, args ...interface{}) (bool, string, error)

func (*API) Regions added in v1.0.2

func (c *API) Regions(aws.Context) ([]string, error)

func (*API) Schemas added in v1.0.2

func (c *API) Schemas(ctx aws.Context, options sqlds.Options) ([]string, error)

func (*API) Secret added in v1.0.2

func (c *API) Secret(ctx aws.Context, options sqlds.Options) (*models.RedshiftSecret, error)

func (*API) Secrets added in v1.0.2

func (c *API) Secrets(ctx aws.Context) ([]models.ManagedSecret, error)

func (*API) Status added in v1.0.2

func (c *API) Status(ctx aws.Context, output *api.ExecuteQueryOutput) (*api.ExecuteQueryStatus, error)

func (*API) Stop added in v1.0.2

func (c *API) Stop(output *api.ExecuteQueryOutput) error

func (*API) Tables added in v1.0.2

func (c *API) Tables(ctx aws.Context, options sqlds.Options) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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