summaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/v43/github/packages.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-22 17:35:49 -0600
committermo khan <mo@mokhan.ca>2025-07-22 17:35:49 -0600
commit20ef0d92694465ac86b550df139e8366a0a2b4fa (patch)
tree3f14589e1ce6eb9306a3af31c3a1f9e1af5ed637 /vendor/github.com/google/go-github/v43/github/packages.go
parent44e0d272c040cdc53a98b9f1dc58ae7da67752e6 (diff)
feat: connect to spicedb
Diffstat (limited to 'vendor/github.com/google/go-github/v43/github/packages.go')
-rw-r--r--vendor/github.com/google/go-github/v43/github/packages.go143
1 files changed, 143 insertions, 0 deletions
diff --git a/vendor/github.com/google/go-github/v43/github/packages.go b/vendor/github.com/google/go-github/v43/github/packages.go
new file mode 100644
index 0000000..ef7df07
--- /dev/null
+++ b/vendor/github.com/google/go-github/v43/github/packages.go
@@ -0,0 +1,143 @@
+// 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.
+type Package struct {
+ 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 (p Package) String() string {
+ return Stringify(p)
+}
+
+// PackageVersion represents a GitHub package version.
+type PackageVersion struct {
+ 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 (pv PackageVersion) String() string {
+ return Stringify(pv)
+}
+
+// PackageRelease represents a GitHub package version release.
+type PackageRelease struct {
+ 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 (r PackageRelease) String() string {
+ return Stringify(r)
+}
+
+// PackageFile represents a GitHub package version release file.
+type PackageFile struct {
+ 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 (pf PackageFile) String() string {
+ return Stringify(pf)
+}
+
+// PackageRegistry represents a GitHub package registry.
+type PackageRegistry struct {
+ 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 (r PackageRegistry) String() string {
+ return Stringify(r)
+}
+
+// PackageListOptions represents the optional list options for a package.
+type PackageListOptions struct {
+ // 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.
+type PackageMetadata struct {
+ PackageType *string `json:"package_type,omitempty"`
+ Container *PackageContainerMetadata `json:"container,omitempty"`
+}
+
+func (r PackageMetadata) String() string {
+ return Stringify(r)
+}
+
+// PackageContainerMetadata represents container metadata for docker container packages.
+type PackageContainerMetadata struct {
+ Tags []string `json:"tags,omitempty"`
+}
+
+func (r PackageContainerMetadata) String() string {
+ return Stringify(r)
+}