Go client library for accessing the GitHub API v3
Overall
score
65%
Build a Go module that lists and repairs an organization's private package registry for a single package type (for example, container or npm).
IncludeDeleted is true, deleted versions are included and marked in the result. @test@generates
package registry
import "context"
import "time"
type PackageVersionInfo struct {
ID int64
Name string
UpdatedAt time.Time
Deleted bool
}
type Manager struct {
Owner string
PackageType string
IncludeDeleted bool
}
func NewManager(owner string, packageType string, includeDeleted bool) *Manager
func (m *Manager) ListPrivatePackages(ctx context.Context) ([]string, error)
func (m *Manager) ListPackageVersions(ctx context.Context, packageName string) ([]PackageVersionInfo, error)
func (m *Manager) RetireVersion(ctx context.Context, packageName string, versionID int64) error
func (m *Manager) RestoreVersion(ctx context.Context, packageName string, versionID int64) errorTyped client for the GitHub REST API, used for interacting with private package registries and their versions.
Install with Tessl CLI
npx tessl i tessl/golang-github-com-google-go-githubdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10