config

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FormatVersion = 2

Variables

This section is empty.

Functions

func Path

func Path() (string, error)

Path returns either $BUILDKITE_CLI_CONFIG_FILE or ~/.buildkite/config.json

Types

type Config

type Config struct {
	Path             string        `json:"-"`
	Version          int           `json:"version"`
	BuildkiteEmail   string        `json:"email"`
	BuildkiteUUID    string        `json:"uuid"`
	GraphQLToken     string        `json:"graphql_token"`
	GitHubOAuthToken *oauth2.Token `json:"github_oauth_token"`
}

func Open

func Open() (*Config, error)

Open opens and parses the Config, returns a empty Config if one doesn't exist

func (*Config) Write

func (c *Config) Write() error

Write serializes the config to the Path in the config

Jump to

Keyboard shortcuts

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