cloudsmith_api

package
v0.0.0-...-8d73e10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 21 Imported by: 2

README

Go API client for cloudsmith_api

The API to the Cloudsmith Service

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: v1
  • Package version: 1.61.3
  • Build package: io.swagger.codegen.languages.GoClientCodegen For more information, please visit https://help.cloudsmith.io

Installation

Put the package under your project folder and add the following in import:

import "./cloudsmith_api"

Documentation for API Endpoints

All URIs are relative to https://api.cloudsmith.io/v1

Class Method HTTP request Description
BadgesApi BadgesVersionList Get /badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/ Get latest package version for a package or package group.
DistrosApi DistrosList Get /distros/ Get a list of all supported distributions.
DistrosApi DistrosRead Get /distros/{slug}/ View for viewing/listing distributions.
EntitlementsApi EntitlementsCreate Post /entitlements/{owner}/{repo}/ Create a specific entitlement in a repository.
EntitlementsApi EntitlementsDelete Delete /entitlements/{owner}/{repo}/{identifier}/ Delete a specific entitlement in a repository.
EntitlementsApi EntitlementsDisable Post /entitlements/{owner}/{repo}/{identifier}/disable/ Disable an entitlement token in a repository.
EntitlementsApi EntitlementsEnable Post /entitlements/{owner}/{repo}/{identifier}/enable/ Enable an entitlement token in a repository.
EntitlementsApi EntitlementsList Get /entitlements/{owner}/{repo}/ Get a list of all entitlements in a repository.
EntitlementsApi EntitlementsPartialUpdate Patch /entitlements/{owner}/{repo}/{identifier}/ Update a specific entitlement in a repository.
EntitlementsApi EntitlementsRead Get /entitlements/{owner}/{repo}/{identifier}/ Get a specific entitlement in a repository.
EntitlementsApi EntitlementsRefresh Post /entitlements/{owner}/{repo}/{identifier}/refresh/ Refresh an entitlement token in a repository.
EntitlementsApi EntitlementsReset Post /entitlements/{owner}/{repo}/{identifier}/reset/ Reset the statistics for an entitlement token in a repository.
EntitlementsApi EntitlementsSync Post /entitlements/{owner}/{repo}/sync/ Synchronise tokens from a source repository.
FilesApi FilesAbort Post /files/{owner}/{repo}/{identifier}/abort/ Abort a multipart file upload.
FilesApi FilesComplete Post /files/{owner}/{repo}/{identifier}/complete/ Complete a multipart file upload.
FilesApi FilesCreate Post /files/{owner}/{repo}/ Request URL(s) to upload new package file upload(s) to.
FilesApi FilesInfo Get /files/{owner}/{repo}/{identifier}/info/ Get upload information for a multipart file upload.
FilesApi FilesValidate Post /files/{owner}/{repo}/validate/ Validate parameters used for create.
FormatsApi FormatsList Get /formats/ Get a list of all supported package formats.
FormatsApi FormatsRead Get /formats/{slug}/ Get a specific supported package format.
MetricsApi MetricsEntitlementsList Get /metrics/entitlements/{owner}/ View for listing entitlement token metrics, across an account.
MetricsApi MetricsEntitlementsList0 Get /metrics/entitlements/{owner}/{repo}/ View for listing entitlement token metrics, for a repository.
MetricsApi MetricsPackagesList Get /metrics/packages/{owner}/{repo}/ View for listing package usage metrics, for a repository.
NamespacesApi NamespacesList Get /namespaces/ Get a list of all namespaces the user belongs to.
NamespacesApi NamespacesRead Get /namespaces/{slug}/ Views for working with namespaces.
OrgsApi OrgsList Get /orgs/ Get a list of all the organizations you are associated with.
OrgsApi OrgsMembersList Get /orgs/{org}/members/ Get the details for all organization members.
OrgsApi OrgsMembersRead Get /orgs/{org}/members/{member}/ Get the details for a specific organization member.
OrgsApi OrgsMembersRemove Get /orgs/{org}/members/{member}/remove/ Removes a member from the organization.
OrgsApi OrgsRead Get /orgs/{org}/ Get the details for the specific organization.
PackagesApi PackagesCopy Post /packages/{owner}/{repo}/{identifier}/copy/ Copy a package to another repository.
PackagesApi PackagesDelete Delete /packages/{owner}/{repo}/{identifier}/ Delete a specific package in a repository.
PackagesApi PackagesDependencies Get /packages/{owner}/{repo}/{identifier}/dependencies/ Get the direct (non-transitive) dependencies list for a package.
PackagesApi PackagesList Get /packages/{owner}/{repo}/ Get a list of all packages associated with repository.
PackagesApi PackagesMove Post /packages/{owner}/{repo}/{identifier}/move/ Move a package to another repository.
PackagesApi PackagesQuarantine Post /packages/{owner}/{repo}/{identifier}/quarantine/ Quarantine or restore a package.
PackagesApi PackagesRead Get /packages/{owner}/{repo}/{identifier}/ Get a specific package in a repository.
PackagesApi PackagesResync Post /packages/{owner}/{repo}/{identifier}/resync/ Schedule a package for resynchronisation.
PackagesApi PackagesScan Post /packages/{owner}/{repo}/{identifier}/scan/ Schedule a package for scanning.
PackagesApi PackagesStatus Get /packages/{owner}/{repo}/{identifier}/status/ Get the synchronisation status for a package.
PackagesApi PackagesTag Post /packages/{owner}/{repo}/{identifier}/tag/ Add/Replace/Remove tags for a package.
PackagesApi PackagesUploadAlpine Post /packages/{owner}/{repo}/upload/alpine/ Create a new Alpine package
PackagesApi PackagesUploadCargo Post /packages/{owner}/{repo}/upload/cargo/ Create a new Cargo package
PackagesApi PackagesUploadCocoapods Post /packages/{owner}/{repo}/upload/cocoapods/ Create a new CocoaPods package
PackagesApi PackagesUploadComposer Post /packages/{owner}/{repo}/upload/composer/ Create a new Composer package
PackagesApi PackagesUploadConan Post /packages/{owner}/{repo}/upload/conan/ Create a new Conan package
PackagesApi PackagesUploadConda Post /packages/{owner}/{repo}/upload/conda/ Create a new Conda package
PackagesApi PackagesUploadCran Post /packages/{owner}/{repo}/upload/cran/ Create a new CRAN package
PackagesApi PackagesUploadDart Post /packages/{owner}/{repo}/upload/dart/ Create a new Dart package
PackagesApi PackagesUploadDeb Post /packages/{owner}/{repo}/upload/deb/ Create a new Debian package
PackagesApi PackagesUploadDocker Post /packages/{owner}/{repo}/upload/docker/ Create a new Docker package
PackagesApi PackagesUploadGo Post /packages/{owner}/{repo}/upload/go/ Create a new Go package
PackagesApi PackagesUploadHelm Post /packages/{owner}/{repo}/upload/helm/ Create a new Helm package
PackagesApi PackagesUploadLuarocks Post /packages/{owner}/{repo}/upload/luarocks/ Create a new LuaRocks package
PackagesApi PackagesUploadMaven Post /packages/{owner}/{repo}/upload/maven/ Create a new Maven package
PackagesApi PackagesUploadNpm Post /packages/{owner}/{repo}/upload/npm/ Create a new npm package
PackagesApi PackagesUploadNuget Post /packages/{owner}/{repo}/upload/nuget/ Create a new NuGet package
PackagesApi PackagesUploadP2 Post /packages/{owner}/{repo}/upload/p2/ Create a new P2 package
PackagesApi PackagesUploadPython Post /packages/{owner}/{repo}/upload/python/ Create a new Python package
PackagesApi PackagesUploadRaw Post /packages/{owner}/{repo}/upload/raw/ Create a new Raw package
PackagesApi PackagesUploadRpm Post /packages/{owner}/{repo}/upload/rpm/ Create a new RedHat package
PackagesApi PackagesUploadRuby Post /packages/{owner}/{repo}/upload/ruby/ Create a new Ruby package
PackagesApi PackagesUploadTerraform Post /packages/{owner}/{repo}/upload/terraform/ Create a new Terraform package
PackagesApi PackagesUploadVagrant Post /packages/{owner}/{repo}/upload/vagrant/ Create a new Vagrant package
PackagesApi PackagesValidateUploadAlpine Post /packages/{owner}/{repo}/validate-upload/alpine/ Validate parameters for create Alpine package
PackagesApi PackagesValidateUploadCargo Post /packages/{owner}/{repo}/validate-upload/cargo/ Validate parameters for create Cargo package
PackagesApi PackagesValidateUploadCocoapods Post /packages/{owner}/{repo}/validate-upload/cocoapods/ Validate parameters for create CocoaPods package
PackagesApi PackagesValidateUploadComposer Post /packages/{owner}/{repo}/validate-upload/composer/ Validate parameters for create Composer package
PackagesApi PackagesValidateUploadConan Post /packages/{owner}/{repo}/validate-upload/conan/ Validate parameters for create Conan package
PackagesApi PackagesValidateUploadConda Post /packages/{owner}/{repo}/validate-upload/conda/ Validate parameters for create Conda package
PackagesApi PackagesValidateUploadCran Post /packages/{owner}/{repo}/validate-upload/cran/ Validate parameters for create CRAN package
PackagesApi PackagesValidateUploadDart Post /packages/{owner}/{repo}/validate-upload/dart/ Validate parameters for create Dart package
PackagesApi PackagesValidateUploadDeb Post /packages/{owner}/{repo}/validate-upload/deb/ Validate parameters for create Debian package
PackagesApi PackagesValidateUploadDocker Post /packages/{owner}/{repo}/validate-upload/docker/ Validate parameters for create Docker package
PackagesApi PackagesValidateUploadGo Post /packages/{owner}/{repo}/validate-upload/go/ Validate parameters for create Go package
PackagesApi PackagesValidateUploadHelm Post /packages/{owner}/{repo}/validate-upload/helm/ Validate parameters for create Helm package
PackagesApi PackagesValidateUploadLuarocks Post /packages/{owner}/{repo}/validate-upload/luarocks/ Validate parameters for create LuaRocks package
PackagesApi PackagesValidateUploadMaven Post /packages/{owner}/{repo}/validate-upload/maven/ Validate parameters for create Maven package
PackagesApi PackagesValidateUploadNpm Post /packages/{owner}/{repo}/validate-upload/npm/ Validate parameters for create npm package
PackagesApi PackagesValidateUploadNuget Post /packages/{owner}/{repo}/validate-upload/nuget/ Validate parameters for create NuGet package
PackagesApi PackagesValidateUploadP2 Post /packages/{owner}/{repo}/validate-upload/p2/ Validate parameters for create P2 package
PackagesApi PackagesValidateUploadPython Post /packages/{owner}/{repo}/validate-upload/python/ Validate parameters for create Python package
PackagesApi PackagesValidateUploadRaw Post /packages/{owner}/{repo}/validate-upload/raw/ Validate parameters for create Raw package
PackagesApi PackagesValidateUploadRpm Post /packages/{owner}/{repo}/validate-upload/rpm/ Validate parameters for create RedHat package
PackagesApi PackagesValidateUploadRuby Post /packages/{owner}/{repo}/validate-upload/ruby/ Validate parameters for create Ruby package
PackagesApi PackagesValidateUploadTerraform Post /packages/{owner}/{repo}/validate-upload/terraform/ Validate parameters for create Terraform package
PackagesApi PackagesValidateUploadVagrant Post /packages/{owner}/{repo}/validate-upload/vagrant/ Validate parameters for create Vagrant package
QuotaApi QuotaHistoryRead Get /quota/history/{owner}/ Quota history for a given namespace.
QuotaApi QuotaOssHistoryRead Get /quota/oss/history/{owner}/ Open-source Quota history for a given namespace.
QuotaApi QuotaOssRead Get /quota/oss/{owner}/ Open-source Quota usage for a given namespace.
QuotaApi QuotaRead Get /quota/{owner}/ Quota usage for a given namespace.
RatesApi RatesLimitsList Get /rates/limits/ Endpoint to check rate limits for current user.
ReposApi ReposAllList Get /repos/ Get a list of all repositories associated with current user.
ReposApi ReposCreate Post /repos/{owner}/ Create a new repository in a given namespace.
ReposApi ReposDelete Delete /repos/{owner}/{identifier}/ Delete a repository in a given namespace.
ReposApi ReposList Get /repos/{owner}/ Get a list of all repositories within a namespace.
ReposApi ReposPartialUpdate Patch /repos/{owner}/{identifier}/ Update details about a repository in a given namespace.
ReposApi ReposRead Get /repos/{owner}/{identifier}/ Get a specific repository.
StatusApi StatusCheckBasic Get /status/check/basic/ Endpoint to check basic API connectivity.
StorageRegionsApi StorageRegionsList Get /storage-regions/ Get a list of all available storage regions.
StorageRegionsApi StorageRegionsRead Get /storage-regions/{slug}/ Get a specific storage region.
UserApi UserSelf Get /user/self/ Provide a brief for the current user (if any).
UserApi UserTokenCreate Post /user/token/ Retrieve the API key/token for the authenticated user.
UsersApi UsersProfileRead Get /users/profile/{slug}/ Provide a brief for the specified user (if any).
VulnerabilitiesApi VulnerabilitiesList Get /vulnerabilities/{owner}/ Lists scan results for a specific namespace.
VulnerabilitiesApi VulnerabilitiesList0 Get /vulnerabilities/{owner}/{repo}/ Lists scan results for a specific repository.
VulnerabilitiesApi VulnerabilitiesList1 Get /vulnerabilities/{owner}/{repo}/{package}/ Lists scan results for a specific package.
VulnerabilitiesApi VulnerabilitiesRead Get /vulnerabilities/{owner}/{repo}/{package}/{scan_id}/ Returns a Scan Result.
WebhooksApi WebhooksCreate Post /webhooks/{owner}/{repo}/ Create a specific webhook in a repository.
WebhooksApi WebhooksDelete Delete /webhooks/{owner}/{repo}/{identifier}/ Delete a specific webhook in a repository.
WebhooksApi WebhooksList Get /webhooks/{owner}/{repo}/ Get a list of all webhooks in a repository.
WebhooksApi WebhooksPartialUpdate Patch /webhooks/{owner}/{repo}/{identifier}/ Update a specific webhook in a repository.
WebhooksApi WebhooksRead Get /webhooks/{owner}/{repo}/{identifier}/ Views for working with repository webhooks.

