test

package
v1.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 9 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

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, http *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