Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AlpinePackageUpload
- type BadgesApiBadgesVersionListOpts
- type BadgesApiService
- type BasicAuth
- type ConanPackageUpload
- type Configuration
- type Distribution
- type DistrosApiService
- type DistrosVersions
- type EntitlementUsageMetrics
- type EntitlementsApiEntitlementsCreateOpts
- type EntitlementsApiEntitlementsListOpts
- type EntitlementsApiEntitlementsPartialUpdateOpts
- type EntitlementsApiEntitlementsReadOpts
- type EntitlementsApiEntitlementsRefreshOpts
- type EntitlementsApiEntitlementsResetOpts
- type EntitlementsApiEntitlementsSyncOpts
- type EntitlementsApiService
- func (a *EntitlementsApiService) EntitlementsCreate(ctx context.Context, owner string, repo string, ...) (RepositoryToken, *http.Response, error)
- func (a *EntitlementsApiService) EntitlementsDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)
- func (a *EntitlementsApiService) EntitlementsDisable(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)
- func (a *EntitlementsApiService) EntitlementsEnable(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)
- func (a *EntitlementsApiService) EntitlementsList(ctx context.Context, owner string, repo string, ...) ([]RepositoryToken, *http.Response, error)
- func (a *EntitlementsApiService) EntitlementsPartialUpdate(ctx context.Context, owner string, repo string, identifier string, ...) (RepositoryToken, *http.Response, error)
- func (a *EntitlementsApiService) EntitlementsRead(ctx context.Context, owner string, repo string, identifier string, ...) (RepositoryToken, *http.Response, error)
- func (a *EntitlementsApiService) EntitlementsRefresh(ctx context.Context, owner string, repo string, identifier string, ...) (RepositoryTokenRefresh, *http.Response, error)
- func (a *EntitlementsApiService) EntitlementsReset(ctx context.Context, owner string, repo string, identifier string, ...) (*http.Response, error)
- func (a *EntitlementsApiService) EntitlementsSync(ctx context.Context, owner string, repo string, ...) (RepositoryTokenSync, *http.Response, error)
- type EntitlementsCreate
- type EntitlementsPartialUpdate
- type EntitlementsRefresh
- type EntitlementsSync
- type FilesAbort
- type FilesApiFilesAbortOpts
- type FilesApiFilesCompleteOpts
- type FilesApiFilesCreateOpts
- type FilesApiFilesValidateOpts
- type FilesApiService
- func (a *FilesApiService) FilesAbort(ctx context.Context, owner string, repo string, identifier string, ...) (*http.Response, error)
- func (a *FilesApiService) FilesComplete(ctx context.Context, owner string, repo string, identifier string, ...) (PackageFileUpload, *http.Response, error)
- func (a *FilesApiService) FilesCreate(ctx context.Context, owner string, repo string, ...) (PackageFileUpload, *http.Response, error)
- func (a *FilesApiService) FilesInfo(ctx context.Context, owner string, repo string, identifier string) (PackageFilePartsUpload, *http.Response, error)
- func (a *FilesApiService) FilesValidate(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- type FilesComplete
- type FilesCreate
- type FilesValidate
- type Format
- type FormatsApiService
- type FormatsDistributions
- type GenericSwaggerError
- type MavenPackageUpload
- type MetricsApiMetricsEntitlementsList0Opts
- type MetricsApiMetricsEntitlementsListOpts
- type MetricsApiMetricsPackagesListOpts
- type MetricsApiService
- func (a *MetricsApiService) MetricsEntitlementsList(ctx context.Context, owner string, ...) (EntitlementUsageMetrics, *http.Response, error)
- func (a *MetricsApiService) MetricsEntitlementsList0(ctx context.Context, owner string, repo string, ...) (EntitlementUsageMetrics, *http.Response, error)
- func (a *MetricsApiService) MetricsPackagesList(ctx context.Context, owner string, repo string, ...) (PackageUsageMetrics, *http.Response, error)
- type ModelPackage
- type Namespace
- type NamespacesApiNamespacesListOpts
- type NamespacesApiService
- type Organization
- type OrganizationMembership
- type OrgsApiOrgsListOpts
- type OrgsApiOrgsMembersListOpts
- type OrgsApiService
- func (a *OrgsApiService) OrgsList(ctx context.Context, localVarOptionals *OrgsApiOrgsListOpts) ([]Organization, *http.Response, error)
- func (a *OrgsApiService) OrgsMembersList(ctx context.Context, org string, localVarOptionals *OrgsApiOrgsMembersListOpts) ([]OrganizationMembership, *http.Response, error)
- func (a *OrgsApiService) OrgsMembersRead(ctx context.Context, org string, member string) (OrganizationMembership, *http.Response, error)
- func (a *OrgsApiService) OrgsMembersRemove(ctx context.Context, org string, member string) (OrganizationMembership, *http.Response, error)
- func (a *OrgsApiService) OrgsRead(ctx context.Context, org string) (Organization, *http.Response, error)
- type PackageCopy
- type PackageDependencies
- type PackageDependenciesDependencies
- type PackageFilePartsUpload
- type PackageFileUpload
- type PackageMove
- type PackageStatus
- type PackageUsageMetrics
- type PackagesApiPackagesCopyOpts
- type PackagesApiPackagesListOpts
- type PackagesApiPackagesMoveOpts
- type PackagesApiPackagesQuarantineOpts
- type PackagesApiPackagesTagOpts
- type PackagesApiPackagesUploadAlpineOpts
- type PackagesApiPackagesUploadCargoOpts
- type PackagesApiPackagesUploadCocoapodsOpts
- type PackagesApiPackagesUploadComposerOpts
- type PackagesApiPackagesUploadConanOpts
- type PackagesApiPackagesUploadCondaOpts
- type PackagesApiPackagesUploadCranOpts
- type PackagesApiPackagesUploadDartOpts
- type PackagesApiPackagesUploadDebOpts
- type PackagesApiPackagesUploadDockerOpts
- type PackagesApiPackagesUploadGoOpts
- type PackagesApiPackagesUploadHelmOpts
- type PackagesApiPackagesUploadLuarocksOpts
- type PackagesApiPackagesUploadMavenOpts
- type PackagesApiPackagesUploadNpmOpts
- type PackagesApiPackagesUploadNugetOpts
- type PackagesApiPackagesUploadP2Opts
- type PackagesApiPackagesUploadPythonOpts
- type PackagesApiPackagesUploadRawOpts
- type PackagesApiPackagesUploadRpmOpts
- type PackagesApiPackagesUploadRubyOpts
- type PackagesApiPackagesUploadTerraformOpts
- type PackagesApiPackagesUploadVagrantOpts
- type PackagesApiPackagesValidateUploadAlpineOpts
- type PackagesApiPackagesValidateUploadCargoOpts
- type PackagesApiPackagesValidateUploadCocoapodsOpts
- type PackagesApiPackagesValidateUploadComposerOpts
- type PackagesApiPackagesValidateUploadConanOpts
- type PackagesApiPackagesValidateUploadCondaOpts
- type PackagesApiPackagesValidateUploadCranOpts
- type PackagesApiPackagesValidateUploadDartOpts
- type PackagesApiPackagesValidateUploadDebOpts
- type PackagesApiPackagesValidateUploadDockerOpts
- type PackagesApiPackagesValidateUploadGoOpts
- type PackagesApiPackagesValidateUploadHelmOpts
- type PackagesApiPackagesValidateUploadLuarocksOpts
- type PackagesApiPackagesValidateUploadMavenOpts
- type PackagesApiPackagesValidateUploadNpmOpts
- type PackagesApiPackagesValidateUploadNugetOpts
- type PackagesApiPackagesValidateUploadP2Opts
- type PackagesApiPackagesValidateUploadPythonOpts
- type PackagesApiPackagesValidateUploadRawOpts
- type PackagesApiPackagesValidateUploadRpmOpts
- type PackagesApiPackagesValidateUploadRubyOpts
- type PackagesApiPackagesValidateUploadTerraformOpts
- type PackagesApiPackagesValidateUploadVagrantOpts
- type PackagesApiService
- func (a *PackagesApiService) PackagesCopy(ctx context.Context, owner string, repo string, identifier string, ...) (PackageCopy, *http.Response, error)
- func (a *PackagesApiService) PackagesDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)
- func (a *PackagesApiService) PackagesDependencies(ctx context.Context, owner string, repo string, identifier string) (PackageDependencies, *http.Response, error)
- func (a *PackagesApiService) PackagesList(ctx context.Context, owner string, repo string, ...) ([]ModelPackage, *http.Response, error)
- func (a *PackagesApiService) PackagesMove(ctx context.Context, owner string, repo string, identifier string, ...) (PackageMove, *http.Response, error)
- func (a *PackagesApiService) PackagesQuarantine(ctx context.Context, owner string, repo string, identifier string, ...) (ModelPackage, *http.Response, error)
- func (a *PackagesApiService) PackagesRead(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error)
- func (a *PackagesApiService) PackagesResync(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error)
- func (a *PackagesApiService) PackagesScan(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error)
- func (a *PackagesApiService) PackagesStatus(ctx context.Context, owner string, repo string, identifier string) (PackageStatus, *http.Response, error)
- func (a *PackagesApiService) PackagesTag(ctx context.Context, owner string, repo string, identifier string, ...) (ModelPackage, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadAlpine(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadCargo(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadCocoapods(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadComposer(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadConan(ctx context.Context, owner string, repo string, ...) (ConanPackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadConda(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadCran(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadDart(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadDeb(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadDocker(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadGo(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadHelm(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadLuarocks(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadMaven(ctx context.Context, owner string, repo string, ...) (MavenPackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadNpm(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadNuget(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadP2(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadPython(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadRaw(ctx context.Context, owner string, repo string, ...) (RawPackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadRpm(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadRuby(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadTerraform(ctx context.Context, owner string, repo string, ...) (AlpinePackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesUploadVagrant(ctx context.Context, owner string, repo string, ...) (VagrantPackageUpload, *http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadAlpine(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadCargo(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadCocoapods(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadComposer(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadConan(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadConda(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadCran(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadDart(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadDeb(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadDocker(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadGo(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadHelm(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadLuarocks(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadMaven(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadNpm(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadNuget(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadP2(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadPython(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadRaw(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadRpm(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadRuby(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadTerraform(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- func (a *PackagesApiService) PackagesValidateUploadVagrant(ctx context.Context, owner string, repo string, ...) (*http.Response, error)
- type PackagesCopy
- type PackagesMove
- type PackagesQuarantine
- type PackagesTag
- type PackagesUploadAlpine
- type PackagesUploadCargo
- type PackagesUploadCocoapods
- type PackagesUploadComposer
- type PackagesUploadConan
- type PackagesUploadConda
- type PackagesUploadCran
- type PackagesUploadDart
- type PackagesUploadDeb
- type PackagesUploadDocker
- type PackagesUploadGo
- type PackagesUploadHelm
- type PackagesUploadLuarocks
- type PackagesUploadMaven
- type PackagesUploadNpm
- type PackagesUploadNuget
- type PackagesUploadP2
- type PackagesUploadPython
- type PackagesUploadRaw
- type PackagesUploadRpm
- type PackagesUploadRuby
- type PackagesUploadTerraform
- type PackagesUploadVagrant
- type PackagesValidateuploadAlpine
- type PackagesValidateuploadCargo
- type PackagesValidateuploadCocoapods
- type PackagesValidateuploadComposer
- type PackagesValidateuploadConan
- type PackagesValidateuploadConda
- type PackagesValidateuploadCran
- type PackagesValidateuploadDart
- type PackagesValidateuploadDeb
- type PackagesValidateuploadDocker
- type PackagesValidateuploadGo
- type PackagesValidateuploadHelm
- type PackagesValidateuploadLuarocks
- type PackagesValidateuploadMaven
- type PackagesValidateuploadNpm
- type PackagesValidateuploadNuget
- type PackagesValidateuploadP2
- type PackagesValidateuploadPython
- type PackagesValidateuploadRaw
- type PackagesValidateuploadRpm
- type PackagesValidateuploadRuby
- type PackagesValidateuploadTerraform
- type PackagesValidateuploadVagrant
- type PackagesownerrepoArchitectures
- type PackagesownerrepoFiles
- type Quota
- type QuotaApiService
- func (a *QuotaApiService) QuotaHistoryRead(ctx context.Context, owner string) (QuotaHistory, *http.Response, error)
- func (a *QuotaApiService) QuotaOssHistoryRead(ctx context.Context, owner string) (QuotaHistory, *http.Response, error)
- func (a *QuotaApiService) QuotaOssRead(ctx context.Context, owner string) (Quota, *http.Response, error)
- func (a *QuotaApiService) QuotaRead(ctx context.Context, owner string) (Quota, *http.Response, error)
- type QuotaHistory
- type QuotaHistoryHistory
- type RatesApiService
- type RawPackageUpload
- type ReposApiReposAllListOpts
- type ReposApiReposCreateOpts
- type ReposApiReposListOpts
- type ReposApiReposPartialUpdateOpts
- type ReposApiService
- func (a *ReposApiService) ReposAllList(ctx context.Context, localVarOptionals *ReposApiReposAllListOpts) ([]Repository, *http.Response, error)
- func (a *ReposApiService) ReposCreate(ctx context.Context, owner string, localVarOptionals *ReposApiReposCreateOpts) (RepositoryCreate, *http.Response, error)
- func (a *ReposApiService) ReposDelete(ctx context.Context, owner string, identifier string) (*http.Response, error)
- func (a *ReposApiService) ReposList(ctx context.Context, owner string, localVarOptionals *ReposApiReposListOpts) ([]Repository, *http.Response, error)
- func (a *ReposApiService) ReposPartialUpdate(ctx context.Context, owner string, identifier string, ...) (Repository, *http.Response, error)
- func (a *ReposApiService) ReposRead(ctx context.Context, owner string, identifier string) (Repository, *http.Response, error)
- type ReposCreate
- type ReposGpgKeys
- type ReposPartialUpdate
- type Repository
- type RepositoryCreate
- type RepositoryToken
- type RepositoryTokenRefresh
- type RepositoryTokenSync
- type RepositoryTokenSyncTokens
- type RepositoryWebhook
- type ResourcesRateCheck
- type Status
- type StatusApiService
- type StatusBasic
- type StorageRegion
- type StorageRegionsApiService
- type UserApiService
- type UserApiUserTokenCreateOpts
- type UserAuthToken
- type UserBrief
- type UserProfile
- type UserTokenCreate
- type UsersApiService
- type VagrantPackageUpload
- type VulnerabilitiesApiService
- func (a *VulnerabilitiesApiService) VulnerabilitiesList(ctx context.Context, owner string, ...) ([]VulnerabilityScanResultsList, *http.Response, error)
- func (a *VulnerabilitiesApiService) VulnerabilitiesList0(ctx context.Context, owner string, repo string, ...) ([]VulnerabilityScanResultsList, *http.Response, error)
- func (a *VulnerabilitiesApiService) VulnerabilitiesList1(ctx context.Context, owner string, repo string, package_ string, ...) ([]VulnerabilityScanResultsList, *http.Response, error)
- func (a *VulnerabilitiesApiService) VulnerabilitiesRead(ctx context.Context, owner string, repo string, package_ string, scanId string) (VulnerabilityScanResults, *http.Response, error)
- type VulnerabilitiesApiVulnerabilitiesList0Opts
- type VulnerabilitiesApiVulnerabilitiesList1Opts
- type VulnerabilitiesApiVulnerabilitiesListOpts
- type VulnerabilityScanResults
- type VulnerabilityScanResultsList
- type WebhooksApiService
- func (a *WebhooksApiService) WebhooksCreate(ctx context.Context, owner string, repo string, ...) (RepositoryWebhook, *http.Response, error)
- func (a *WebhooksApiService) WebhooksDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error)
- func (a *WebhooksApiService) WebhooksList(ctx context.Context, owner string, repo string, ...) ([]RepositoryWebhook, *http.Response, error)
- func (a *WebhooksApiService) WebhooksPartialUpdate(ctx context.Context, owner string, repo string, identifier string, ...) (RepositoryWebhook, *http.Response, error)
- func (a *WebhooksApiService) WebhooksRead(ctx context.Context, owner string, repo string, identifier string) (RepositoryWebhook, *http.Response, error)
- type WebhooksApiWebhooksCreateOpts
- type WebhooksApiWebhooksListOpts
- type WebhooksApiWebhooksPartialUpdateOpts
- type WebhooksCreate
- type WebhooksPartialUpdate
- type WebhooksownerrepoTemplates
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
Change base path to allow switching to mocks
type APIKey ¶
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 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 EntitlementUsageMetrics ¶
type EntitlementUsageMetrics struct {
//
Tokens interface{} `json:"tokens"`
}
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 FilesApiFilesCreateOpts ¶
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 ¶
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 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 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 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 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 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 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 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 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 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 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 ReposApiReposCreateOpts ¶
type ReposApiReposListOpts ¶
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 StorageRegion ¶
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 ¶
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 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 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 (a *VulnerabilitiesApiService) VulnerabilitiesList(ctx context.Context, owner string, localVarOptionals *VulnerabilitiesApiVulnerabilitiesListOpts) ([]VulnerabilityScanResultsList, *http.Response, error)
func (*VulnerabilitiesApiService) VulnerabilitiesList0 ¶
func (a *VulnerabilitiesApiService) VulnerabilitiesList0(ctx context.Context, owner string, repo string, localVarOptionals *VulnerabilitiesApiVulnerabilitiesList0Opts) ([]VulnerabilityScanResultsList, *http.Response, error)
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 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 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"` }
Source Files
¶
- api_badges.go
- api_distros.go
- api_entitlements.go
- api_files.go
- api_formats.go
- api_metrics.go
- api_namespaces.go
- api_orgs.go
- api_packages.go
- api_quota.go
- api_rates.go
- api_repos.go
- api_status.go
- api_storage_regions.go
- api_user.go
- api_users.go
- api_vulnerabilities.go
- api_webhooks.go
- client.go
- configuration.go
- model_alpine_package_upload.go
- model_conan_package_upload.go
- model_distribution.go
- model_distros_versions.go
- model_entitlement_usage_metrics.go
- model_entitlements_create.go
- model_entitlements_partial_update.go
- model_entitlements_refresh.go
- model_entitlements_sync.go
- model_files_abort.go
- model_files_complete.go
- model_files_create.go
- model_files_validate.go
- model_format.go
- model_formats_distributions.go
- model_maven_package_upload.go
- model_namespace.go
- model_organization.go
- model_organization_membership.go
- model_package.go
- model_package_copy.go
- model_package_dependencies.go
- model_package_dependencies_dependencies.go
- model_package_file_parts_upload.go
- model_package_file_upload.go
- model_package_move.go
- model_package_status.go
- model_package_usage_metrics.go
- model_packages_copy.go
- model_packages_move.go
- model_packages_quarantine.go
- model_packages_tag.go
- model_packages_upload_alpine.go
- model_packages_upload_cargo.go
- model_packages_upload_cocoapods.go
- model_packages_upload_composer.go
- model_packages_upload_conan.go
- model_packages_upload_conda.go
- model_packages_upload_cran.go
- model_packages_upload_dart.go
- model_packages_upload_deb.go
- model_packages_upload_docker.go
- model_packages_upload_go.go
- model_packages_upload_helm.go
- model_packages_upload_luarocks.go
- model_packages_upload_maven.go
- model_packages_upload_npm.go
- model_packages_upload_nuget.go
- model_packages_upload_p2.go
- model_packages_upload_python.go
- model_packages_upload_raw.go
- model_packages_upload_rpm.go
- model_packages_upload_ruby.go
- model_packages_upload_terraform.go
- model_packages_upload_vagrant.go
- model_packages_validateupload_alpine.go
- model_packages_validateupload_cargo.go
- model_packages_validateupload_cocoapods.go
- model_packages_validateupload_composer.go
- model_packages_validateupload_conan.go
- model_packages_validateupload_conda.go
- model_packages_validateupload_cran.go
- model_packages_validateupload_dart.go
- model_packages_validateupload_deb.go
- model_packages_validateupload_docker.go
- model_packages_validateupload_go.go
- model_packages_validateupload_helm.go
- model_packages_validateupload_luarocks.go
- model_packages_validateupload_maven.go
- model_packages_validateupload_npm.go
- model_packages_validateupload_nuget.go
- model_packages_validateupload_p2.go
- model_packages_validateupload_python.go
- model_packages_validateupload_raw.go
- model_packages_validateupload_rpm.go
- model_packages_validateupload_ruby.go
- model_packages_validateupload_terraform.go
- model_packages_validateupload_vagrant.go
- model_packagesownerrepo_architectures.go
- model_packagesownerrepo_files.go
- model_quota.go
- model_quota_history.go
- model_quota_history_history.go
- model_raw_package_upload.go
- model_repos_create.go
- model_repos_gpg_keys.go
- model_repos_partial_update.go
- model_repository.go
- model_repository_create.go
- model_repository_token.go
- model_repository_token_refresh.go
- model_repository_token_sync.go
- model_repository_token_sync_tokens.go
- model_repository_webhook.go
- model_resources_rate_check.go
- model_status.go
- model_status_basic.go
- model_storage_region.go
- model_user_auth_token.go
- model_user_brief.go
- model_user_profile.go
- model_user_token_create.go
- model_vagrant_package_upload.go
- model_vulnerability_scan_results.go
- model_vulnerability_scan_results_list.go
- model_webhooks_create.go
- model_webhooks_partial_update.go
- model_webhooksownerrepo_templates.go
- response.go