config

package
v0.0.0-...-c0db168 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 9 Imported by: 0

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

func Exists

func Exists(file string) bool

Exists checks if the file exist.

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.

Jump to

Keyboard shortcuts

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