Documentation
¶
Overview ¶
get json from stdin and return json with v2 objects and v2 relations
Index ¶
Constants ¶
View Source
const AppDescription = "Cognito directory loader"
View Source
const AppName = "ds-load-cognito"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLI ¶
type CLI struct { Config kong.ConfigFlag `help:"Configuration file path" short:"c"` Version VersionCmd `cmd:"" help:"version information"` Fetch FetchCmd `cmd:"" help:"fetch cognito data"` Transform TransformCmd `cmd:"" help:"transform cognito data"` ExportTransform ExportTransformCmd `cmd:"" help:"export default transform template"` Exec ExecCmd `cmd:"" help:"fetch and transform cognito data" default:"withargs"` Verbosity int `short:"v" type:"counter" help:"Use to increase output verbosity."` Verify VerifyCmd `cmd:"verify" help:"verify fetcher configuration and credentials"` }
type ExecCmd ¶
type ExecCmd struct { FetchCmd TransformCmd }
type ExportTransformCmd ¶
type ExportTransformCmd struct { }
type FetchCmd ¶
type FetchCmd struct { AccessKey string `short:"k" help:"AWS Access Key" env:"AWS_ACCESS_KEY" required:""` SecretKey string `short:"s" help:"AWS Secret Key" env:"AWS_SECRET_KEY" required:""` UserPoolID string `short:"p" help:"AWS Cognito User Pool ID" env:"AWS_COGNITO_USER_POOL_ID" required:""` Region string `short:"r" help:"AWS Region" env:"AWS_REGION" required:""` Groups bool `short:"g" help:"Retrieve Cognito groups" env:"AWS_COGNITO_GROUPS" default:"false" negatable:""` }
type TransformCmd ¶
type TransformCmd struct {
Template string `name:"template" short:"t" env:"DS_TEMPLATE_FILE" help:"transformation template file path" type:"path" optional:""`
}
type VersionCmd ¶
type VersionCmd struct { }
func (*VersionCmd) Run ¶
func (cmd *VersionCmd) Run() error
Click to show internal directories.
Click to hide internal directories.