github

package
v0.0.0-...-fe7c85d Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HOST        = "github.com"
	EnvPrefix   = "GITHUB"
	EnvUsername = EnvPrefix + credential.EnvUsernameSuffix
	EnvToken    = EnvPrefix + credential.EnvTokenSuffix
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform struct {
	Credential *credential.Credential
}

func (*Platform) CreateRelease

func (p *Platform) CreateRelease(ctx context.Context, fullName string, releaseInfo *platforms.ReleaseInfo) (*platforms.ReleaseInfo, error)

func (*Platform) CreateRepo

func (p *Platform) CreateRepo(ctx context.Context, repoInfo *platforms.RepoInfo) error

func (*Platform) DeleteReleaseAssets

func (p *Platform) DeleteReleaseAssets(ctx context.Context, repoInfo *platforms.ReleaseInfo, filenames []string) error

func (*Platform) DeleteRepo

func (p *Platform) DeleteRepo(ctx context.Context, repoInfo *platforms.RepoInfo) error

func (*Platform) GetClient

func (p *Platform) GetClient(ctx context.Context) *github.Client

func (*Platform) GetRepoDetail

func (p *Platform) GetRepoDetail(ctx context.Context, fullName string) (*platforms.RepoInfo, error)

func (*Platform) GetTagReleaseInfo

func (p *Platform) GetTagReleaseInfo(ctx context.Context, fullName, tagName string) (*platforms.ReleaseInfo, error)

func (*Platform) ListOrgRepo

func (p *Platform) ListOrgRepo(ctx context.Context, orgName string) ([]*platforms.RepoInfo, error)

func (*Platform) ListTags

func (p *Platform) ListTags(ctx context.Context, fullName string) ([]*platforms.TagInfo, error)

func (*Platform) ListUserRepo

func (p *Platform) ListUserRepo(ctx context.Context) ([]*platforms.RepoInfo, error)

func (*Platform) UploadReleaseAsset

func (p *Platform) UploadReleaseAsset(ctx context.Context, repoInfo *platforms.ReleaseInfo, filenames []string) error

func (*Platform) WithCredential

func (p *Platform) WithCredential(credential *credential.Credential) error

Jump to

Keyboard shortcuts

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