api

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 20 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
	ServerlessManagementClient redshiftserverlessiface.RedshiftServerlessAPI
	// 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)

GetQueryID always returns not found. To actually check if the query has been called requires calling ListStatements, which can lead to timeouts when there are many statements to page through

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)

func (*API) Workgroups added in v1.10.0

func (c *API) Workgroups() ([]models.RedshiftWorkgroup, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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