test

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdInOut

type CmdInOut struct {
	InBuf  *bytes.Buffer
	OutBuf *bytes.Buffer
	ErrBuf *bytes.Buffer
}

func Execute

func Execute(cmd *cobra.Command, cli string, inOut *CmdInOut) (*CmdInOut, error)

func NewFactory

func NewFactory(isTTY bool, r *httpmock.Registry, cfg config.IConfig, in string) (*cmdutil.Factory, *CmdInOut)

func (CmdInOut) Stderr

func (c CmdInOut) Stderr() string

func (CmdInOut) String

func (c CmdInOut) String() string

type ConfigStub

type ConfigStub struct {
	CurrentProfile config.Profile
	// contains filtered or unexported fields
}

func NewConfigStubWithProfiles

func NewConfigStubWithProfiles(p []*config.Profile) *ConfigStub

func NewDefaultConfigStub

func NewDefaultConfigStub() *ConfigStub

func (*ConfigStub) ApplicationIDExists

func (c *ConfigStub) ApplicationIDExists(appID string) (bool, string)

func (*ConfigStub) ConfiguredProfiles

func (c *ConfigStub) ConfiguredProfiles() []*config.Profile

func (*ConfigStub) Default

func (c *ConfigStub) Default() *config.Profile

func (*ConfigStub) InitConfig

func (c *ConfigStub) InitConfig()

func (*ConfigStub) Profile

func (c *ConfigStub) Profile() *config.Profile

func (*ConfigStub) ProfileExists

func (c *ConfigStub) ProfileExists(name string) bool

func (*ConfigStub) ProfileNames

func (c *ConfigStub) ProfileNames() []string

func (*ConfigStub) RemoveProfile

func (c *ConfigStub) RemoveProfile(name string) error

func (*ConfigStub) SetDefaultProfile

func (c *ConfigStub) SetDefaultProfile(name string) error

type OutputStub

type OutputStub struct {
	Out   []byte
	Error error
}

func (OutputStub) Output

func (s OutputStub) Output() ([]byte, error)

func (OutputStub) Run

func (s OutputStub) Run() error

Jump to

Keyboard shortcuts

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