instance

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 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

This section is empty.

Functions

func AddInstanceFlags

func AddInstanceFlags(cmd *cobra.Command, opts *InstanceOptions)

AddInstanceFlags adds common instance parameters, shared between commands.

func IsInstanceAdded

func IsInstanceAdded(cfg config.Config, host string) (bool, error)

func New

func New(f *cmdutil.Factory) *cobra.Command

func NewAddCmd

func NewAddCmd(f *cmdutil.Factory, runF func(*AddOptions) error) *cobra.Command

func NewEditCmd

func NewEditCmd(f *cmdutil.Factory, runF func(*EditOptions) error) *cobra.Command

func NewListCmd

func NewListCmd(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Command

func NewRemoveCmd

func NewRemoveCmd(f *cmdutil.Factory, runF func(*RemoveOptions) error) *cobra.Command

func NewSetDefaultCmd

func NewSetDefaultCmd(f *cmdutil.Factory, runF func(*SetDefaultOptions) error) *cobra.Command

func RunAdd

func RunAdd(opts *AddOptions) error

func RunRemove

func RunRemove(opts *RemoveOptions) error

Types

type AddOptions

type AddOptions struct {
	IO             *iostreams.IOStreams
	Config         config.Config
	MainExecutable string
	Interactive    bool
	InstanceOptions
}

type EditOptions

type EditOptions struct {
	IO             *iostreams.IOStreams
	Config         config.Config
	MainExecutable string
	Interactive    bool
	NoAuth         bool
	InstanceOptions
}

type InstanceOptions

type InstanceOptions = struct {
	APIHostname  string
	Oauth2       string
	Issuer       string
	Audience     string
	ClientID     string
	ClientSecret string
	Default      bool
	APIVersion   string
}

type ListOptions

type ListOptions struct {
	IO             *iostreams.IOStreams
	Config         config.Config
	MainExecutable string
	Interactive    bool
}

type RemoveOptions

type RemoveOptions struct {
	IO             *iostreams.IOStreams
	Config         config.Config
	MainExecutable string
	Interactive    bool
	APIHostname    string
}

type SetDefaultOptions

type SetDefaultOptions struct {
	IO             *iostreams.IOStreams
	Config         config.Config
	MainExecutable string
	Interactive    bool
	APIHostname    string
}

Jump to

Keyboard shortcuts

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