cmd

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Config      string         `short:"c" type:"path" help:"Path to the config file. Any argument provided to the CLI will take precedence."`
	Delete      DeleteCmd      `cmd:"" help:"delete user ids from an user-provider idp"`
	Exec        ExecCmd        `cmd:"" help:"import users from an user-provided idp to another user-provided idp"`
	GetPlugin   GetPluginCmd   `cmd:"" help:"download plugin"`
	ListPlugins ListPluginsCmd `cmd:"" help:"list available plugins"`
	Version     VersionCmd     `cmd:"" help:"version information"`
	Verbosity   int            `short:"v" type:"counter" help:"Use to increase output verbosity."`
	kong.Plugins
}

func (*CLI) Run

func (cmd *CLI) Run(c *cc.CC) error

type DeleteCmd

type DeleteCmd struct {
	From          string   `short:"f" help:"The idp provider name you want to delete from"`
	UserIds       []string `arg:"" name:"user-id" help:"Users to remove." type:"string"`
	NoUpdateCheck bool     `short:"n" help:"Don't check for plugins updates"`
}

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(context *kong.Context, c *cc.CC) error

type ExecCmd

type ExecCmd struct {
	From          string `short:"f" help:"The idp name you want to import from"`
	To            string `short:"t" help:"The idp name you want to import to"`
	NoUpdateCheck bool   `short:"n" help:"Don't check for plugins updates"`
}

func (*ExecCmd) Run

func (cmd *ExecCmd) Run(context *kong.Context, c *cc.CC) error

type GetPluginCmd

type GetPluginCmd struct {
	Plugin string `arg:"" short:"n" help:"The idp plugin name and version you want to download. Eg: aserto:x.y.z"`
}

func (*GetPluginCmd) Run

func (cmd *GetPluginCmd) Run(context *kong.Context, c *cc.CC) error

type ListPluginsCmd

type ListPluginsCmd struct {
	Remote bool `short:"r" help:"list plugins available to download from remote"`
}

func (*ListPluginsCmd) Run

func (cmd *ListPluginsCmd) Run(context *kong.Context, c *cc.CC) error

type Plugin

type Plugin struct {
	Description string `kong:"-"`
	Name        string `kong:"-"`
	kong.Plugins
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(prov provider.Provider, c *cc.CC) (*Plugin, error)

func (*Plugin) Run

func (plugin *Plugin) Run(c *cc.CC) error

type PluginFlag

type PluginFlag struct {
	StringFlag string `kong:"-"`
	BoolFlag   bool   `kong:"-"`
	IntFlag    int    `kong:"-"`
}

type VersionCmd

type VersionCmd struct {
}

func (*VersionCmd) Run

func (cmd *VersionCmd) Run(c *cc.CC) error

Jump to

Keyboard shortcuts

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