Documentation For Models

Documentation For Authorization

apikey

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

basic

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
	UserName: "username",
	Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author

support@cloudsmith.io

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	BadgesApi *BadgesApiService

	DistrosApi *DistrosApiService

	EntitlementsApi *EntitlementsApiService

	FilesApi *FilesApiService

	FormatsApi *FormatsApiService

	MetricsApi *MetricsApiService

	NamespacesApi *NamespacesApiService

	OrgsApi *OrgsApiService

	PackagesApi *PackagesApiService

	QuotaApi *QuotaApiService

	RatesApi *RatesApiService

	ReposApi *ReposApiService

	StatusApi *StatusApiService

	StorageRegionsApi *StorageRegionsApiService

	UserApi *UserApiService

	UsersApi *UsersApiService

	VulnerabilitiesApi *VulnerabilitiesApiService

	WebhooksApi *WebhooksApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Cloudsmith API API vv1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AlpinePackageUpload

type AlpinePackageUpload struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	//
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type BadgesApiBadgesVersionListOpts

type BadgesApiBadgesVersionListOpts struct {
	BadgeToken   optional.String
	CacheSeconds optional.String
	Color        optional.String
	Label        optional.String
	LabelColor   optional.String
	LogoColor    optional.String
	LogoWidth    optional.String
	Render       optional.Bool
	Shields      optional.Bool
	ShowLatest   optional.Bool
	Style        optional.String
}

type BadgesApiService

type BadgesApiService service

func (*BadgesApiService) BadgesVersionList

func (a *BadgesApiService) BadgesVersionList(ctx context.Context, owner string, repo string, packageFormat string, packageName string, packageVersion string, packageIdentifiers string, localVarOptionals *BadgesApiBadgesVersionListOpts) (interface{}, *http.Response, error)

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ConanPackageUpload

type ConanPackageUpload struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// Conan channel.
	ConanChannel string `json:"conan_channel,omitempty"`
	// Conan prefix (User).
	ConanPrefix string `json:"conan_prefix,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	//
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type Distribution

type Distribution struct {
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	//
	Name string `json:"name"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	// The slug identifier for this distribution
	Slug string `json:"slug,omitempty"`
	//
	Variants string `json:"variants,omitempty"`
	// A list of the versions for this distribution
	Versions []DistrosVersions `json:"versions,omitempty"`
}

type DistrosApiService

type DistrosApiService service

func (*DistrosApiService) DistrosList

func (a *DistrosApiService) DistrosList(ctx context.Context) ([]Distribution, *http.Response, error)

DistrosApiService Get a list of all supported distributions. Get a list of all supported distributions.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Distribution

func (*DistrosApiService) DistrosRead

func (a *DistrosApiService) DistrosRead(ctx context.Context, slug string) (Distribution, *http.Response, error)

DistrosApiService View for viewing/listing distributions. View for viewing/listing distributions.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param slug

@return Distribution

type DistrosVersions

type DistrosVersions struct {
	// The textual name for this version.
	Name string `json:"name,omitempty"`
	// The slug identifier for this version
	Slug string `json:"slug,omitempty"`
}

type EntitlementUsageMetrics

type EntitlementUsageMetrics struct {
	//
	Tokens interface{} `json:"tokens"`
}

type EntitlementsApiEntitlementsCreateOpts

type EntitlementsApiEntitlementsCreateOpts struct {
	ShowTokens optional.Bool
	Data       optional.Interface
}

type EntitlementsApiEntitlementsListOpts

type EntitlementsApiEntitlementsListOpts struct {
	Page       optional.Int32
	PageSize   optional.Int32
	ShowTokens optional.Bool
}

type EntitlementsApiEntitlementsPartialUpdateOpts

type EntitlementsApiEntitlementsPartialUpdateOpts struct {
	ShowTokens optional.Bool
	Data       optional.Interface
}

type EntitlementsApiEntitlementsReadOpts

type EntitlementsApiEntitlementsReadOpts struct {
	ShowTokens optional.Bool
}

type EntitlementsApiEntitlementsRefreshOpts

type EntitlementsApiEntitlementsRefreshOpts struct {
	ShowTokens optional.Bool
	Data       optional.Interface
}

type EntitlementsApiEntitlementsResetOpts

type EntitlementsApiEntitlementsResetOpts struct {
	ShowTokens optional.Bool
}

type EntitlementsApiEntitlementsSyncOpts

type EntitlementsApiEntitlementsSyncOpts struct {
	ShowTokens optional.Bool
	Data       optional.Interface
}

type EntitlementsApiService

type EntitlementsApiService service

func (*EntitlementsApiService) EntitlementsCreate

func (a *EntitlementsApiService) EntitlementsCreate(ctx context.Context, owner string, repo string, localVarOptionals *EntitlementsApiEntitlementsCreateOpts) (RepositoryToken, *http.Response, error)

func (*EntitlementsApiService) EntitlementsDelete

func (a *EntitlementsApiService) EntitlementsDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)

EntitlementsApiService Delete a specific entitlement in a repository. Delete a specific entitlement in a repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

func (*EntitlementsApiService) EntitlementsDisable

func (a *EntitlementsApiService) EntitlementsDisable(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)

EntitlementsApiService Disable an entitlement token in a repository. Disable an entitlement token in a repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

func (*EntitlementsApiService) EntitlementsEnable

func (a *EntitlementsApiService) EntitlementsEnable(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)

EntitlementsApiService Enable an entitlement token in a repository. Enable an entitlement token in a repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

func (*EntitlementsApiService) EntitlementsList

func (a *EntitlementsApiService) EntitlementsList(ctx context.Context, owner string, repo string, localVarOptionals *EntitlementsApiEntitlementsListOpts) ([]RepositoryToken, *http.Response, error)

func (*EntitlementsApiService) EntitlementsPartialUpdate

func (a *EntitlementsApiService) EntitlementsPartialUpdate(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsPartialUpdateOpts) (RepositoryToken, *http.Response, error)

func (*EntitlementsApiService) EntitlementsRead

func (a *EntitlementsApiService) EntitlementsRead(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsReadOpts) (RepositoryToken, *http.Response, error)

func (*EntitlementsApiService) EntitlementsRefresh

func (a *EntitlementsApiService) EntitlementsRefresh(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsRefreshOpts) (RepositoryTokenRefresh, *http.Response, error)

func (*EntitlementsApiService) EntitlementsReset

func (a *EntitlementsApiService) EntitlementsReset(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsResetOpts) (*http.Response, error)

func (*EntitlementsApiService) EntitlementsSync

func (a *EntitlementsApiService) EntitlementsSync(ctx context.Context, owner string, repo string, localVarOptionals *EntitlementsApiEntitlementsSyncOpts) (RepositoryTokenSync, *http.Response, error)

type EntitlementsCreate

type EntitlementsCreate struct {
	// If checked, a EULA acceptance is required for this token.
	EulaRequired bool `json:"eula_required,omitempty"`
	// If enabled, the token will allow downloads based on configured restrictions (if any).
	IsActive bool `json:"is_active,omitempty"`
	// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
	// None
	LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
	// The starting date/time the token is allowed to be used from.
	LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
	// The ending date/time the token is allowed to be used until.
	LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
	// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumClients int32 `json:"limit_num_clients,omitempty"`
	// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
	// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
	LimitPackageQuery string `json:"limit_package_query,omitempty"`
	// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
	LimitPathQuery string `json:"limit_path_query,omitempty"`
	// None
	Metadata interface{} `json:"metadata,omitempty"`
	// None
	Name string `json:"name"`
	// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
	ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
	// None
	ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
	// None
	Token string `json:"token,omitempty"`
}

type EntitlementsPartialUpdate

