github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 8 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(log *zap.Logger, token string) Client

NewClient returns "logged in" GitHub client if the token is not empty.

func (Client) CreateRelease

func (c Client) CreateRelease(ctx context.Context, owner, repo, tag string, release Release) (string, error)

CreateRelease creates release and returns asset url

func (Client) ReleaseExists

func (c Client) ReleaseExists(ctx context.Context, owner, repo, tag string) (bool, error)

ReleaseExists checks if the release already exists

type Release

type Release struct {
	Name        string
	Description string
	AssetPath   string
	PreRelease  bool
}

Jump to

Keyboard shortcuts

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