Documentation
¶
Index ¶
- type Config
- type Context
- func (c *Context) Config() *Config
- func (c *Context) Infrastructure() string
- func (c *Context) InfrastructureDomain() string
- func (c *Context) Remote() string
- func (c *Context) ServiceDomain() string
- func (c *Context) SetEndpoint(remote string) error
- func (c *Context) Token() string
- func (c *Context) Username() string
- type ContextParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DefaultRemote string `ini:"default_remote"`
NoAutocomplete bool `ini:"disable_autocomplete_autoinstall"`
NoColor bool `ini:"disable_colors"`
NotifyUpdates bool `ini:"notify_updates"`
ReleaseChannel string `ini:"release_channel"`
LastUpdateCheck string `ini:"last_update_check"`
PastVersion string `ini:"past_version"`
NextVersion string `ini:"next_version"`
EnableAnalytics bool `ini:"enable_analytics"`
AnalyticsID string `ini:"analytics_id"`
Path string `ini:"-"`
Remotes remotes.List `ini:"-"`
// contains filtered or unexported fields
}
Config of the application
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context structure
func NewContext ¶ added in v1.1.5
func NewContext(params ContextParams) Context
NewContext with received params and uninitialized configuration
func (*Context) Infrastructure ¶ added in v1.1.5
Infrastructure used on the context
func (*Context) InfrastructureDomain ¶ added in v1.1.5
InfrastructureDomain used on the context
func (*Context) ServiceDomain ¶ added in v1.1.5
ServiceDomain used on the context
func (*Context) SetEndpoint ¶ added in v1.1.5
SetEndpoint for the context
Click to show internal directories.
Click to hide internal directories.