service

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) {
})

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