putingh

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 15 Imported by: 1

README

putingh (Put in GH)

Put file in the GH

Go Report Card GoDoc GitHub license

License

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
	GitName          string
	GitEmail         string
	GitCommitMessage string
}

type PutInGH

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

func NewPutInGH

func NewPutInGH(token string, conf Config) *PutInGH

func (*PutInGH) PutIn added in v0.2.0

func (s *PutInGH) PutIn(ctx context.Context, uri string, r io.Reader) (string, error)

func (*PutInGH) PutInGist

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

func (*PutInGH) PutInGistWithFile added in v0.2.0

func (s *PutInGH) PutInGistWithFile(ctx context.Context, owner, description, name string, filename string) (string, error)

func (*PutInGH) PutInGit

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

func (*PutInGH) PutInGitWithFile added in v0.2.0

func (s *PutInGH) PutInGitWithFile(ctx context.Context, owner, repo, branch, name string, filename string) (string, error)

func (*PutInGH) PutInReleasesAsset

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

func (*PutInGH) PutInReleasesAssetWithFile added in v0.2.0

func (s *PutInGH) PutInReleasesAssetWithFile(ctx context.Context, owner, repo, release, name string, filename string) (string, error)

func (*PutInGH) PutInWithFile added in v0.2.0

func (s *PutInGH) PutInWithFile(ctx context.Context, uri, filename string) (string, error)

Directories

Path Synopsis
cmd
putingh command

Jump to

Keyboard shortcuts

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