type EntitlementsPartialUpdate struct {
	// If checked, a EULA acceptance is required for this token.
	EulaRequired bool `json:"eula_required,omitempty"`
	// If enabled, the token will allow downloads based on configured restrictions (if any).
	IsActive bool `json:"is_active,omitempty"`
	// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
	// None
	LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
	// The starting date/time the token is allowed to be used from.
	LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
	// The ending date/time the token is allowed to be used until.
	LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
	// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumClients int32 `json:"limit_num_clients,omitempty"`
	// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
	// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
	LimitPackageQuery string `json:"limit_package_query,omitempty"`
	// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
	LimitPathQuery string `json:"limit_path_query,omitempty"`
	// None
	Metadata interface{} `json:"metadata,omitempty"`
	// None
	Name string `json:"name,omitempty"`
	// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
	ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
	// None
	ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
	// None
	Token string `json:"token,omitempty"`
}

type EntitlementsRefresh

type EntitlementsRefresh struct {
	// If checked, a EULA acceptance is required for this token.
	EulaRequired bool `json:"eula_required,omitempty"`
	// If enabled, the token will allow downloads based on configured restrictions (if any).
	IsActive bool `json:"is_active,omitempty"`
	// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
	// None
	LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
	// The starting date/time the token is allowed to be used from.
	LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
	// The ending date/time the token is allowed to be used until.
	LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
	// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumClients int32 `json:"limit_num_clients,omitempty"`
	// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
	// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
	LimitPackageQuery string `json:"limit_package_query,omitempty"`
	// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
	LimitPathQuery string `json:"limit_path_query,omitempty"`
	// None
	Metadata interface{} `json:"metadata,omitempty"`
	// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
	ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
	// None
	ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
	// None
	Token string `json:"token,omitempty"`
}

type EntitlementsSync

type EntitlementsSync struct {
	// The source repository slug (in the same owner namespace).
	Source string `json:"source"`
}

type FilesAbort

type FilesAbort struct {
	// Filename for the package file upload.
	Filename string `json:"filename"`
	// MD5 checksum for a POST-based package file upload.
	Md5Checksum string `json:"md5_checksum,omitempty"`
	// The method to use for package file upload.
	Method string `json:"method,omitempty"`
	// SHA256 checksum for a PUT-based package file upload.
	Sha256Checksum string `json:"sha256_checksum,omitempty"`
}

type FilesApiFilesAbortOpts

type FilesApiFilesAbortOpts struct {
	Data optional.Interface
}

type FilesApiFilesCompleteOpts

type FilesApiFilesCompleteOpts struct {
	Data optional.Interface
}

type FilesApiFilesCreateOpts

type FilesApiFilesCreateOpts struct {
	Data optional.Interface
}

type FilesApiFilesValidateOpts

type FilesApiFilesValidateOpts struct {
	Data optional.Interface
}

type FilesApiService

type FilesApiService service

func (*FilesApiService) FilesAbort

func (a *FilesApiService) FilesAbort(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *FilesApiFilesAbortOpts) (*http.Response, error)

func (*FilesApiService) FilesComplete

func (a *FilesApiService) FilesComplete(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *FilesApiFilesCompleteOpts) (PackageFileUpload, *http.Response, error)

func (*FilesApiService) FilesCreate

func (a *FilesApiService) FilesCreate(ctx context.Context, owner string, repo string, localVarOptionals *FilesApiFilesCreateOpts) (PackageFileUpload, *http.Response, error)

func (*FilesApiService) FilesInfo

func (a *FilesApiService) FilesInfo(ctx context.Context, owner string, repo string, identifier string) (PackageFilePartsUpload, *http.Response, error)

FilesApiService Get upload information for a multipart file upload. Get upload information for a multipart file upload.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return PackageFilePartsUpload

func (*FilesApiService) FilesValidate

func (a *FilesApiService) FilesValidate(ctx context.Context, owner string, repo string, localVarOptionals *FilesApiFilesValidateOpts) (*http.Response, error)

type FilesComplete

type FilesComplete struct {
	// Filename for the package file upload.
	Filename string `json:"filename"`
	// MD5 checksum for a POST-based package file upload.
	Md5Checksum string `json:"md5_checksum,omitempty"`
	// The method to use for package file upload.
	Method string `json:"method,omitempty"`
	// SHA256 checksum for a PUT-based package file upload.
	Sha256Checksum string `json:"sha256_checksum,omitempty"`
}

type FilesCreate

type FilesCreate struct {
	// Filename for the package file upload.
	Filename string `json:"filename"`
	// MD5 checksum for a POST-based package file upload.
	Md5Checksum string `json:"md5_checksum,omitempty"`
	// The method to use for package file upload.
	Method string `json:"method,omitempty"`
	// SHA256 checksum for a PUT-based package file upload.
	Sha256Checksum string `json:"sha256_checksum,omitempty"`
}

type FilesValidate

type FilesValidate struct {
	// Filename for the package file upload.
	Filename string `json:"filename"`
	// MD5 checksum for a POST-based package file upload.
	Md5Checksum string `json:"md5_checksum,omitempty"`
	// The method to use for package file upload.
	Method string `json:"method,omitempty"`
	// SHA256 checksum for a PUT-based package file upload.
	Sha256Checksum string `json:"sha256_checksum,omitempty"`
}

type Format

type Format struct {
	// Description of the package format
	Description string `json:"description"`
	// The distributions supported by this package format
	Distributions []FormatsDistributions `json:"distributions,omitempty"`
	// A non-exhaustive list of extensions supported
	Extensions []string `json:"extensions"`
	// Name for the package format
	Name string `json:"name"`
	// If true the package format is a premium-only feature
	Premium bool `json:"premium"`
	// The minimum plan id required for this package format
	PremiumPlanId string `json:"premium_plan_id,omitempty"`
	// The minimum plan name required for this package format
	PremiumPlanName string `json:"premium_plan_name,omitempty"`
	// Slug for the package format
	Slug string `json:"slug"`
	// A set of what the package format supports
	Supports interface{} `json:"supports"`
}

type FormatsApiService

type FormatsApiService service

func (*FormatsApiService) FormatsList

func (a *FormatsApiService) FormatsList(ctx context.Context) ([]Format, *http.Response, error)

FormatsApiService Get a list of all supported package formats. Get a list of all supported package formats.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Format

func (*FormatsApiService) FormatsRead

func (a *FormatsApiService) FormatsRead(ctx context.Context, slug string) (Format, *http.Response, error)

FormatsApiService Get a specific supported package format. Get a specific supported package format.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param slug

@return Format

type FormatsDistributions

type FormatsDistributions struct {
	//
	Name string `json:"name,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	// The slug identifier for this distribution
	Slug string `json:"slug,omitempty"`
	//
	Variants string `json:"variants,omitempty"`
}

type GenericSwaggerError

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

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type MavenPackageUpload

type MavenPackageUpload struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	// The ID of the artifact.
	ArtifactId string `json:"artifact_id,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Artifact's group ID.
	GroupId string `json:"group_id,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// Artifact's Maven packaging type.
	Packaging string `json:"packaging,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	//
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type MetricsApiMetricsEntitlementsList0Opts

type MetricsApiMetricsEntitlementsList0Opts struct {
	Page     optional.Int32
	PageSize optional.Int32
	Finish   optional.String
	Start    optional.String
	Tokens   optional.String
}

type MetricsApiMetricsEntitlementsListOpts

type MetricsApiMetricsEntitlementsListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
	Finish   optional.String
	Start    optional.String
	Tokens   optional.String
}

type MetricsApiMetricsPackagesListOpts

type MetricsApiMetricsPackagesListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
	Finish   optional.String
	Packages optional.String
	Start    optional.String
}

type MetricsApiService

type MetricsApiService service

func (*MetricsApiService) MetricsEntitlementsList

func (a *MetricsApiService) MetricsEntitlementsList(ctx context.Context, owner string, localVarOptionals *MetricsApiMetricsEntitlementsListOpts) (EntitlementUsageMetrics, *http.Response, error)

func (*MetricsApiService) MetricsEntitlementsList0

func (a *MetricsApiService) MetricsEntitlementsList0(ctx context.Context, owner string, repo string, localVarOptionals *MetricsApiMetricsEntitlementsList0Opts) (EntitlementUsageMetrics, *http.Response, error)

func (*MetricsApiService) MetricsPackagesList

func (a *MetricsApiService) MetricsPackagesList(ctx context.Context, owner string, repo string, localVarOptionals *MetricsApiMetricsPackagesListOpts) (PackageUsageMetrics, *http.Response, error)

type ModelPackage

type ModelPackage struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	//
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field.
	Tags interface{} `json:"tags,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type Namespace

type Namespace struct {
	//
	Name string `json:"name,omitempty"`
	//
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	//
	TypeName string `json:"type_name,omitempty"`
}

type NamespacesApiNamespacesListOpts

type NamespacesApiNamespacesListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type NamespacesApiService

type NamespacesApiService service

func (*NamespacesApiService) NamespacesList

func (a *NamespacesApiService) NamespacesList(ctx context.Context, localVarOptionals *NamespacesApiNamespacesListOpts) ([]Namespace, *http.Response, error)

func (*NamespacesApiService) NamespacesRead

func (a *NamespacesApiService) NamespacesRead(ctx context.Context, slug string) (Namespace, *http.Response, error)

NamespacesApiService Views for working with namespaces. Views for working with namespaces.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param slug

@return Namespace

type Organization

type Organization struct {
	//
	Country string `json:"country,omitempty"`
	//
	CreatedAt string `json:"created_at,omitempty"`
	// The city/town/area your organization is based in.
	Location string `json:"location,omitempty"`
	// A descriptive name for your organization.
	Name string `json:"name,omitempty"`
	//
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// A short public descriptive for your organization.
	Tagline string `json:"tagline,omitempty"`
}

type OrganizationMembership

type OrganizationMembership struct {
	//
	Email string `json:"email,omitempty"`
	//
	HasTwoFactor bool `json:"has_two_factor,omitempty"`
	//
	JoinedAt string `json:"joined_at,omitempty"`
	//
	LastLoginAt string `json:"last_login_at,omitempty"`
	//
	Role string `json:"role,omitempty"`
	//
	User string `json:"user,omitempty"`
	//
	UserId string `json:"user_id,omitempty"`
	//
	UserName string `json:"user_name,omitempty"`
	//
	UserUrl string `json:"user_url,omitempty"`
	//
	Visibility string `json:"visibility,omitempty"`
}

type OrgsApiOrgsListOpts

type OrgsApiOrgsListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type OrgsApiOrgsMembersListOpts

type OrgsApiOrgsMembersListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type OrgsApiService

type OrgsApiService service

func (*OrgsApiService) OrgsList

func (a *OrgsApiService) OrgsList(ctx context.Context, localVarOptionals *OrgsApiOrgsListOpts) ([]Organization, *http.Response, error)

func (*OrgsApiService) OrgsMembersList

func (a *OrgsApiService) OrgsMembersList(ctx context.Context, org string, localVarOptionals *OrgsApiOrgsMembersListOpts) ([]OrganizationMembership, *http.Response, error)

func (*OrgsApiService) OrgsMembersRead

func (a *OrgsApiService) OrgsMembersRead(ctx context.Context, org string, member string) (OrganizationMembership, *http.Response, error)

OrgsApiService Get the details for a specific organization member. Get the details for a specific organization member.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param org
  • @param member

@return OrganizationMembership

func (*OrgsApiService) OrgsMembersRemove

func (a *OrgsApiService) OrgsMembersRemove(ctx context.Context, org string, member string) (OrganizationMembership, *http.Response, error)

OrgsApiService Removes a member from the organization. Removes a member from the organization.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param org
  • @param member

@return OrganizationMembership

func (*OrgsApiService) OrgsRead

func (a *OrgsApiService) OrgsRead(ctx context.Context, org string) (Organization, *http.Response, error)

OrgsApiService Get the details for the specific organization. Get the details for the specific organization.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param org

@return Organization

type PackageCopy

type PackageCopy struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	// The repository the package will be copied to.
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field.
	Tags interface{} `json:"tags,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type PackageDependencies

