github

package
v0.0.0-...-b9f82f2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerPackage

type ContainerPackage struct {
	ID         int
	Index      int
	Name       string
	Owner      string
	Visibility string
	CreatedAt  time.Time
}

func (ContainerPackage) PrintTable

func (cp ContainerPackage) PrintTable()

type GithubClient

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

GithubClient é um cliente para o GitHub.

func NewClient

func NewClient(ctx context.Context, token, username, url string) (*GithubClient, error)

NewClient retorna uma nova instância de GithubClient e um erro, se houver.

func (*GithubClient) DeleteContainerPackageVersion

func (gh *GithubClient) DeleteContainerPackageVersion(ctx context.Context, container string, pkg *github.PackageVersion, dryRun bool)

Delete container package version

func (*GithubClient) GetAllContainerPackages

func (gh *GithubClient) GetAllContainerPackages(ctx context.Context, username string) ([]*github.Package, error)

Get all packages of user

func (*GithubClient) GetAllContainerPackagesVersions

func (gh *GithubClient) GetAllContainerPackagesVersions(ctx context.Context, container string) ([]*github.PackageVersion, error)

Get all container package versions off a user

Jump to

Keyboard shortcuts

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