api

package
v0.0.0-...-541f7c5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDLength = 9

Functions

This section is empty.

Types

type File

type File struct {
	Filename string
	Content  string
}

type Files

type Files []File

type Gist

type Gist struct {
	Client *github.Client
	Items  []*github.Gist
}

func NewGist

func NewGist(token string) (*Gist, error)

func (*Gist) Create

func (g *Gist) Create(
	files map[github.GistFilename]github.GistFile,
	desc string,
	private bool) (item *github.Gist, err error)

func (*Gist) Delete

func (g *Gist) Delete(id string) (err error)

func (*Gist) Get

func (g *Gist) Get(id string) (item *github.Gist, err error)

func (*Gist) List

func (g *Gist) List() (items Items, err error)

func (*Gist) ListStarred

func (g *Gist) ListStarred() (items []*github.Gist, err error)

func (*Gist) Update

func (g *Gist) Update(id string, files map[github.GistFilename]github.GistFile) (err error)

type Item

type Item struct {
	ID          string
	ShortID     string
	Description string
	Public      bool
	Files       []File
}

type Items

type Items []Item

Jump to

Keyboard shortcuts

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