type PackageDependencies struct {
	//
	Dependencies []PackageDependenciesDependencies `json:"dependencies"`
}

type PackageDependenciesDependencies

type PackageDependenciesDependencies struct {
	//
	DepType string `json:"dep_type,omitempty"`
	// The name of the package dependency.
	Name string `json:"name,omitempty"`
	//
	Operator string `json:"operator,omitempty"`
	// The raw dependency version (if any).
	Version string `json:"version,omitempty"`
}

type PackageFilePartsUpload

type PackageFilePartsUpload struct {
	// The identifier for the file to use uploading parts.
	Identifier string `json:"identifier,omitempty"`
	// The querystring to use for the next-step PUT upload.
	UploadQuerystring string `json:"upload_querystring,omitempty"`
	// The URL to use for the next-step PUT upload
	UploadUrl string `json:"upload_url,omitempty"`
}

type PackageFileUpload

type PackageFileUpload struct {
	// The identifier for the file to use when creating packages
	Identifier string `json:"identifier,omitempty"`
	// The dictionary of fields that must be sent with POST uploads
	UploadFields interface{} `json:"upload_fields,omitempty"`
	// The dictionary of headers that must be sent with uploads
	UploadHeaders interface{} `json:"upload_headers,omitempty"`
	// The querystring to use for the next-step POST or PUT upload
	UploadQuerystring string `json:"upload_querystring,omitempty"`
	// The URL to use for the next-step POST or PUT upload
	UploadUrl string `json:"upload_url,omitempty"`
}

type PackageMove

type PackageMove struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	// The repository the package will be moved to.
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field.
	Tags interface{} `json:"tags,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type PackageStatus

type PackageStatus struct {
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
}

type PackageUsageMetrics

type PackageUsageMetrics struct {
	//
	Packages interface{} `json:"packages"`
}

type PackagesApiPackagesCopyOpts

type PackagesApiPackagesCopyOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesListOpts

type PackagesApiPackagesListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
	Query    optional.String
	Sort     optional.String
}

type PackagesApiPackagesMoveOpts

type PackagesApiPackagesMoveOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesQuarantineOpts

type PackagesApiPackagesQuarantineOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesTagOpts

type PackagesApiPackagesTagOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadAlpineOpts

type PackagesApiPackagesUploadAlpineOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadCargoOpts

type PackagesApiPackagesUploadCargoOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadCocoapodsOpts

type PackagesApiPackagesUploadCocoapodsOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadComposerOpts

type PackagesApiPackagesUploadComposerOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadConanOpts

type PackagesApiPackagesUploadConanOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadCondaOpts

type PackagesApiPackagesUploadCondaOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadCranOpts

type PackagesApiPackagesUploadCranOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadDartOpts

type PackagesApiPackagesUploadDartOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadDebOpts

type PackagesApiPackagesUploadDebOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadDockerOpts

type PackagesApiPackagesUploadDockerOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadGoOpts

type PackagesApiPackagesUploadGoOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadHelmOpts

type PackagesApiPackagesUploadHelmOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadLuarocksOpts

type PackagesApiPackagesUploadLuarocksOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadMavenOpts

type PackagesApiPackagesUploadMavenOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadNpmOpts

type PackagesApiPackagesUploadNpmOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadNugetOpts

type PackagesApiPackagesUploadNugetOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadP2Opts

type PackagesApiPackagesUploadP2Opts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadPythonOpts

type PackagesApiPackagesUploadPythonOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadRawOpts

type PackagesApiPackagesUploadRawOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadRpmOpts

type PackagesApiPackagesUploadRpmOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadRubyOpts

type PackagesApiPackagesUploadRubyOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadTerraformOpts

type PackagesApiPackagesUploadTerraformOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesUploadVagrantOpts

type PackagesApiPackagesUploadVagrantOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadAlpineOpts

type PackagesApiPackagesValidateUploadAlpineOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadCargoOpts

type PackagesApiPackagesValidateUploadCargoOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadCocoapodsOpts

type PackagesApiPackagesValidateUploadCocoapodsOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadComposerOpts

type PackagesApiPackagesValidateUploadComposerOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadConanOpts

type PackagesApiPackagesValidateUploadConanOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadCondaOpts

type PackagesApiPackagesValidateUploadCondaOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadCranOpts

type PackagesApiPackagesValidateUploadCranOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadDartOpts

type PackagesApiPackagesValidateUploadDartOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadDebOpts

type PackagesApiPackagesValidateUploadDebOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadDockerOpts

type PackagesApiPackagesValidateUploadDockerOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadGoOpts

type PackagesApiPackagesValidateUploadGoOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadHelmOpts

type PackagesApiPackagesValidateUploadHelmOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadLuarocksOpts

type PackagesApiPackagesValidateUploadLuarocksOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadMavenOpts

type PackagesApiPackagesValidateUploadMavenOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadNpmOpts

type PackagesApiPackagesValidateUploadNpmOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadNugetOpts

type PackagesApiPackagesValidateUploadNugetOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadP2Opts

type PackagesApiPackagesValidateUploadP2Opts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadPythonOpts

type PackagesApiPackagesValidateUploadPythonOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadRawOpts

type PackagesApiPackagesValidateUploadRawOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadRpmOpts

type PackagesApiPackagesValidateUploadRpmOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadRubyOpts

type PackagesApiPackagesValidateUploadRubyOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadTerraformOpts

type PackagesApiPackagesValidateUploadTerraformOpts struct {
	Data optional.Interface
}

type PackagesApiPackagesValidateUploadVagrantOpts

type PackagesApiPackagesValidateUploadVagrantOpts struct {
	Data optional.Interface
}

type PackagesApiService

type PackagesApiService service

func (*PackagesApiService) PackagesCopy

func (a *PackagesApiService) PackagesCopy(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesCopyOpts) (PackageCopy, *http.Response, error)

func (*PackagesApiService) PackagesDelete

func (a *PackagesApiService) PackagesDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)

PackagesApiService Delete a specific package in a repository. Delete a specific package in a repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

func (*PackagesApiService) PackagesDependencies

func (a *PackagesApiService) PackagesDependencies(ctx context.Context, owner string, repo string, identifier string) (PackageDependencies, *http.Response, error)

PackagesApiService Get the direct (non-transitive) dependencies list for a package. Get the direct (non-transitive) dependencies list for a package.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return PackageDependencies

func (*PackagesApiService) PackagesList

func (a *PackagesApiService) PackagesList(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesListOpts) ([]ModelPackage, *http.Response, error)

func (*PackagesApiService) PackagesMove

func (a *PackagesApiService) PackagesMove(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesMoveOpts) (PackageMove, *http.Response, error)

func (*PackagesApiService) PackagesQuarantine

func (a *PackagesApiService) PackagesQuarantine(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesQuarantineOpts) (ModelPackage, *http.Response, error)

func (*PackagesApiService) PackagesRead

func (a *PackagesApiService) PackagesRead(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error)

PackagesApiService Get a specific package in a repository. Get a specific package in a repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return ModelPackage

func (*PackagesApiService) PackagesResync

func (a *PackagesApiService) PackagesResync(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error)

PackagesApiService Schedule a package for resynchronisation. Schedule a package for resynchronisation.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return ModelPackage

func (*PackagesApiService) PackagesScan

func (a *PackagesApiService) PackagesScan(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error)

PackagesApiService Schedule a package for scanning. Schedule a package for scanning.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return ModelPackage

func (*PackagesApiService) PackagesStatus

func (a *PackagesApiService) PackagesStatus(ctx context.Context, owner string, repo string, identifier string) (PackageStatus, *http.Response, error)

PackagesApiService Get the synchronisation status for a package. Get the synchronisation status for a package.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return PackageStatus

func (*PackagesApiService) PackagesTag

func (a *PackagesApiService) PackagesTag(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesTagOpts) (ModelPackage, *http.Response, error)

func (*PackagesApiService) PackagesUploadAlpine

func (a *PackagesApiService) PackagesUploadAlpine(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadAlpineOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadCargo

func (a *PackagesApiService) PackagesUploadCargo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCargoOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadCocoapods

func (a *PackagesApiService) PackagesUploadCocoapods(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCocoapodsOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadComposer

func (a *PackagesApiService) PackagesUploadComposer(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadComposerOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadConan

func (a *PackagesApiService) PackagesUploadConan(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadConanOpts) (ConanPackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadConda

func (a *PackagesApiService) PackagesUploadConda(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCondaOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadCran

func (a *PackagesApiService) PackagesUploadCran(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCranOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadDart

func (a *PackagesApiService) PackagesUploadDart(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadDartOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadDeb

func (a *PackagesApiService) PackagesUploadDeb(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadDebOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadDocker

func (a *PackagesApiService) PackagesUploadDocker(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadDockerOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadGo

func (a *PackagesApiService) PackagesUploadGo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadGoOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadHelm

func (a *PackagesApiService) PackagesUploadHelm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadHelmOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadLuarocks

func (a *PackagesApiService) PackagesUploadLuarocks(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadLuarocksOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadMaven

func (a *PackagesApiService) PackagesUploadMaven(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadMavenOpts) (MavenPackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadNpm

func (a *PackagesApiService) PackagesUploadNpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadNpmOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadNuget

func (a *PackagesApiService) PackagesUploadNuget(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadNugetOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadP2

func (a *PackagesApiService) PackagesUploadP2(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadP2Opts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadPython

func (a *PackagesApiService) PackagesUploadPython(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadPythonOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadRaw

func (a *PackagesApiService) PackagesUploadRaw(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadRawOpts) (RawPackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadRpm

func (a *PackagesApiService) PackagesUploadRpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadRpmOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadRuby

func (a *PackagesApiService) PackagesUploadRuby(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadRubyOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadTerraform

func (a *PackagesApiService) PackagesUploadTerraform(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadTerraformOpts) (AlpinePackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesUploadVagrant

func (a *PackagesApiService) PackagesUploadVagrant(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadVagrantOpts) (VagrantPackageUpload, *http.Response, error)

func (*PackagesApiService) PackagesValidateUploadAlpine

func (a *PackagesApiService) PackagesValidateUploadAlpine(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadAlpineOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadCargo

func (a *PackagesApiService) PackagesValidateUploadCargo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCargoOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadCocoapods

func (a *PackagesApiService) PackagesValidateUploadCocoapods(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCocoapodsOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadComposer

func (a *PackagesApiService) PackagesValidateUploadComposer(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadComposerOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadConan

func (a *PackagesApiService) PackagesValidateUploadConan(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadConanOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadConda

func (a *PackagesApiService) PackagesValidateUploadConda(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCondaOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadCran

func (a *PackagesApiService) PackagesValidateUploadCran(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCranOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadDart

func (a *PackagesApiService) PackagesValidateUploadDart(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadDartOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadDeb

func (a *PackagesApiService) PackagesValidateUploadDeb(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadDebOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadDocker

func (a *PackagesApiService) PackagesValidateUploadDocker(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadDockerOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadGo

func (a *PackagesApiService) PackagesValidateUploadGo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadGoOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadHelm

func (a *PackagesApiService) PackagesValidateUploadHelm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadHelmOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadLuarocks

func (a *PackagesApiService) PackagesValidateUploadLuarocks(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadLuarocksOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadMaven

func (a *PackagesApiService) PackagesValidateUploadMaven(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadMavenOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadNpm

func (a *PackagesApiService) PackagesValidateUploadNpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadNpmOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadNuget

func (a *PackagesApiService) PackagesValidateUploadNuget(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadNugetOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadP2

func (a *PackagesApiService) PackagesValidateUploadP2(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadP2Opts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadPython

func (a *PackagesApiService) PackagesValidateUploadPython(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadPythonOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadRaw

func (a *PackagesApiService) PackagesValidateUploadRaw(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadRawOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadRpm

func (a *PackagesApiService) PackagesValidateUploadRpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadRpmOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadRuby

func (a *PackagesApiService) PackagesValidateUploadRuby(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadRubyOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadTerraform

func (a *PackagesApiService) PackagesValidateUploadTerraform(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadTerraformOpts) (*http.Response, error)

func (*PackagesApiService) PackagesValidateUploadVagrant

func (a *PackagesApiService) PackagesValidateUploadVagrant(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadVagrantOpts) (*http.Response, error)

type PackagesCopy

type PackagesCopy struct {
	// None
	Destination string `json:"destination"`
	// If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
}

type PackagesMove

type PackagesMove struct {
	// None
	Destination string `json:"destination"`
}

type PackagesQuarantine

type PackagesQuarantine struct {
	// If true, the package be restored from quarantine.
	Restore bool `json:"restore,omitempty"`
}

type PackagesTag

type PackagesTag struct {
	// None
	Action string `json:"action,omitempty"`
	// If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package.
	IsImmutable bool `json:"is_immutable,omitempty"`
	// A list of tags to apply the action to. Not required for clears.
	Tags []string `json:"tags,omitempty"`
}

type PackagesUploadAlpine

type PackagesUploadAlpine struct {
	// The distribution to store the package for.
	Distribution string `json:"distribution"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadCargo

