Documentation
¶
Index ¶
- Variables
- type Option
- func WithContext(ctx context.Context) Option
- func WithGitCommitMessage(msg string) Option
- func WithGitEmail(email string) Option
- func WithGitName(name string) Option
- func WithHost(host string) Option
- func WithOutput(out io.Writer) Option
- func WithPerPage(perPage int) Option
- func WithTmpDir(dir string) Option
- type PutInGH
- func (s *PutInGH) GetFrom(ctx context.Context, uri string) (io.Reader, error)
- func (s *PutInGH) GetFromGist(ctx context.Context, owner, gistId, name string) (io.Reader, error)
- func (s *PutInGH) GetFromGit(ctx context.Context, owner, repo, branch, name string) (io.Reader, error)
- func (s *PutInGH) GetFromReleasesAsset(ctx context.Context, owner, repo, release, name string) (io.Reader, error)
- func (s *PutInGH) PutIn(ctx context.Context, uri string, r io.Reader) (string, error)
- func (s *PutInGH) PutInGist(ctx context.Context, owner, gistId, name string, r io.Reader) (string, error)
- func (s *PutInGH) PutInGistWithFile(ctx context.Context, owner, gistId, name string, filename string) (string, error)
- func (s *PutInGH) PutInGit(ctx context.Context, owner, repo, branch, name string, r io.Reader) (string, error)
- func (s *PutInGH) PutInGitWithFile(ctx context.Context, owner, repo, branch, name string, filename string) (string, error)
- func (s *PutInGH) PutInReleasesAsset(ctx context.Context, owner, repo, release, name string, r io.Reader) (string, error)
- func (s *PutInGH) PutInReleasesAssetWithFile(ctx context.Context, owner, repo, release, name string, filename string) (string, error)
- func (s *PutInGH) PutInWithFile(ctx context.Context, uri, filename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = fmt.Errorf("not found")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.5.0
type Option func(p *PutInGH)
func WithContext ¶ added in v0.5.0
func WithGitCommitMessage ¶ added in v0.5.0
func WithGitEmail ¶
func WithGitName ¶
func WithOutput ¶ added in v0.5.0
func WithPerPage ¶ added in v0.5.0
func WithTmpDir ¶ added in v0.5.0
type PutInGH ¶
type PutInGH struct {
// contains filtered or unexported fields
}
func NewPutInGH ¶
func (*PutInGH) GetFromGist ¶ added in v0.4.0
func (*PutInGH) GetFromGit ¶ added in v0.4.0
func (*PutInGH) GetFromReleasesAsset ¶ added in v0.4.0
func (*PutInGH) PutInGistWithFile ¶ added in v0.2.0
func (*PutInGH) PutInGitWithFile ¶ added in v0.2.0
func (*PutInGH) PutInReleasesAsset ¶
func (*PutInGH) PutInReleasesAssetWithFile ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.