Documentation
¶
Index ¶
- type CmdInOut
- type ConfigStub
- func (c *ConfigStub) APIKeyUUID(appID string) (string, bool)
- func (c *ConfigStub) ActiveApplicationID() string
- func (c *ConfigStub) ApplicationIDByAlias(alias string) (string, bool)
- func (c *ConfigStub) ApplicationIDExists(appID string) (bool, string)
- func (c *ConfigStub) ApplicationIDForProfile(profileName string) (bool, string)
- func (c *ConfigStub) ApplicationInState(appID string) bool
- func (c *ConfigStub) ConfiguredProfiles() []*config.Profile
- func (c *ConfigStub) Default() *config.Profile
- func (c *ConfigStub) InitConfig()
- func (c *ConfigStub) Profile() *config.Profile
- func (c *ConfigStub) ProfileExists(name string) bool
- func (c *ConfigStub) ProfileNames() []string
- func (c *ConfigStub) RemoveProfile(name string) error
- func (c *ConfigStub) SaveApplication(appID, alias, apiKeyUUID, apiKey string, setCurrent bool) error
- func (c *ConfigStub) SetCrawlerAPIKey(appID, crawlerAPIKey string) error
- func (c *ConfigStub) SetCrawlerAuth(name, crawlerUserID, crawlerAPIKey string) error
- func (c *ConfigStub) SetDefaultProfile(name string) error
- func (c *ConfigStub) StateFileExists() bool
- type CrawlerAuth
- type OutputStub
- type SavedApplication
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdInOut ¶
func NewFactory ¶
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 OutputStub ¶
func (OutputStub) Output ¶
func (s OutputStub) Output() ([]byte, error)
func (OutputStub) Run ¶
func (s OutputStub) Run() error
type SavedApplication ¶ added in v1.12.0
SavedApplication records what SaveApplication stored for an application.
Click to show internal directories.
Click to hide internal directories.