service

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CmdServiceEnv = cli.NewCmd[Env](CmdService, "env", func(cmd *cobra.Command) {
		cfg := cli.ConfigFromCmd(cmd)

		cmd.Flags().StringVar(&cfg.Service.EnvOutput, "env-output", cli.Defaults.Service.EnvOutput, "Integration method for environment variables.")
		cmd.Flags().StringVarP(&cfg.Org.APID, "org", "o", cli.Defaults.Org.APID, "Organization to trust.")
		cmd.Flags().StringVarP(&cfg.Realm.APID, "realm", "r", cli.Defaults.Realm.APID, "Realm to trust.")
		cmd.Flags().StringVarP(&cfg.Service.APID, "service", "s", cli.Defaults.Service.APID, "Service for ENV.")

		cmd.Flags().StringVar(&cfg.Service.EnvOutput, "method", cli.Defaults.Service.EnvOutput, "Integration method for environment variables.")
		_ = cmd.Flags().MarkDeprecated("method", "Please use `--env-output` instead.")
	})

	MethodExport  = "export"
	MethodDotenv  = "dotenv"
	MethodDisplay = "display"
)
View Source
var CmdService = cli.NewCmd[cli.ShowHelp](cli.CmdRoot, "service", func(cmd *cobra.Command) {
	cmd.Hidden = true
})

Functions

This section is empty.

Types

type Env

type Env struct {
	Anc *api.Session

	ChainAPID, OrgAPID, RealmAPID, ServiceAPID string

	Clipboard cli.Clipboard
	// contains filtered or unexported fields
}

func (*Env) Perform

func (c *Env) Perform(ctx context.Context, drv *ui.Driver) error

func (Env) UI

func (c Env) UI() cli.UI

type Verify added in v0.1.6

type Verify struct {
	OrgAPID, RealmAPID, ServiceAPID string
	// contains filtered or unexported fields
}

func (*Verify) RunTUI added in v0.1.6

func (c *Verify) RunTUI(ctx context.Context, drv *ui.Driver) error

func (Verify) UI added in v0.1.6

func (c Verify) UI() cli.UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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