type PackagesUploadCargo struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadCocoapods

type PackagesUploadCocoapods struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadComposer

type PackagesUploadComposer struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadConan

type PackagesUploadConan struct {
	// Conan channel.
	ConanChannel string `json:"conan_channel,omitempty"`
	// Conan prefix (User).
	ConanPrefix string `json:"conan_prefix,omitempty"`
	// The info file is an python file containing the package metadata.
	InfoFile string `json:"info_file"`
	// The info file is an python file containing the package metadata.
	ManifestFile string `json:"manifest_file"`
	// The conan file is an python file containing the package metadata.
	MetadataFile string `json:"metadata_file"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
}

type PackagesUploadConda

type PackagesUploadConda struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadCran

type PackagesUploadCran struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadDart

type PackagesUploadDart struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadDeb

type PackagesUploadDeb struct {
	// The changes archive containing the changes made to the source and debian packaging files
	ChangesFile string `json:"changes_file,omitempty"`
	// The distribution to store the package for.
	Distribution string `json:"distribution"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// The sources archive containing the source code for the binary
	SourcesFile string `json:"sources_file,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadDocker

type PackagesUploadDocker struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadGo

type PackagesUploadGo struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadHelm

type PackagesUploadHelm struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadLuarocks

type PackagesUploadLuarocks struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadMaven

type PackagesUploadMaven struct {
	// The ID of the artifact.
	ArtifactId string `json:"artifact_id,omitempty"`
	// Artifact's group ID.
	GroupId string `json:"group_id,omitempty"`
	// Adds bundled Java documentation to the Maven package
	JavadocFile string `json:"javadoc_file,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// Artifact's Maven packaging type.
	Packaging string `json:"packaging,omitempty"`
	// The POM file is an XML file containing the Maven coordinates.
	PomFile string `json:"pom_file,omitempty"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// Adds bundled Java source code to the Maven package.
	SourcesFile string `json:"sources_file,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// Adds bundled Java tests to the Maven package.
	TestsFile string `json:"tests_file,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
}

type PackagesUploadNpm

type PackagesUploadNpm struct {
	// The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag.
	NpmDistTag string `json:"npm_dist_tag,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadNuget

type PackagesUploadNuget struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// Attaches a symbols file to the package.
	SymbolsFile string `json:"symbols_file,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadP2

type PackagesUploadP2 struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadPython

type PackagesUploadPython struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadRaw

type PackagesUploadRaw struct {
	// A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here.
	ContentType string `json:"content_type,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
}

type PackagesUploadRpm

