// Copyright 2020 The go-github AUTHORS. All rights reserved.//// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package github// Package represents a GitHub package.typePackagestruct { ID *int64`json:"id,omitempty"` Name *string`json:"name,omitempty"` PackageType *string`json:"package_type,omitempty"` HTMLURL *string`json:"html_url,omitempty"` CreatedAt *Timestamp`json:"created_at,omitempty"` UpdatedAt *Timestamp`json:"updated_at,omitempty"` Owner *User`json:"owner,omitempty"` PackageVersion *PackageVersion`json:"package_version,omitempty"` Registry *PackageRegistry`json:"registry,omitempty"` URL *string`json:"url,omitempty"` VersionCount *int64`json:"version_count,omitempty"` Visibility *string`json:"visibility,omitempty"` Repository *Repository`json:"repository,omitempty"`}func ( Package) () string {returnStringify()}// PackageVersion represents a GitHub package version.typePackageVersionstruct { ID *int64`json:"id,omitempty"` Version *string`json:"version,omitempty"` Summary *string`json:"summary,omitempty"` Body *string`json:"body,omitempty"` BodyHTML *string`json:"body_html,omitempty"` Release *PackageRelease`json:"release,omitempty"` Manifest *string`json:"manifest,omitempty"` HTMLURL *string`json:"html_url,omitempty"` TagName *string`json:"tag_name,omitempty"` TargetCommitish *string`json:"target_commitish,omitempty"` TargetOID *string`json:"target_oid,omitempty"` Draft *bool`json:"draft,omitempty"` Prerelease *bool`json:"prerelease,omitempty"` CreatedAt *Timestamp`json:"created_at,omitempty"` UpdatedAt *Timestamp`json:"updated_at,omitempty"` PackageFiles []*PackageFile`json:"package_files,omitempty"` Author *User`json:"author,omitempty"` InstallationCommand *string`json:"installation_command,omitempty"` Metadata *PackageMetadata`json:"metadata,omitempty"` PackageHTMLURL *string`json:"package_html_url,omitempty"` Name *string`json:"name,omitempty"` URL *string`json:"url,omitempty"`}func ( PackageVersion) () string {returnStringify()}// PackageRelease represents a GitHub package version release.typePackageReleasestruct { URL *string`json:"url,omitempty"` HTMLURL *string`json:"html_url,omitempty"` ID *int64`json:"id,omitempty"` TagName *string`json:"tag_name,omitempty"` TargetCommitish *string`json:"target_commitish,omitempty"` Name *string`json:"name,omitempty"` Draft *bool`json:"draft,omitempty"` Author *User`json:"author,omitempty"` Prerelease *bool`json:"prerelease,omitempty"` CreatedAt *Timestamp`json:"created_at,omitempty"` PublishedAt *Timestamp`json:"published_at,omitempty"`}func ( PackageRelease) () string {returnStringify()}// PackageFile represents a GitHub package version release file.typePackageFilestruct { DownloadURL *string`json:"download_url,omitempty"` ID *int64`json:"id,omitempty"` Name *string`json:"name,omitempty"` SHA256 *string`json:"sha256,omitempty"` SHA1 *string`json:"sha1,omitempty"` MD5 *string`json:"md5,omitempty"` ContentType *string`json:"content_type,omitempty"` State *string`json:"state,omitempty"` Author *User`json:"author,omitempty"` Size *int64`json:"size,omitempty"` CreatedAt *Timestamp`json:"created_at,omitempty"` UpdatedAt *Timestamp`json:"updated_at,omitempty"`}func ( PackageFile) () string {returnStringify()}// PackageRegistry represents a GitHub package registry.typePackageRegistrystruct { AboutURL *string`json:"about_url,omitempty"` Name *string`json:"name,omitempty"` Type *string`json:"type,omitempty"` URL *string`json:"url,omitempty"` Vendor *string`json:"vendor,omitempty"`}func ( PackageRegistry) () string {returnStringify()}// PackageListOptions represents the optional list options for a package.typePackageListOptionsstruct {// Visibility of packages "public", "internal" or "private". Visibility *string`url:"visibility,omitempty"`// PackageType represents the type of package. // It can be one of "npm", "maven", "rubygems", "nuget", "docker", or "container". PackageType *string`url:"package_type,omitempty"`// State of package either "active" or "deleted". State *string`url:"state,omitempty"`ListOptions}// PackageMetadata represents metadata from a package.typePackageMetadatastruct { PackageType *string`json:"package_type,omitempty"` Container *PackageContainerMetadata`json:"container,omitempty"`}func ( PackageMetadata) () string {returnStringify()}// PackageContainerMetadata represents container metadata for docker container packages.typePackageContainerMetadatastruct { Tags []string`json:"tags,omitempty"`}func ( PackageContainerMetadata) () string {returnStringify()}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.