Documentation ¶
Index ¶
- Variables
- func NewUpdateDataSetInput(dataSet *types.DataSet) (*quicksight.UpdateDataSetInput, error)
- func RunCLI(ctx context.Context, args []string) error
- type AnnotateOption
- type App
- func (app *App) AWSAccountID() string
- func (app *App) DescribeDataSrouce(ctx context.Context, dataSourceArn string) (*quicksight.DescribeDataSourceOutput, error)
- func (app *App) Dispatch(ctx context.Context, command string, cli *CLI) error
- func (app *App) GetColumnAnnotations(ctx context.Context, ds *types.DataSource, table types.RelationalTable) (ColumnAnnotations, error)
- func (app *App) GetDSN(params types.RedshiftParameters) (string, error)
- func (app *App) RunAnnotate(ctx context.Context, opt *AnnotateOption) error
- func (app *App) RunConfigure(ctx context.Context, opt *ConfigureOption) error
- type CLI
- type ColumnAnnotation
- type ColumnAnnotations
- type Config
- type ConfigureOption
- type ProfileConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
func NewUpdateDataSetInput ¶
func NewUpdateDataSetInput(dataSet *types.DataSet) (*quicksight.UpdateDataSetInput, error)
Types ¶
type AnnotateOption ¶
type AnnotateOption struct { DataSetID string `help:"task ID" required:""` DryRun bool `help:"if true, no update data set and display plan"` ForceRename bool `help:"The default is to keep any renaming that has already taken place. Enabling this option forces a name overwrite."` ForceUpdateDescription bool `help:"The default is to keep any renaming that has already taken place. Enabling this option forces a description overwrite."` Verbose bool `help:"Outputs the input information for the UpdateDataSet API"` }
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AWSAccountID ¶
func (*App) DescribeDataSrouce ¶
func (app *App) DescribeDataSrouce(ctx context.Context, dataSourceArn string) (*quicksight.DescribeDataSourceOutput, error)
func (*App) GetColumnAnnotations ¶
func (app *App) GetColumnAnnotations(ctx context.Context, ds *types.DataSource, table types.RelationalTable) (ColumnAnnotations, error)
func (*App) RunAnnotate ¶
func (app *App) RunAnnotate(ctx context.Context, opt *AnnotateOption) error
func (*App) RunConfigure ¶
func (app *App) RunConfigure(ctx context.Context, opt *ConfigureOption) error
type CLI ¶
type CLI struct { AWSAccountID string `help:"QuickSight aws account id"` Region string `help:"AWS region" short:"r" env:"AWS_REGION"` LogLevel string `help:"output log level" env:"LOG_LEVEL" default:"info"` Configure *ConfigureOption `cmd:"" help:"Create a configuration file of redshift-data-set-annotator"` Annotate *AnnotateOption `cmd:"" help:"Annotate a QuickSight dataset with Redshift as the data source"` Version struct{} `cmd:"" help:"Show version"` }
type ColumnAnnotation ¶
type ColumnAnnotations ¶
type ColumnAnnotations map[string]*ColumnAnnotation
type Config ¶
type Config map[string]*ProfileConfig
func (Config) GetDefault ¶
func (cfg Config) GetDefault() *ProfileConfig
type ConfigureOption ¶
type ProfileConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.