type PackagesUploadRpm struct {
	// The distribution to store the package for.
	Distribution string `json:"distribution"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadRuby

type PackagesUploadRuby struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadTerraform

type PackagesUploadTerraform struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesUploadVagrant

type PackagesUploadVagrant struct {
	// The name of this package.
	Name string `json:"name"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// The virtual machine provider for the box.
	Provider string `json:"provider"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// The raw version for this package.
	Version string `json:"version"`
}

type PackagesValidateuploadAlpine

type PackagesValidateuploadAlpine struct {
	// The distribution to store the package for.
	Distribution string `json:"distribution"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadCargo

type PackagesValidateuploadCargo struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadCocoapods

type PackagesValidateuploadCocoapods struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadComposer

type PackagesValidateuploadComposer struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadConan

type PackagesValidateuploadConan struct {
	// Conan channel.
	ConanChannel string `json:"conan_channel,omitempty"`
	// Conan prefix (User).
	ConanPrefix string `json:"conan_prefix,omitempty"`
	// The info file is an python file containing the package metadata.
	InfoFile string `json:"info_file"`
	// The info file is an python file containing the package metadata.
	ManifestFile string `json:"manifest_file"`
	// The conan file is an python file containing the package metadata.
	MetadataFile string `json:"metadata_file"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
}

type PackagesValidateuploadConda

type PackagesValidateuploadConda struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadCran

type PackagesValidateuploadCran struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadDart

type PackagesValidateuploadDart struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadDeb

type PackagesValidateuploadDeb struct {
	// The changes archive containing the changes made to the source and debian packaging files
	ChangesFile string `json:"changes_file,omitempty"`
	// The distribution to store the package for.
	Distribution string `json:"distribution"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// The sources archive containing the source code for the binary
	SourcesFile string `json:"sources_file,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadDocker

type PackagesValidateuploadDocker struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadGo

type PackagesValidateuploadGo struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadHelm

type PackagesValidateuploadHelm struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadLuarocks

type PackagesValidateuploadLuarocks struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadMaven

type PackagesValidateuploadMaven struct {
	// The ID of the artifact.
	ArtifactId string `json:"artifact_id,omitempty"`
	// Artifact's group ID.
	GroupId string `json:"group_id,omitempty"`
	// Adds bundled Java documentation to the Maven package
	JavadocFile string `json:"javadoc_file,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// Artifact's Maven packaging type.
	Packaging string `json:"packaging,omitempty"`
	// The POM file is an XML file containing the Maven coordinates.
	PomFile string `json:"pom_file,omitempty"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// Adds bundled Java source code to the Maven package.
	SourcesFile string `json:"sources_file,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// Adds bundled Java tests to the Maven package.
	TestsFile string `json:"tests_file,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
}

type PackagesValidateuploadNpm

type PackagesValidateuploadNpm struct {
	// The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag.
	NpmDistTag string `json:"npm_dist_tag,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadNuget

type PackagesValidateuploadNuget struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// Attaches a symbols file to the package.
	SymbolsFile string `json:"symbols_file,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadP2

type PackagesValidateuploadP2 struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadPython

type PackagesValidateuploadPython struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadRaw

type PackagesValidateuploadRaw struct {
	// A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here.
	ContentType string `json:"content_type,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
}

type PackagesValidateuploadRpm

type PackagesValidateuploadRpm struct {
	// The distribution to store the package for.
	Distribution string `json:"distribution"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadRuby

type PackagesValidateuploadRuby struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadTerraform

type PackagesValidateuploadTerraform struct {
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
}

type PackagesValidateuploadVagrant

type PackagesValidateuploadVagrant struct {
	// The name of this package.
	Name string `json:"name"`
	// The primary file for the package.
	PackageFile string `json:"package_file"`
	// The virtual machine provider for the box.
	Provider string `json:"provider"`
	// If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
	Republish bool `json:"republish,omitempty"`
	// A comma-separated values list of tags to add to the package.
	Tags string `json:"tags,omitempty"`
	// The raw version for this package.
	Version string `json:"version"`
}

type PackagesownerrepoArchitectures

type PackagesownerrepoArchitectures struct {
	//
	Description string `json:"description,omitempty"`
	//
	Name string `json:"name,omitempty"`
}

type PackagesownerrepoFiles

type PackagesownerrepoFiles struct {
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsPrimary bool `json:"is_primary,omitempty"`
	//
	IsSynchronised bool `json:"is_synchronised,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the file.
	Size int32 `json:"size,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// Freeform descriptor that describes what the file is.
	Tag string `json:"tag,omitempty"`
}

type Quota

type Quota struct {
	//
	Usage interface{} `json:"usage"`
}

type QuotaApiService

type QuotaApiService service

func (*QuotaApiService) QuotaHistoryRead

func (a *QuotaApiService) QuotaHistoryRead(ctx context.Context, owner string) (QuotaHistory, *http.Response, error)

QuotaApiService Quota history for a given namespace. Quota history for a given namespace.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner

@return QuotaHistory

func (*QuotaApiService) QuotaOssHistoryRead

func (a *QuotaApiService) QuotaOssHistoryRead(ctx context.Context, owner string) (QuotaHistory, *http.Response, error)

QuotaApiService Open-source Quota history for a given namespace. Open-source Quota history for a given namespace.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner

@return QuotaHistory

func (*QuotaApiService) QuotaOssRead

func (a *QuotaApiService) QuotaOssRead(ctx context.Context, owner string) (Quota, *http.Response, error)

QuotaApiService Open-source Quota usage for a given namespace. Open-source Quota usage for a given namespace.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner

@return Quota

func (*QuotaApiService) QuotaRead

func (a *QuotaApiService) QuotaRead(ctx context.Context, owner string) (Quota, *http.Response, error)

QuotaApiService Quota usage for a given namespace. Quota usage for a given namespace.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner

@return Quota

type QuotaHistory

type QuotaHistory struct {
	//
	History []QuotaHistoryHistory `json:"history"`
}

type QuotaHistoryHistory

type QuotaHistoryHistory struct {
	//
	Days int32 `json:"days,omitempty"`
	//
	Display interface{} `json:"display,omitempty"`
	//
	End string `json:"end,omitempty"`
	//
	Plan string `json:"plan,omitempty"`
	//
	Raw interface{} `json:"raw,omitempty"`
	//
	Start string `json:"start,omitempty"`
}

type RatesApiService

type RatesApiService service

func (*RatesApiService) RatesLimitsList

func (a *RatesApiService) RatesLimitsList(ctx context.Context) (ResourcesRateCheck, *http.Response, error)

RatesApiService Endpoint to check rate limits for current user. Endpoint to check rate limits for current user.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ResourcesRateCheck

type RawPackageUpload

type RawPackageUpload struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name,omitempty"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	//
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version,omitempty"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type ReposApiReposAllListOpts

type ReposApiReposAllListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type ReposApiReposCreateOpts

type ReposApiReposCreateOpts struct {
	Data optional.Interface
}

type ReposApiReposListOpts

type ReposApiReposListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type ReposApiReposPartialUpdateOpts

type ReposApiReposPartialUpdateOpts struct {
	Data optional.Interface
}

type ReposApiService

type ReposApiService service

func (*ReposApiService) ReposAllList

func (a *ReposApiService) ReposAllList(ctx context.Context, localVarOptionals *ReposApiReposAllListOpts) ([]Repository, *http.Response, error)

func (*ReposApiService) ReposCreate

func (a *ReposApiService) ReposCreate(ctx context.Context, owner string, localVarOptionals *ReposApiReposCreateOpts) (RepositoryCreate, *http.Response, error)

func (*ReposApiService) ReposDelete

func (a *ReposApiService) ReposDelete(ctx context.Context, owner string, identifier string) (*http.Response, error)

ReposApiService Delete a repository in a given namespace. Delete a repository in a given namespace.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param identifier

func (*ReposApiService) ReposList

func (a *ReposApiService) ReposList(ctx context.Context, owner string, localVarOptionals *ReposApiReposListOpts) ([]Repository, *http.Response, error)

func (*ReposApiService) ReposPartialUpdate

func (a *ReposApiService) ReposPartialUpdate(ctx context.Context, owner string, identifier string, localVarOptionals *ReposApiReposPartialUpdateOpts) (Repository, *http.Response, error)

func (*ReposApiService) ReposRead

func (a *ReposApiService) ReposRead(ctx context.Context, owner string, identifier string) (Repository, *http.Response, error)

ReposApiService Get a specific repository. Get a specific repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param identifier

@return Repository

type ReposCreate

type ReposCreate struct {
	// A description of the repository's purpose/contents.
	Description string `json:"description,omitempty"`
	// If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
	IndexFiles bool `json:"index_files,omitempty"`
	// A descriptive name for the repository.
	Name string `json:"name"`
	//          The repository type changes how it is accessed and billed.         Private repositories can only be used on paid plans, but are visible         only to you or authorised delegates. Public repositories are free to         use on all plans and visible to all Cloudsmith users.
	RepositoryTypeStr string `json:"repository_type_str,omitempty"`
	// The slug identifies the repository in URIs.
	Slug string `json:"slug,omitempty"`
	// The Cloudsmith region in which package files are stored.
	StorageRegion string `json:"storage_region,omitempty"`
}

type ReposGpgKeys

type ReposGpgKeys struct {
	// If selected this is the active key for this repository.
	Active bool `json:"active,omitempty"`
	//
	Comment string `json:"comment,omitempty"`
	//
	CreatedAt string `json:"created_at,omitempty"`
	// If selected this is the default key for this repository.
	Default_ bool `json:"default,omitempty"`
	// The long identifier used by GPG for this key.
	Fingerprint string `json:"fingerprint,omitempty"`
	//
	FingerprintShort string `json:"fingerprint_short,omitempty"`
	// The public key given to repository users.
	PublicKey string `json:"public_key,omitempty"`
}

type ReposPartialUpdate

type ReposPartialUpdate struct {
	// A description of the repository's purpose/contents.
	Description string `json:"description,omitempty"`
	// If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
	IndexFiles bool `json:"index_files,omitempty"`
	// A descriptive name for the repository.
	Name string `json:"name,omitempty"`
	// The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users.
	RepositoryTypeStr string `json:"repository_type_str,omitempty"`
	// The slug identifies the repository in URIs.
	Slug string `json:"slug,omitempty"`
}

type Repository

type Repository struct {
	// Base URL from which packages and other artifacts are downloaded.
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	CreatedAt string `json:"created_at,omitempty"`
	//
	DeletedAt string `json:"deleted_at,omitempty"`
	// A description of the repository's purpose/contents.
	Description string `json:"description,omitempty"`
	//
	GpgKeys []ReposGpgKeys `json:"gpg_keys,omitempty"`
	// If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
	IndexFiles bool `json:"index_files,omitempty"`
	//
	IsOpenSource bool `json:"is_open_source,omitempty"`
	//
	IsPrivate bool `json:"is_private,omitempty"`
	//
	IsPublic bool `json:"is_public,omitempty"`
	// A descriptive name for the repository.
	Name string `json:"name"`
	// Namespace to which this repository belongs.
	Namespace string `json:"namespace,omitempty"`
	// API endpoint where data about this namespace can be retrieved.
	NamespaceUrl string `json:"namespace_url,omitempty"`
	// The number of downloads for packages in the repository.
	NumDownloads int32 `json:"num_downloads,omitempty"`
	// The number of packages in the repository.
	PackageCount int32 `json:"package_count,omitempty"`
	// The number of groups in the repository.
	PackageGroupCount int32 `json:"package_group_count,omitempty"`
	// The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time.
	RepositoryType int32 `json:"repository_type,omitempty"`
	// The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users.
	RepositoryTypeStr string `json:"repository_type_str,omitempty"`
	// Website URL for this repository.
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	// API endpoint where data about this repository can be retrieved.
	SelfUrl string `json:"self_url,omitempty"`
	// The calculated size of the repository.
	Size int32 `json:"size,omitempty"`
	// The calculated size of the repository (human readable).
	SizeStr string `json:"size_str,omitempty"`
	// The slug identifies the repository in URIs.
	Slug string `json:"slug,omitempty"`
	// The slug_perm immutably identifies the repository. It will never change once a repository has been created.
	SlugPerm string `json:"slug_perm,omitempty"`
	// The Cloudsmith region in which package files are stored.
	StorageRegion string `json:"storage_region,omitempty"`
}

type RepositoryCreate

type RepositoryCreate struct {
	// Base URL from which packages and other artifacts are downloaded.
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	CreatedAt string `json:"created_at,omitempty"`
	//
	DeletedAt string `json:"deleted_at,omitempty"`
	// A description of the repository's purpose/contents.
	Description string `json:"description,omitempty"`
	//
	GpgKeys []ReposGpgKeys `json:"gpg_keys,omitempty"`
	// If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
	IndexFiles bool `json:"index_files,omitempty"`
	//
	IsOpenSource bool `json:"is_open_source,omitempty"`
	//
	IsPrivate bool `json:"is_private,omitempty"`
	//
	IsPublic bool `json:"is_public,omitempty"`
	// A descriptive name for the repository.
	Name string `json:"name"`
	// Namespace to which this repository belongs.
	Namespace string `json:"namespace,omitempty"`
	// API endpoint where data about this namespace can be retrieved.
	NamespaceUrl string `json:"namespace_url,omitempty"`
	// The number of downloads for packages in the repository.
	NumDownloads int32 `json:"num_downloads,omitempty"`
	// The number of packages in the repository.
	PackageCount int32 `json:"package_count,omitempty"`
	// The number of groups in the repository.
	PackageGroupCount int32 `json:"package_group_count,omitempty"`
	// The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time.
	RepositoryType int32 `json:"repository_type,omitempty"`
	//          The repository type changes how it is accessed and billed.         Private repositories can only be used on paid plans, but are visible         only to you or authorised delegates. Public repositories are free to         use on all plans and visible to all Cloudsmith users.
	RepositoryTypeStr string `json:"repository_type_str,omitempty"`
	// Website URL for this repository.
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	// API endpoint where data about this repository can be retrieved.
	SelfUrl string `json:"self_url,omitempty"`
	// The calculated size of the repository.
	Size int32 `json:"size,omitempty"`
	// The calculated size of the repository (human readable).
	SizeStr string `json:"size_str,omitempty"`
	// The slug identifies the repository in URIs.
	Slug string `json:"slug,omitempty"`
	// The slug_perm immutably identifies the repository. It will never change once a repository has been created.
	SlugPerm string `json:"slug_perm,omitempty"`
	// The Cloudsmith region in which package files are stored.
	StorageRegion string `json:"storage_region,omitempty"`
}

type RepositoryToken

type RepositoryToken struct {
	//
	Clients int32 `json:"clients,omitempty"`
	// The datetime the token was updated at.
	CreatedAt string `json:"created_at,omitempty"`
	//
	CreatedBy string `json:"created_by,omitempty"`
	//
	CreatedByUrl string `json:"created_by_url,omitempty"`
	// If selected this is the default token for this repository.
	Default_ bool `json:"default,omitempty"`
	//
	DisableUrl string `json:"disable_url,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	//
	EnableUrl string `json:"enable_url,omitempty"`
	//
	EulaAccepted interface{} `json:"eula_accepted,omitempty"`
	// The datetime the EULA was accepted at.
	EulaAcceptedAt string `json:"eula_accepted_at,omitempty"`
	//
	EulaAcceptedFrom string `json:"eula_accepted_from,omitempty"`
	// If checked, a EULA acceptance is required for this token.
	EulaRequired bool `json:"eula_required,omitempty"`
	//
	HasLimits bool `json:"has_limits,omitempty"`
	//
	Identifier int32 `json:"identifier,omitempty"`
	// If enabled, the token will allow downloads based on configured restrictions (if any).
	IsActive bool `json:"is_active,omitempty"`
	//
	IsLimited bool `json:"is_limited,omitempty"`
	// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
	//
	LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
	// The starting date/time the token is allowed to be used from.
	LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
	// The ending date/time the token is allowed to be used until.
	LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
	// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumClients int32 `json:"limit_num_clients,omitempty"`
	// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
	// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
	LimitPackageQuery string `json:"limit_package_query,omitempty"`
	// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
	LimitPathQuery string `json:"limit_path_query,omitempty"`
	//
	Metadata interface{} `json:"metadata,omitempty"`
	//
	Name string `json:"name"`
	//
	RefreshUrl string `json:"refresh_url,omitempty"`
	//
	ResetUrl string `json:"reset_url,omitempty"`
	// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
	ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
	//
	ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	//
	Token string `json:"token,omitempty"`
	// The datetime the token was updated at.
	UpdatedAt string `json:"updated_at,omitempty"`
	//
	UpdatedBy string `json:"updated_by,omitempty"`
	//
	UpdatedByUrl string `json:"updated_by_url,omitempty"`
	//
	Usage string `json:"usage,omitempty"`
	//
	User string `json:"user,omitempty"`
	//
	UserUrl string `json:"user_url,omitempty"`
}

type RepositoryTokenRefresh

type RepositoryTokenRefresh struct {
	//
	Clients int32 `json:"clients,omitempty"`
	// The datetime the token was updated at.
	CreatedAt string `json:"created_at,omitempty"`
	//
	CreatedBy string `json:"created_by,omitempty"`
	//
	CreatedByUrl string `json:"created_by_url,omitempty"`
	// If selected this is the default token for this repository.
	Default_ bool `json:"default,omitempty"`
	//
	DisableUrl string `json:"disable_url,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	//
	EnableUrl string `json:"enable_url,omitempty"`
	//
	EulaAccepted interface{} `json:"eula_accepted,omitempty"`
	// The datetime the EULA was accepted at.
	EulaAcceptedAt string `json:"eula_accepted_at,omitempty"`
	//
	EulaAcceptedFrom string `json:"eula_accepted_from,omitempty"`
	// If checked, a EULA acceptance is required for this token.
	EulaRequired bool `json:"eula_required,omitempty"`
	//
	HasLimits bool `json:"has_limits,omitempty"`
	//
	Identifier int32 `json:"identifier,omitempty"`
	// If enabled, the token will allow downloads based on configured restrictions (if any).
	IsActive bool `json:"is_active,omitempty"`
	//
	IsLimited bool `json:"is_limited,omitempty"`
	// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
	//
	LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
	// The starting date/time the token is allowed to be used from.
	LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
	// The ending date/time the token is allowed to be used until.
	LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
	// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumClients int32 `json:"limit_num_clients,omitempty"`
	// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
	// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
	LimitPackageQuery string `json:"limit_package_query,omitempty"`
	// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
	LimitPathQuery string `json:"limit_path_query,omitempty"`
	//
	Metadata interface{} `json:"metadata,omitempty"`
	//
	Name string `json:"name,omitempty"`
	//
	RefreshUrl string `json:"refresh_url,omitempty"`
	//
	ResetUrl string `json:"reset_url,omitempty"`
	// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
	ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
	//
	ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	//
	Token string `json:"token,omitempty"`
	// The datetime the token was updated at.
	UpdatedAt string `json:"updated_at,omitempty"`
	//
	UpdatedBy string `json:"updated_by,omitempty"`
	//
	UpdatedByUrl string `json:"updated_by_url,omitempty"`
	//
	Usage string `json:"usage,omitempty"`
	//
	User string `json:"user,omitempty"`
	//
	UserUrl string `json:"user_url,omitempty"`
}

type RepositoryTokenSync

type RepositoryTokenSync struct {
	// The entitlements that have been synchronised.
	Tokens []RepositoryTokenSyncTokens `json:"tokens,omitempty"`
}

type RepositoryTokenSyncTokens

type RepositoryTokenSyncTokens struct {
	//
	Clients int32 `json:"clients,omitempty"`
	// The datetime the token was updated at.
	CreatedAt string `json:"created_at,omitempty"`
	//
	CreatedBy string `json:"created_by,omitempty"`
	//
	CreatedByUrl string `json:"created_by_url,omitempty"`
	// If selected this is the default token for this repository.
	Default_ bool `json:"default,omitempty"`
	//
	DisableUrl string `json:"disable_url,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	//
	EnableUrl string `json:"enable_url,omitempty"`
	//
	EulaAccepted interface{} `json:"eula_accepted,omitempty"`
	// The datetime the EULA was accepted at.
	EulaAcceptedAt string `json:"eula_accepted_at,omitempty"`
	//
	EulaAcceptedFrom string `json:"eula_accepted_from,omitempty"`
	// If checked, a EULA acceptance is required for this token.
	EulaRequired bool `json:"eula_required,omitempty"`
	//
	HasLimits bool `json:"has_limits,omitempty"`
	//
	Identifier int32 `json:"identifier,omitempty"`
	// If enabled, the token will allow downloads based on configured restrictions (if any).
	IsActive bool `json:"is_active,omitempty"`
	//
	IsLimited bool `json:"is_limited,omitempty"`
	// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
	//
	LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
	// The starting date/time the token is allowed to be used from.
	LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
	// The ending date/time the token is allowed to be used until.
	LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
	// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumClients int32 `json:"limit_num_clients,omitempty"`
	// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
	LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
	// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
	LimitPackageQuery string `json:"limit_package_query,omitempty"`
	// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
	LimitPathQuery string `json:"limit_path_query,omitempty"`
	//
	Metadata string `json:"metadata,omitempty"`
	//
	Name string `json:"name,omitempty"`
	//
	RefreshUrl string `json:"refresh_url,omitempty"`
	//
	ResetUrl string `json:"reset_url,omitempty"`
	// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
	ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
	//
	ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	//
	Token string `json:"token,omitempty"`
	// The datetime the token was updated at.
	UpdatedAt string `json:"updated_at,omitempty"`
	//
	UpdatedBy string `json:"updated_by,omitempty"`
	//
	UpdatedByUrl string `json:"updated_by_url,omitempty"`
	//
	Usage string `json:"usage,omitempty"`
	//
	User string `json:"user,omitempty"`
	//
	UserUrl string `json:"user_url,omitempty"`
}

type RepositoryWebhook

type RepositoryWebhook struct {
	//
	CreatedAt string `json:"created_at,omitempty"`
	//
	CreatedBy string `json:"created_by,omitempty"`
	//
	CreatedByUrl string `json:"created_by_url,omitempty"`
	//
	DisableReason int32 `json:"disable_reason,omitempty"`
	//
	DisableReasonStr string `json:"disable_reason_str,omitempty"`
	//
	Events []string `json:"events"`
	//
	Identifier int32 `json:"identifier,omitempty"`
	// If enabled, the webhook will trigger on events and send payloads to the configured target URL.
	IsActive bool `json:"is_active,omitempty"`
	//
	IsLastResponseBad bool `json:"is_last_response_bad,omitempty"`
	//
	LastResponseStatus int32 `json:"last_response_status,omitempty"`
	//
	LastResponseStatusStr string `json:"last_response_status_str,omitempty"`
	//
	NumSent int32 `json:"num_sent,omitempty"`
	// The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire.
	PackageQuery string `json:"package_query,omitempty"`
	// The format of the payloads for webhook requests.
	RequestBodyFormat int32 `json:"request_body_format,omitempty"`
	//
	RequestBodyFormatStr string `json:"request_body_format_str,omitempty"`
	// The format of the payloads for webhook requests.
	RequestBodyTemplateFormat int32 `json:"request_body_template_format,omitempty"`
	//
	RequestBodyTemplateFormatStr string `json:"request_body_template_format_str,omitempty"`
	// The value that will be sent for the 'Content Type' header.
	RequestContentType string `json:"request_content_type,omitempty"`
	// The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side.
	SecretHeader string `json:"secret_header,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The destination URL that webhook payloads will be POST'ed to.
	TargetUrl string `json:"target_url"`
	//
	Templates []WebhooksownerrepoTemplates `json:"templates"`
	//
	UpdatedAt string `json:"updated_at,omitempty"`
	//
	UpdatedBy string `json:"updated_by,omitempty"`
	//
	UpdatedByUrl string `json:"updated_by_url,omitempty"`
	// If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks.
	VerifySsl bool `json:"verify_ssl,omitempty"`
}

type ResourcesRateCheck

type ResourcesRateCheck struct {
	// Rate limit values per resource
	Resources interface{} `json:"resources,omitempty"`
}

type Status

type Status struct {
	// An extended message for the response.
	Detail string `json:"detail"`
}

type StatusApiService

type StatusApiService service

func (*StatusApiService) StatusCheckBasic

func (a *StatusApiService) StatusCheckBasic(ctx context.Context) (StatusBasic, *http.Response, error)

StatusApiService Endpoint to check basic API connectivity. Endpoint to check basic API connectivity.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return StatusBasic

type StatusBasic

type StatusBasic struct {
	// The message describing the state of the API.
	Detail string `json:"detail,omitempty"`
	// The current version for the Cloudsmith service.
	Version string `json:"version,omitempty"`
}

type StorageRegion

type StorageRegion struct {
	// Name of the storage region
	Label string `json:"label"`
	// Slug for the storage region
	Slug string `json:"slug"`
}

type StorageRegionsApiService

type StorageRegionsApiService service

func (*StorageRegionsApiService) StorageRegionsList

func (a *StorageRegionsApiService) StorageRegionsList(ctx context.Context) ([]StorageRegion, *http.Response, error)

StorageRegionsApiService Get a list of all available storage regions. Get a list of all available storage regions.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []StorageRegion

func (*StorageRegionsApiService) StorageRegionsRead

func (a *StorageRegionsApiService) StorageRegionsRead(ctx context.Context, slug string) (StorageRegion, *http.Response, error)

StorageRegionsApiService Get a specific storage region. Get a specific storage region.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param slug

@return StorageRegion

type UserApiService

type UserApiService service

func (*UserApiService) UserSelf

func (a *UserApiService) UserSelf(ctx context.Context) (UserBrief, *http.Response, error)

UserApiService Provide a brief for the current user (if any). Provide a brief for the current user (if any).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return UserBrief

func (*UserApiService) UserTokenCreate

func (a *UserApiService) UserTokenCreate(ctx context.Context, localVarOptionals *UserApiUserTokenCreateOpts) (UserAuthToken, *http.Response, error)

type UserApiUserTokenCreateOpts

type UserApiUserTokenCreateOpts struct {
	Data optional.Interface
}

type UserAuthToken

type UserAuthToken struct {
	// API token for the authenticated user
	Token string `json:"token,omitempty"`
}

type UserBrief

type UserBrief struct {
	// If true then you're logged in as a user.
	Authenticated bool `json:"authenticated,omitempty"`
	// Your email address that we use to contact you. This is only visible to you.
	Email string `json:"email,omitempty"`
	// The full name of the user (if any).
	Name string `json:"name,omitempty"`
	// The URL for the full profile of the user.
	ProfileUrl string `json:"profile_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
}

type UserProfile

type UserProfile struct {
	//
	Company string `json:"company,omitempty"`
	//
	FirstName string `json:"first_name"`
	//
	JobTitle string `json:"job_title,omitempty"`
	//
	JoinedAt string `json:"joined_at,omitempty"`
	//
	LastName string `json:"last_name"`
	//
	Name string `json:"name,omitempty"`
	//
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// Your tagline is a sentence about you. Make it funny. Make it professional. Either way, it's public and it represents who you are.
	Tagline string `json:"tagline,omitempty"`
	//
	Url string `json:"url,omitempty"`
}

type UserTokenCreate

type UserTokenCreate struct {
	// Email address to authenticate with
	Email string `json:"email,omitempty"`
	// Password to authenticate with
	Password string `json:"password,omitempty"`
}

type UsersApiService

type UsersApiService service

func (*UsersApiService) UsersProfileRead

func (a *UsersApiService) UsersProfileRead(ctx context.Context, slug string) (UserProfile, *http.Response, error)

UsersApiService Provide a brief for the specified user (if any). Provide a brief for the specified user (if any).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param slug

@return UserProfile

type VagrantPackageUpload

type VagrantPackageUpload struct {
	//
	Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"`
	//
	CdnUrl string `json:"cdn_url,omitempty"`
	//
	ChecksumMd5 string `json:"checksum_md5,omitempty"`
	//
	ChecksumSha1 string `json:"checksum_sha1,omitempty"`
	//
	ChecksumSha256 string `json:"checksum_sha256,omitempty"`
	//
	ChecksumSha512 string `json:"checksum_sha512,omitempty"`
	// A checksum of all of the package's dependencies.
	DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"`
	//
	DependenciesUrl string `json:"dependencies_url,omitempty"`
	// A textual description of this package.
	Description string `json:"description,omitempty"`
	//
	Distro interface{} `json:"distro,omitempty"`
	//
	DistroVersion interface{} `json:"distro_version,omitempty"`
	//
	Downloads int32 `json:"downloads,omitempty"`
	// The epoch of the package version (if any).
	Epoch int32 `json:"epoch,omitempty"`
	//
	Extension string `json:"extension,omitempty"`
	//
	Filename string `json:"filename,omitempty"`
	//
	Files []PackagesownerrepoFiles `json:"files,omitempty"`
	//
	Format string `json:"format,omitempty"`
	//
	FormatUrl string `json:"format_url,omitempty"`
	// Unique and permanent identifier for the package.
	IdentifierPerm string `json:"identifier_perm,omitempty"`
	//
	Indexed bool `json:"indexed,omitempty"`
	//
	IsDownloadable bool `json:"is_downloadable,omitempty"`
	//
	IsQuarantined bool `json:"is_quarantined,omitempty"`
	//
	IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"`
	//
	IsSyncCompleted bool `json:"is_sync_completed,omitempty"`
	//
	IsSyncFailed bool `json:"is_sync_failed,omitempty"`
	//
	IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"`
	//
	IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"`
	// The license of this package.
	License string `json:"license,omitempty"`
	// The name of this package.
	Name string `json:"name"`
	//
	Namespace string `json:"namespace,omitempty"`
	//
	NamespaceUrl string `json:"namespace_url,omitempty"`
	//
	NumFiles int32 `json:"num_files,omitempty"`
	// The type of package contents.
	PackageType int32 `json:"package_type,omitempty"`
	// The virtual machine provider for the box.
	Provider string `json:"provider"`
	// The release of the package version (if any).
	Release string `json:"release,omitempty"`
	//
	Repository string `json:"repository,omitempty"`
	//
	RepositoryUrl string `json:"repository_url,omitempty"`
	// The datetime the security scanning was completed.
	SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"`
	// The datetime the security scanning was started.
	SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"`
	//
	SecurityScanStatus string `json:"security_scan_status,omitempty"`
	// The datetime the security scanning status was updated.
	SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"`
	//
	SelfHtmlUrl string `json:"self_html_url,omitempty"`
	//
	SelfUrl string `json:"self_url,omitempty"`
	//
	SignatureUrl string `json:"signature_url,omitempty"`
	// The calculated size of the package.
	Size int32 `json:"size,omitempty"`
	// The public unique identifier for the package.
	Slug string `json:"slug,omitempty"`
	//
	SlugPerm string `json:"slug_perm,omitempty"`
	// The synchronisation (in progress) stage of the package.
	Stage int32 `json:"stage,omitempty"`
	//
	StageStr string `json:"stage_str,omitempty"`
	// The datetime the package stage was updated at.
	StageUpdatedAt string `json:"stage_updated_at,omitempty"`
	// The synchronisation status of the package.
	Status int32 `json:"status,omitempty"`
	// A textual description for the synchronous status reason (if any
	StatusReason string `json:"status_reason,omitempty"`
	//
	StatusStr string `json:"status_str,omitempty"`
	// The datetime the package status was updated at.
	StatusUpdatedAt string `json:"status_updated_at,omitempty"`
	//
	StatusUrl string `json:"status_url,omitempty"`
	//
	Subtype string `json:"subtype,omitempty"`
	// A one-liner synopsis of this package.
	Summary string `json:"summary,omitempty"`
	// The datetime the package sync was finished at.
	SyncFinishedAt string `json:"sync_finished_at,omitempty"`
	// Synchronisation progress (from 0-100)
	SyncProgress int32 `json:"sync_progress,omitempty"`
	// All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
	TagsImmutable interface{} `json:"tags_immutable,omitempty"`
	//
	TypeDisplay string `json:"type_display,omitempty"`
	// The date this package was uploaded.
	UploadedAt string `json:"uploaded_at,omitempty"`
	//
	Uploader string `json:"uploader,omitempty"`
	//
	UploaderUrl string `json:"uploader_url,omitempty"`
	// The raw version for this package.
	Version string `json:"version"`
	//
	VersionOrig string `json:"version_orig,omitempty"`
	//
	VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"`
}

type VulnerabilitiesApiService

type VulnerabilitiesApiService service

func (*VulnerabilitiesApiService) VulnerabilitiesList

func (*VulnerabilitiesApiService) VulnerabilitiesList0

func (*VulnerabilitiesApiService) VulnerabilitiesList1

func (a *VulnerabilitiesApiService) VulnerabilitiesList1(ctx context.Context, owner string, repo string, package_ string, localVarOptionals *VulnerabilitiesApiVulnerabilitiesList1Opts) ([]VulnerabilityScanResultsList, *http.Response, error)

func (*VulnerabilitiesApiService) VulnerabilitiesRead

func (a *VulnerabilitiesApiService) VulnerabilitiesRead(ctx context.Context, owner string, repo string, package_ string, scanId string) (VulnerabilityScanResults, *http.Response, error)

VulnerabilitiesApiService Returns a Scan Result. Returns a Scan Result.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param package_
  • @param scanId

@return VulnerabilityScanResults

type VulnerabilitiesApiVulnerabilitiesList0Opts

type VulnerabilitiesApiVulnerabilitiesList0Opts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type VulnerabilitiesApiVulnerabilitiesList1Opts

type VulnerabilitiesApiVulnerabilitiesList1Opts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type VulnerabilitiesApiVulnerabilitiesListOpts

type VulnerabilitiesApiVulnerabilitiesListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type VulnerabilityScanResults

type VulnerabilityScanResults struct {
	// The time this scan result was stored.
	CreatedAt string `json:"created_at,omitempty"`
	// Do the results contain any known vulnerabilities?
	HasVulnerabilities bool `json:"has_vulnerabilities,omitempty"`
	//
	Identifier string `json:"identifier"`
	//
	MaxSeverity string `json:"max_severity,omitempty"`
	//
	NumVulnerabilities int32 `json:"num_vulnerabilities,omitempty"`
	//
	Package_ interface{} `json:"package"`
	//
	Scan interface{} `json:"scan"`
	//
	ScanId int32 `json:"scan_id"`
}

type VulnerabilityScanResultsList

type VulnerabilityScanResultsList struct {
	// The time this scan result was stored.
	CreatedAt string `json:"created_at,omitempty"`
	// Do the results contain any known vulnerabilities?
	HasVulnerabilities bool `json:"has_vulnerabilities,omitempty"`
	//
	Identifier string `json:"identifier"`
	//
	MaxSeverity string `json:"max_severity,omitempty"`
	//
	NumVulnerabilities int32 `json:"num_vulnerabilities,omitempty"`
	//
	Package_ interface{} `json:"package"`
	//
	ScanId int32 `json:"scan_id"`
}

type WebhooksApiService

type WebhooksApiService service

func (*WebhooksApiService) WebhooksCreate

func (a *WebhooksApiService) WebhooksCreate(ctx context.Context, owner string, repo string, localVarOptionals *WebhooksApiWebhooksCreateOpts) (RepositoryWebhook, *http.Response, error)

func (*WebhooksApiService) WebhooksDelete

func (a *WebhooksApiService) WebhooksDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)

