Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Dir is a bugsnag-data-cli config directory. Dir = ".bugsnag" // FileName is a bugsnag-data-cli config file name. FileName = ".config" // FileType is a bugsnag-data-cli config file extension. FileType = "yml" )
Variables ¶
View Source
var ( // ErrSkip is returned when a user skips the config generation. ErrSkip = fmt.Errorf("skipping config generation") // ErrUnexpectedResponseFormat is returned if the response data is in unexpected format. ErrUnexpectedResponseFormat = fmt.Errorf("unexpected response format") )
Functions ¶
Types ¶
type BugsnagCLIConfig ¶
type BugsnagCLIConfig struct { APIEndpoint string Login string Organization string Project string Force bool }
BugsnagCLIConfig is a Bugsnag CLI config.
type BugsnagCLIConfigGenerator ¶
type BugsnagCLIConfigGenerator struct {
// contains filtered or unexported fields
}
BugsnagCLIConfigGenerator is a Bugsnag CLI config generator.
func NewBugsnagCLIConfigGenerator ¶
func NewBugsnagCLIConfigGenerator(cfg *BugsnagCLIConfig) *BugsnagCLIConfigGenerator
NewBugsnagCLIConfigGenerator creates a new Bugsnag CLI config.
func (*BugsnagCLIConfigGenerator) Generate ¶
func (c *BugsnagCLIConfigGenerator) Generate() (string, error)
Generate generates the config file.
Click to show internal directories.
Click to hide internal directories.