service

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 14 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.Env.Method, "method", "", "Integration method for environment variables.")
		cmd.Flags().StringVarP(&cfg.Service.Env.Org, "org", "o", "", "Organization to trust.")
		cmd.Flags().StringVarP(&cfg.Service.Env.Realm, "realm", "r", "", "Realm to trust.")
		cmd.Flags().StringVarP(&cfg.Service.Env.Service, "service", "s", "", "Service for ENV.")
	})

	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
	// 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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