WebhooksApiService Delete a specific webhook in a repository. Delete a specific webhook in a repository.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

func (*WebhooksApiService) WebhooksList

func (a *WebhooksApiService) WebhooksList(ctx context.Context, owner string, repo string, localVarOptionals *WebhooksApiWebhooksListOpts) ([]RepositoryWebhook, *http.Response, error)

func (*WebhooksApiService) WebhooksPartialUpdate

func (a *WebhooksApiService) WebhooksPartialUpdate(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *WebhooksApiWebhooksPartialUpdateOpts) (RepositoryWebhook, *http.Response, error)

func (*WebhooksApiService) WebhooksRead

func (a *WebhooksApiService) WebhooksRead(ctx context.Context, owner string, repo string, identifier string) (RepositoryWebhook, *http.Response, error)

WebhooksApiService Views for working with repository webhooks. Views for working with repository webhooks.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner
  • @param repo
  • @param identifier

@return RepositoryWebhook

type WebhooksApiWebhooksCreateOpts

type WebhooksApiWebhooksCreateOpts struct {
	Data optional.Interface
}

type WebhooksApiWebhooksListOpts

type WebhooksApiWebhooksListOpts struct {
	Page     optional.Int32
	PageSize optional.Int32
}

type WebhooksApiWebhooksPartialUpdateOpts

