putingh

package module
v0.0.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 13 Imported by: 1

README

putingh (Put in GH)

Put file in the GH

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TmpDir string
}

type PutInGH

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

func NewPutInGH

func NewPutInGH(token string, conf Config) *PutInGH

func (*PutInGH) PutInGist

func (s *PutInGH) PutInGist(ctx context.Context, owner, description, name string, r io.Reader) (string, error)

func (*PutInGH) PutInGit

func (s *PutInGH) PutInGit(ctx context.Context, owner, repo, branch, name string, r io.Reader) (string, error)

func (*PutInGH) PutInReleasesAsset

func (s *PutInGH) PutInReleasesAsset(ctx context.Context, owner, repo, release, name string, r io.Reader) (string, error)

Jump to

Keyboard shortcuts

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