Documentation
¶
Overview ¶
get json from stdin and return json with v2 objects and v2 relations
Index ¶
Constants ¶
View Source
const ( AppName = "ds-load-google" AppDescription = "Google Workspace directory loader" )
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 google workspace data"`
Transform TransformCmd `cmd:"" help:"transform google workspace data"`
ExportTransform ExportTransformCmd `cmd:"" help:"export default transform template"`
Exec ExecCmd `cmd:"" help:"fetch and transform google workspace data" default:"withargs"`
GetRefreshToken GetTokenCmd `cmd:"" help:"obtain a refresh token from GCP"`
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 {
ClientID string `short:"i" help:"Google Client ID" env:"GOOGLE_CLIENT_ID" required:""`
ClientSecret string `short:"s" help:"Google Client Secret" env:"GOOGLE_CLIENT_SECRET" required:""`
RefreshToken string `short:"r" help:"Google Refresh Token" env:"GOOGLE_REFRESH_TOKEN" required:""`
Groups bool `short:"g" help:"Retrieve Google groups" env:"GOOGLE_GROUPS" default:"false"`
Customer string `help:"Google Workspace Customer field" env:"GOOGLE_CUSTOMER" default:"my_customer"`
}
type GetTokenCmd ¶
type GetTokenCmd struct {
ClientID string `short:"i" help:"Google Client ID" env:"GOOGLE_CLIENT_ID" required:""`
ClientSecret string `short:"s" help:"Google Client Secret" env:"GOOGLE_CLIENT_SECRET" required:""`
Port int `short:"p" help:"Port number to run callback server on" env:"GOOGLE_PORT" default:"8761"`
}
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.