type WebhooksApiWebhooksPartialUpdateOpts struct {
	Data optional.Interface
}

type WebhooksCreate

type WebhooksCreate struct {
	// None
	Events []string `json:"events"`
	// If enabled, the webhook will trigger on events and send payloads to the configured target URL.
	IsActive bool `json:"is_active,omitempty"`
	// The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire.
	PackageQuery string `json:"package_query,omitempty"`
	// The format of the payloads for webhook requests.
	RequestBodyFormat int32 `json:"request_body_format,omitempty"`
	// The format of the payloads for webhook requests.
	RequestBodyTemplateFormat int32 `json:"request_body_template_format,omitempty"`
	// The value that will be sent for the 'Content Type' header.
	RequestContentType string `json:"request_content_type,omitempty"`
	// The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side.
	SecretHeader string `json:"secret_header,omitempty"`
	// The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side.
	SecretValue string `json:"secret_value,omitempty"`
	// The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it).
	SignatureKey string `json:"signature_key,omitempty"`
	// The destination URL that webhook payloads will be POST'ed to.
	TargetUrl string `json:"target_url"`
	// None
	Templates []WebhooksownerrepoTemplates `json:"templates"`
	// If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks.
	VerifySsl bool `json:"verify_ssl,omitempty"`
}

type WebhooksPartialUpdate

type WebhooksPartialUpdate struct {
	// None
	Events []string `json:"events,omitempty"`
	// If enabled, the webhook will trigger on events and send payloads to the configured target URL.
	IsActive bool `json:"is_active,omitempty"`
	// The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire.
	PackageQuery string `json:"package_query,omitempty"`
	// The format of the payloads for webhook requests.
	RequestBodyFormat int32 `json:"request_body_format,omitempty"`
	// The format of the payloads for webhook requests.
	RequestBodyTemplateFormat int32 `json:"request_body_template_format,omitempty"`
	// The value that will be sent for the 'Content Type' header.
	RequestContentType string `json:"request_content_type,omitempty"`
	// The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side.
	SecretHeader string `json:"secret_header,omitempty"`
	// The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side.
	SecretValue string `json:"secret_value,omitempty"`
	// The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it).
	SignatureKey string `json:"signature_key,omitempty"`
	// The destination URL that webhook payloads will be POST'ed to.
	TargetUrl string `json:"target_url,omitempty"`
	// None
	Templates []WebhooksownerrepoTemplates `json:"templates,omitempty"`
	// If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks.
	VerifySsl bool `json:"verify_ssl,omitempty"`
}

type WebhooksownerrepoTemplates

type WebhooksownerrepoTemplates struct {
	//
	Event string `json:"event,omitempty"`
	//
	Template string `json:"template,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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