test

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 14 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,
	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

	CrawlerAuth map[string]CrawlerAuth

	ActiveAppID  string
	CurrentAppID string
	SavedApps    map[string]SavedApplication
	CrawlerKeys  map[string]string
	HasStateFile bool
	// contains filtered or unexported fields
}

func NewConfigStubWithProfiles

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

func NewDefaultConfigStub

func NewDefaultConfigStub() *ConfigStub

func (*ConfigStub) APIKeyUUID added in v1.12.0

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

func (*ConfigStub) ActiveApplicationID added in v1.12.0

func (c *ConfigStub) ActiveApplicationID() string

func (*ConfigStub) ApplicationIDByAlias added in v1.12.0

func (c *ConfigStub) ApplicationIDByAlias(alias string) (string, bool)

func (*ConfigStub) ApplicationIDExists

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

func (*ConfigStub) ApplicationIDForProfile added in v1.8.0

func (c *ConfigStub) ApplicationIDForProfile(profileName string) (bool, string)

func (*ConfigStub) ApplicationInState added in v1.12.0

func (c *ConfigStub) ApplicationInState(appID string) bool

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) SaveApplication added in v1.12.0

func (c *ConfigStub) SaveApplication(
	appID, alias, apiKeyUUID, apiKey string,
	setCurrent bool,
) error

func (*ConfigStub) SetCrawlerAPIKey added in v1.12.0

func (c *ConfigStub) SetCrawlerAPIKey(appID, crawlerAPIKey string) error

func (*ConfigStub) SetCrawlerAuth added in v1.8.3

func (c *ConfigStub) SetCrawlerAuth(name, crawlerUserID, crawlerAPIKey string) error

func (*ConfigStub) SetDefaultProfile

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

func (*ConfigStub) StateFileExists added in v1.12.0

func (c *ConfigStub) StateFileExists() bool

type CrawlerAuth added in v1.8.3

type CrawlerAuth struct {
	UserID string
	APIKey string
}

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

type SavedApplication added in v1.12.0

type SavedApplication struct {
	Alias      string
	APIKeyUUID string
	APIKey     string
}

SavedApplication records what SaveApplication stored for an application.

Jump to

Keyboard shortcuts

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