Documentation
¶
Index ¶
- Constants
- Variables
- func CreateDefaultConfigIfEmpty() error
- func SetEntry(e *Entry) error
- type Config
- func (c *Config) Add(name, serviceUrl string) error
- func (c *Config) Del(name string) error
- func (c *Config) Get(name string) (*Entry, bool)
- func (c *Config) GetDefaultEntry() (*Entry, bool)
- func (c *Config) SaveFile(filename string) error
- func (c *Config) Set(e *Entry) error
- func (c *Config) SetDefault(name string) error
- type Entry
Constants ¶
View Source
const ( DefaultDashboardURL = "https://foo/bar" DefaultServiceURL = "https://foo/bar" )
Variables ¶
View Source
var (
DefaultConfigFile = tools.MyPathTo("pryrite.yaml")
)
Functions ¶
func CreateDefaultConfigIfEmpty ¶
func CreateDefaultConfigIfEmpty() error
Types ¶
type Entry ¶
type Entry struct {
Name string `yaml:"name"`
Mode string `yaml:"mode"`
DashboardUrl string `yaml:"dashboard_url"`
ServiceUrl string `yaml:"service_url"`
LastUpdateCheck time.Time `yaml:"last_update_check"`
AuthScheme string `yaml:"auth_scheme"`
Email string `yaml:"email"`
ClientID string `yaml:"client_id"`
SkipSSLCheck bool `yaml:"skip_ssl_check"`
Style string `yaml:"style"`
ExecutionTimeout tools.MarshalledDuration `yaml:"execution_timeout"`
HideInspectIntro bool `yaml:"hide_inspect_intro"`
}
Click to show internal directories.
Click to hide internal directories.