app

package
v0.0.0-...-8505860 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

get json from stdin and return json with v2 objects and v2 relations

Index

Constants

View Source
const (
	AppName        = "ds-load-azureadb2c"
	AppDescription = "AzureAD B2C directory loader"
)

Variables

This section is empty.

Functions

func Assets

func Assets() embed.FS

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 Azure AD data"`
	Transform       TransformCmd       `cmd:"" help:"transform Azure AD data"`
	ExportTransform ExportTransformCmd `cmd:"" help:"export default transform template"`
	Exec            ExecCmd            `cmd:"" help:"fetch and transform Azure AD 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
}

func (*ExecCmd) Run

func (cmd *ExecCmd) Run(ctx *cc.CommonCtx) error

type ExportTransformCmd

type ExportTransformCmd struct{}

func (*ExportTransformCmd) Run

func (t *ExportTransformCmd) Run(ctx *cc.CommonCtx) error

type FetchCmd

type FetchCmd struct {
	Tenant          string   `short:"a" help:"AzureAD B2C tenant" env:"AZUREADB2C_TENANT" required:""`
	ClientID        string   `short:"i" help:"AzureAD B2C Client ID" env:"AZUREADB2C_CLIENT_ID" required:""`
	ClientSecret    string   `short:"s" help:"AzureAD B2C Client Secret" env:"AZUREADB2C_CLIENT_SECRET" required:""`
	RefreshToken    string   `short:"r" help:"AzureAD B2C Refresh Token" env:"AZUREADB2C_REFRESH_TOKEN" optional:""`
	Groups          bool     `short:"g" help:"Include groups" env:"AZUREADB2C_INCLUDE_GROUPS" optional:""`
	UserProperties  []string `` /* 191-byte string literal not displayed */
	GroupProperties []string `` /* 163-byte string literal not displayed */
}

func (*FetchCmd) Run

func (cmd *FetchCmd) Run(ctx *cc.CommonCtx) error

type TransformCmd

type TransformCmd struct {
	Template string `name:"template" short:"t" env:"DS_TEMPLATE_FILE" help:"transformation template file path" type:"path" optional:""`
}

func (*TransformCmd) Run

func (t *TransformCmd) Run(ctx *cc.CommonCtx) error

type VerifyCmd

type VerifyCmd struct {
	FetchCmd
}

func (*VerifyCmd) Run

func (v *VerifyCmd) Run(ctx *cc.CommonCtx) error

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Run

func (cmd *VersionCmd) Run() error

Jump to

Keyboard shortcuts

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