github

package
v0.0.0-...-3f885d8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c *Config) *Client

func (*Client) Client

func (c *Client) Client() (*github.Client, error)

func (*Client) Fetch

func (c *Client) Fetch(path string) ([]byte, error)

func (*Client) ParseConfig

func (c *Client) ParseConfig(t config.ParserType, cfg interface{}) error

type Config

type Config struct {
	Token string `env:"GITHUB_TOKEN,required"`
	Owner string `env:"GITHUB_OWNER,required"`
	Repo  string `env:"GITHUB_REPO,required"`
	Ref   string `env:"GITHUB_REF" envDefault:"master"`
	Path  string `env:"GITHUB_PATH,required"`
}

Jump to

Keyboard shortcuts

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