packages

package
v0.0.0-...-01553de Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package packages provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetKeywordRequest

func NewGetKeywordRequest(server string, keywordName string, params *GetKeywordParams) (*http.Request, error)

NewGetKeywordRequest generates requests for GetKeyword

func NewGetKeywordsRequest

func NewGetKeywordsRequest(server string, params *GetKeywordsParams) (*http.Request, error)

NewGetKeywordsRequest generates requests for GetKeywords

func NewGetRegistriesRequest

func NewGetRegistriesRequest(server string, params *GetRegistriesParams) (*http.Request, error)

NewGetRegistriesRequest generates requests for GetRegistries

func NewGetRegistryMaintainerPackagesRequest

func NewGetRegistryMaintainerPackagesRequest(server string, registryName string, maintainerLoginOrUUID string, params *GetRegistryMaintainerPackagesParams) (*http.Request, error)

NewGetRegistryMaintainerPackagesRequest generates requests for GetRegistryMaintainerPackages

func NewGetRegistryMaintainerRequest

func NewGetRegistryMaintainerRequest(server string, registryName string, maintainerLoginOrUUID string) (*http.Request, error)

NewGetRegistryMaintainerRequest generates requests for GetRegistryMaintainer

func NewGetRegistryMaintainersRequest

func NewGetRegistryMaintainersRequest(server string, registryName string, params *GetRegistryMaintainersParams) (*http.Request, error)

NewGetRegistryMaintainersRequest generates requests for GetRegistryMaintainers

func NewGetRegistryNamespacePackagesRequest

func NewGetRegistryNamespacePackagesRequest(server string, registryName string, namespaceName string, params *GetRegistryNamespacePackagesParams) (*http.Request, error)

NewGetRegistryNamespacePackagesRequest generates requests for GetRegistryNamespacePackages

func NewGetRegistryNamespaceRequest

func NewGetRegistryNamespaceRequest(server string, registryName string, namespaceName string) (*http.Request, error)

NewGetRegistryNamespaceRequest generates requests for GetRegistryNamespace

func NewGetRegistryNamespacesRequest

func NewGetRegistryNamespacesRequest(server string, registryName string, params *GetRegistryNamespacesParams) (*http.Request, error)

NewGetRegistryNamespacesRequest generates requests for GetRegistryNamespaces

func NewGetRegistryPackageDependentPackagesRequest

func NewGetRegistryPackageDependentPackagesRequest(server string, registryName string, packageName string, params *GetRegistryPackageDependentPackagesParams) (*http.Request, error)

NewGetRegistryPackageDependentPackagesRequest generates requests for GetRegistryPackageDependentPackages

func NewGetRegistryPackageNamesRequest

func NewGetRegistryPackageNamesRequest(server string, registryName string, params *GetRegistryPackageNamesParams) (*http.Request, error)

NewGetRegistryPackageNamesRequest generates requests for GetRegistryPackageNames

func NewGetRegistryPackageRelatedPackagesRequest

func NewGetRegistryPackageRelatedPackagesRequest(server string, registryName string, packageName string, params *GetRegistryPackageRelatedPackagesParams) (*http.Request, error)

NewGetRegistryPackageRelatedPackagesRequest generates requests for GetRegistryPackageRelatedPackages

func NewGetRegistryPackageRequest

func NewGetRegistryPackageRequest(server string, registryName string, packageName string) (*http.Request, error)

NewGetRegistryPackageRequest generates requests for GetRegistryPackage

func NewGetRegistryPackageVersionRequest

func NewGetRegistryPackageVersionRequest(server string, registryName string, packageName string, versionNumber string) (*http.Request, error)

NewGetRegistryPackageVersionRequest generates requests for GetRegistryPackageVersion

func NewGetRegistryPackageVersionsRequest

func NewGetRegistryPackageVersionsRequest(server string, registryName string, packageName string, params *GetRegistryPackageVersionsParams) (*http.Request, error)

NewGetRegistryPackageVersionsRequest generates requests for GetRegistryPackageVersions

func NewGetRegistryPackagesRequest

func NewGetRegistryPackagesRequest(server string, registryName string, params *GetRegistryPackagesParams) (*http.Request, error)

NewGetRegistryPackagesRequest generates requests for GetRegistryPackages

func NewGetRegistryRecentVersionsRequest

func NewGetRegistryRecentVersionsRequest(server string, registryName string, params *GetRegistryRecentVersionsParams) (*http.Request, error)

NewGetRegistryRecentVersionsRequest generates requests for GetRegistryRecentVersions

func NewGetRegistryRequest

func NewGetRegistryRequest(server string, registryName string, params *GetRegistryParams) (*http.Request, error)

NewGetRegistryRequest generates requests for GetRegistry

func NewLookupPackageRequest

func NewLookupPackageRequest(server string, params *LookupPackageParams) (*http.Request, error)

NewLookupPackageRequest generates requests for LookupPackage

Types

type Advisory

type Advisory struct {
	Classification *string                  `json:"classification"`
	CreatedAt      string                   `json:"created_at"`
	CvssScore      *float32                 `json:"cvss_score"`
	CvssVector     *string                  `json:"cvss_vector"`
	Description    *string                  `json:"description"`
	Identifiers    []string                 `json:"identifiers"`
	Origin         *string                  `json:"origin"`
	Packages       []map[string]interface{} `json:"packages"`
	PublishedAt    *string                  `json:"published_at"`
	References     []string                 `json:"references"`
	Severity       *string                  `json:"severity"`
	SourceKind     *string                  `json:"source_kind"`
	Title          *string                  `json:"title"`
	UpdatedAt      string                   `json:"updated_at"`
	Url            *string                  `json:"url"`
	Uuid           string                   `json:"uuid"`
	WithdrawnAt    *string                  `json:"withdrawn_at"`
}

Advisory defines model for Advisory.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetKeyword

func (c *Client) GetKeyword(ctx context.Context, keywordName string, params *GetKeywordParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetKeywords

func (c *Client) GetKeywords(ctx context.Context, params *GetKeywordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistries

func (c *Client) GetRegistries(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistry

func (c *Client) GetRegistry(ctx context.Context, registryName string, params *GetRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryMaintainer

func (c *Client) GetRegistryMaintainer(ctx context.Context, registryName string, maintainerLoginOrUUID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryMaintainerPackages

func (c *Client) GetRegistryMaintainerPackages(ctx context.Context, registryName string, maintainerLoginOrUUID string, params *GetRegistryMaintainerPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryMaintainers

func (c *Client) GetRegistryMaintainers(ctx context.Context, registryName string, params *GetRegistryMaintainersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryNamespace

func (c *Client) GetRegistryNamespace(ctx context.Context, registryName string, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryNamespacePackages

func (c *Client) GetRegistryNamespacePackages(ctx context.Context, registryName string, namespaceName string, params *GetRegistryNamespacePackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryNamespaces

func (c *Client) GetRegistryNamespaces(ctx context.Context, registryName string, params *GetRegistryNamespacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackage

func (c *Client) GetRegistryPackage(ctx context.Context, registryName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackageDependentPackages

func (c *Client) GetRegistryPackageDependentPackages(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageDependentPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackageNames

func (c *Client) GetRegistryPackageNames(ctx context.Context, registryName string, params *GetRegistryPackageNamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackageRelatedPackages

func (c *Client) GetRegistryPackageRelatedPackages(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageRelatedPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackageVersion

func (c *Client) GetRegistryPackageVersion(ctx context.Context, registryName string, packageName string, versionNumber string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackageVersions

func (c *Client) GetRegistryPackageVersions(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryPackages

func (c *Client) GetRegistryPackages(ctx context.Context, registryName string, params *GetRegistryPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistryRecentVersions

func (c *Client) GetRegistryRecentVersions(ctx context.Context, registryName string, params *GetRegistryRecentVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LookupPackage

func (c *Client) LookupPackage(ctx context.Context, params *LookupPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetKeywords request
	GetKeywords(ctx context.Context, params *GetKeywordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetKeyword request
	GetKeyword(ctx context.Context, keywordName string, params *GetKeywordParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LookupPackage request
	LookupPackage(ctx context.Context, params *LookupPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistries request
	GetRegistries(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistry request
	GetRegistry(ctx context.Context, registryName string, params *GetRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryMaintainers request
	GetRegistryMaintainers(ctx context.Context, registryName string, params *GetRegistryMaintainersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryMaintainer request
	GetRegistryMaintainer(ctx context.Context, registryName string, maintainerLoginOrUUID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryMaintainerPackages request
	GetRegistryMaintainerPackages(ctx context.Context, registryName string, maintainerLoginOrUUID string, params *GetRegistryMaintainerPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryNamespaces request
	GetRegistryNamespaces(ctx context.Context, registryName string, params *GetRegistryNamespacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryNamespace request
	GetRegistryNamespace(ctx context.Context, registryName string, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryNamespacePackages request
	GetRegistryNamespacePackages(ctx context.Context, registryName string, namespaceName string, params *GetRegistryNamespacePackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackageNames request
	GetRegistryPackageNames(ctx context.Context, registryName string, params *GetRegistryPackageNamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackages request
	GetRegistryPackages(ctx context.Context, registryName string, params *GetRegistryPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackage request
	GetRegistryPackage(ctx context.Context, registryName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackageDependentPackages request
	GetRegistryPackageDependentPackages(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageDependentPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackageRelatedPackages request
	GetRegistryPackageRelatedPackages(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageRelatedPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackageVersions request
	GetRegistryPackageVersions(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryPackageVersion request
	GetRegistryPackageVersion(ctx context.Context, registryName string, packageName string, versionNumber string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistryRecentVersions request
	GetRegistryRecentVersions(ctx context.Context, registryName string, params *GetRegistryRecentVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetKeywordWithResponse

func (c *ClientWithResponses) GetKeywordWithResponse(ctx context.Context, keywordName string, params *GetKeywordParams, reqEditors ...RequestEditorFn) (*GetKeywordResponse, error)

GetKeywordWithResponse request returning *GetKeywordResponse

func (*ClientWithResponses) GetKeywordsWithResponse

func (c *ClientWithResponses) GetKeywordsWithResponse(ctx context.Context, params *GetKeywordsParams, reqEditors ...RequestEditorFn) (*GetKeywordsResponse, error)

GetKeywordsWithResponse request returning *GetKeywordsResponse

func (*ClientWithResponses) GetRegistriesWithResponse

func (c *ClientWithResponses) GetRegistriesWithResponse(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*GetRegistriesResponse, error)

GetRegistriesWithResponse request returning *GetRegistriesResponse

func (*ClientWithResponses) GetRegistryMaintainerPackagesWithResponse

func (c *ClientWithResponses) GetRegistryMaintainerPackagesWithResponse(ctx context.Context, registryName string, maintainerLoginOrUUID string, params *GetRegistryMaintainerPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryMaintainerPackagesResponse, error)

GetRegistryMaintainerPackagesWithResponse request returning *GetRegistryMaintainerPackagesResponse

func (*ClientWithResponses) GetRegistryMaintainerWithResponse

func (c *ClientWithResponses) GetRegistryMaintainerWithResponse(ctx context.Context, registryName string, maintainerLoginOrUUID string, reqEditors ...RequestEditorFn) (*GetRegistryMaintainerResponse, error)

GetRegistryMaintainerWithResponse request returning *GetRegistryMaintainerResponse

func (*ClientWithResponses) GetRegistryMaintainersWithResponse

func (c *ClientWithResponses) GetRegistryMaintainersWithResponse(ctx context.Context, registryName string, params *GetRegistryMaintainersParams, reqEditors ...RequestEditorFn) (*GetRegistryMaintainersResponse, error)

GetRegistryMaintainersWithResponse request returning *GetRegistryMaintainersResponse

func (*ClientWithResponses) GetRegistryNamespacePackagesWithResponse

func (c *ClientWithResponses) GetRegistryNamespacePackagesWithResponse(ctx context.Context, registryName string, namespaceName string, params *GetRegistryNamespacePackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryNamespacePackagesResponse, error)

GetRegistryNamespacePackagesWithResponse request returning *GetRegistryNamespacePackagesResponse

func (*ClientWithResponses) GetRegistryNamespaceWithResponse

func (c *ClientWithResponses) GetRegistryNamespaceWithResponse(ctx context.Context, registryName string, namespaceName string, reqEditors ...RequestEditorFn) (*GetRegistryNamespaceResponse, error)

GetRegistryNamespaceWithResponse request returning *GetRegistryNamespaceResponse

func (*ClientWithResponses) GetRegistryNamespacesWithResponse

func (c *ClientWithResponses) GetRegistryNamespacesWithResponse(ctx context.Context, registryName string, params *GetRegistryNamespacesParams, reqEditors ...RequestEditorFn) (*GetRegistryNamespacesResponse, error)

GetRegistryNamespacesWithResponse request returning *GetRegistryNamespacesResponse

func (*ClientWithResponses) GetRegistryPackageDependentPackagesWithResponse

func (c *ClientWithResponses) GetRegistryPackageDependentPackagesWithResponse(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageDependentPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageDependentPackagesResponse, error)

GetRegistryPackageDependentPackagesWithResponse request returning *GetRegistryPackageDependentPackagesResponse

func (*ClientWithResponses) GetRegistryPackageNamesWithResponse

func (c *ClientWithResponses) GetRegistryPackageNamesWithResponse(ctx context.Context, registryName string, params *GetRegistryPackageNamesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageNamesResponse, error)

GetRegistryPackageNamesWithResponse request returning *GetRegistryPackageNamesResponse

func (*ClientWithResponses) GetRegistryPackageRelatedPackagesWithResponse

func (c *ClientWithResponses) GetRegistryPackageRelatedPackagesWithResponse(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageRelatedPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageRelatedPackagesResponse, error)

GetRegistryPackageRelatedPackagesWithResponse request returning *GetRegistryPackageRelatedPackagesResponse

func (*ClientWithResponses) GetRegistryPackageVersionWithResponse

func (c *ClientWithResponses) GetRegistryPackageVersionWithResponse(ctx context.Context, registryName string, packageName string, versionNumber string, reqEditors ...RequestEditorFn) (*GetRegistryPackageVersionResponse, error)

GetRegistryPackageVersionWithResponse request returning *GetRegistryPackageVersionResponse

func (*ClientWithResponses) GetRegistryPackageVersionsWithResponse

func (c *ClientWithResponses) GetRegistryPackageVersionsWithResponse(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageVersionsParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageVersionsResponse, error)

GetRegistryPackageVersionsWithResponse request returning *GetRegistryPackageVersionsResponse

func (*ClientWithResponses) GetRegistryPackageWithResponse

func (c *ClientWithResponses) GetRegistryPackageWithResponse(ctx context.Context, registryName string, packageName string, reqEditors ...RequestEditorFn) (*GetRegistryPackageResponse, error)

GetRegistryPackageWithResponse request returning *GetRegistryPackageResponse

func (*ClientWithResponses) GetRegistryPackagesWithResponse

func (c *ClientWithResponses) GetRegistryPackagesWithResponse(ctx context.Context, registryName string, params *GetRegistryPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackagesResponse, error)

GetRegistryPackagesWithResponse request returning *GetRegistryPackagesResponse

func (*ClientWithResponses) GetRegistryRecentVersionsWithResponse

func (c *ClientWithResponses) GetRegistryRecentVersionsWithResponse(ctx context.Context, registryName string, params *GetRegistryRecentVersionsParams, reqEditors ...RequestEditorFn) (*GetRegistryRecentVersionsResponse, error)

GetRegistryRecentVersionsWithResponse request returning *GetRegistryRecentVersionsResponse

func (*ClientWithResponses) GetRegistryWithResponse

func (c *ClientWithResponses) GetRegistryWithResponse(ctx context.Context, registryName string, params *GetRegistryParams, reqEditors ...RequestEditorFn) (*GetRegistryResponse, error)

GetRegistryWithResponse request returning *GetRegistryResponse

func (*ClientWithResponses) LookupPackageWithResponse

func (c *ClientWithResponses) LookupPackageWithResponse(ctx context.Context, params *LookupPackageParams, reqEditors ...RequestEditorFn) (*LookupPackageResponse, error)

LookupPackageWithResponse request returning *LookupPackageResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetKeywords request
	GetKeywordsWithResponse(ctx context.Context, params *GetKeywordsParams, reqEditors ...RequestEditorFn) (*GetKeywordsResponse, error)

	// GetKeyword request
	GetKeywordWithResponse(ctx context.Context, keywordName string, params *GetKeywordParams, reqEditors ...RequestEditorFn) (*GetKeywordResponse, error)

	// LookupPackage request
	LookupPackageWithResponse(ctx context.Context, params *LookupPackageParams, reqEditors ...RequestEditorFn) (*LookupPackageResponse, error)

	// GetRegistries request
	GetRegistriesWithResponse(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*GetRegistriesResponse, error)

	// GetRegistry request
	GetRegistryWithResponse(ctx context.Context, registryName string, params *GetRegistryParams, reqEditors ...RequestEditorFn) (*GetRegistryResponse, error)

	// GetRegistryMaintainers request
	GetRegistryMaintainersWithResponse(ctx context.Context, registryName string, params *GetRegistryMaintainersParams, reqEditors ...RequestEditorFn) (*GetRegistryMaintainersResponse, error)

	// GetRegistryMaintainer request
	GetRegistryMaintainerWithResponse(ctx context.Context, registryName string, maintainerLoginOrUUID string, reqEditors ...RequestEditorFn) (*GetRegistryMaintainerResponse, error)

	// GetRegistryMaintainerPackages request
	GetRegistryMaintainerPackagesWithResponse(ctx context.Context, registryName string, maintainerLoginOrUUID string, params *GetRegistryMaintainerPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryMaintainerPackagesResponse, error)

	// GetRegistryNamespaces request
	GetRegistryNamespacesWithResponse(ctx context.Context, registryName string, params *GetRegistryNamespacesParams, reqEditors ...RequestEditorFn) (*GetRegistryNamespacesResponse, error)

	// GetRegistryNamespace request
	GetRegistryNamespaceWithResponse(ctx context.Context, registryName string, namespaceName string, reqEditors ...RequestEditorFn) (*GetRegistryNamespaceResponse, error)

	// GetRegistryNamespacePackages request
	GetRegistryNamespacePackagesWithResponse(ctx context.Context, registryName string, namespaceName string, params *GetRegistryNamespacePackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryNamespacePackagesResponse, error)

	// GetRegistryPackageNames request
	GetRegistryPackageNamesWithResponse(ctx context.Context, registryName string, params *GetRegistryPackageNamesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageNamesResponse, error)

	// GetRegistryPackages request
	GetRegistryPackagesWithResponse(ctx context.Context, registryName string, params *GetRegistryPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackagesResponse, error)

	// GetRegistryPackage request
	GetRegistryPackageWithResponse(ctx context.Context, registryName string, packageName string, reqEditors ...RequestEditorFn) (*GetRegistryPackageResponse, error)

	// GetRegistryPackageDependentPackages request
	GetRegistryPackageDependentPackagesWithResponse(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageDependentPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageDependentPackagesResponse, error)

	// GetRegistryPackageRelatedPackages request
	GetRegistryPackageRelatedPackagesWithResponse(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageRelatedPackagesParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageRelatedPackagesResponse, error)

	// GetRegistryPackageVersions request
	GetRegistryPackageVersionsWithResponse(ctx context.Context, registryName string, packageName string, params *GetRegistryPackageVersionsParams, reqEditors ...RequestEditorFn) (*GetRegistryPackageVersionsResponse, error)

	// GetRegistryPackageVersion request
	GetRegistryPackageVersionWithResponse(ctx context.Context, registryName string, packageName string, versionNumber string, reqEditors ...RequestEditorFn) (*GetRegistryPackageVersionResponse, error)

	// GetRegistryRecentVersions request
	GetRegistryRecentVersionsWithResponse(ctx context.Context, registryName string, params *GetRegistryRecentVersionsParams, reqEditors ...RequestEditorFn) (*GetRegistryRecentVersionsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Dependency

type Dependency struct {
	Ecosystem    string  `json:"ecosystem"`
	Kind         *string `json:"kind"`
	Optional     *bool   `json:"optional"`
	PackageName  string  `json:"package_name"`
	Requirements *string `json:"requirements"`
}

Dependency defines model for Dependency.

type GetKeywordParams

type GetKeywordParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetKeywordParams defines parameters for GetKeyword.

type GetKeywordResponse

type GetKeywordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KeywordWithPackages
}

func ParseGetKeywordResponse

func ParseGetKeywordResponse(rsp *http.Response) (*GetKeywordResponse, error)

ParseGetKeywordResponse parses an HTTP response from a GetKeywordWithResponse call

func (GetKeywordResponse) Status

func (r GetKeywordResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeywordResponse) StatusCode

func (r GetKeywordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetKeywordsParams

type GetKeywordsParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetKeywordsParams defines parameters for GetKeywords.

type GetKeywordsResponse

type GetKeywordsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Keyword
}

func ParseGetKeywordsResponse

func ParseGetKeywordsResponse(rsp *http.Response) (*GetKeywordsResponse, error)

ParseGetKeywordsResponse parses an HTTP response from a GetKeywordsWithResponse call

func (GetKeywordsResponse) Status

func (r GetKeywordsResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeywordsResponse) StatusCode

func (r GetKeywordsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistriesParams

type GetRegistriesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetRegistriesParams defines parameters for GetRegistries.

type GetRegistriesResponse

type GetRegistriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Registry
}

func ParseGetRegistriesResponse

func ParseGetRegistriesResponse(rsp *http.Response) (*GetRegistriesResponse, error)

ParseGetRegistriesResponse parses an HTTP response from a GetRegistriesWithResponse call

func (GetRegistriesResponse) Status

func (r GetRegistriesResponse) Status() string

Status returns HTTPResponse.Status

func (GetRegistriesResponse) StatusCode

func (r GetRegistriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryMaintainerPackagesParams

type GetRegistryMaintainerPackagesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetRegistryMaintainerPackagesParams defines parameters for GetRegistryMaintainerPackages.

type GetRegistryMaintainerPackagesResponse

type GetRegistryMaintainerPackagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Package
}

func ParseGetRegistryMaintainerPackagesResponse

func ParseGetRegistryMaintainerPackagesResponse(rsp *http.Response) (*GetRegistryMaintainerPackagesResponse, error)

ParseGetRegistryMaintainerPackagesResponse parses an HTTP response from a GetRegistryMaintainerPackagesWithResponse call

func (GetRegistryMaintainerPackagesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryMaintainerPackagesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetRegistryMaintainerResponse

type GetRegistryMaintainerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Maintainer
}

func ParseGetRegistryMaintainerResponse

func ParseGetRegistryMaintainerResponse(rsp *http.Response) (*GetRegistryMaintainerResponse, error)

ParseGetRegistryMaintainerResponse parses an HTTP response from a GetRegistryMaintainerWithResponse call

func (GetRegistryMaintainerResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryMaintainerResponse) StatusCode

func (r GetRegistryMaintainerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryMaintainersParams

type GetRegistryMaintainersParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryMaintainersParams defines parameters for GetRegistryMaintainers.

type GetRegistryMaintainersResponse

type GetRegistryMaintainersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Maintainer
}

func ParseGetRegistryMaintainersResponse

func ParseGetRegistryMaintainersResponse(rsp *http.Response) (*GetRegistryMaintainersResponse, error)

ParseGetRegistryMaintainersResponse parses an HTTP response from a GetRegistryMaintainersWithResponse call

func (GetRegistryMaintainersResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryMaintainersResponse) StatusCode

func (r GetRegistryMaintainersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryNamespacePackagesParams

type GetRegistryNamespacePackagesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetRegistryNamespacePackagesParams defines parameters for GetRegistryNamespacePackages.

type GetRegistryNamespacePackagesResponse

type GetRegistryNamespacePackagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Package
}

func ParseGetRegistryNamespacePackagesResponse

func ParseGetRegistryNamespacePackagesResponse(rsp *http.Response) (*GetRegistryNamespacePackagesResponse, error)

ParseGetRegistryNamespacePackagesResponse parses an HTTP response from a GetRegistryNamespacePackagesWithResponse call

func (GetRegistryNamespacePackagesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryNamespacePackagesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetRegistryNamespaceResponse

type GetRegistryNamespaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Namespace
}

func ParseGetRegistryNamespaceResponse

func ParseGetRegistryNamespaceResponse(rsp *http.Response) (*GetRegistryNamespaceResponse, error)

ParseGetRegistryNamespaceResponse parses an HTTP response from a GetRegistryNamespaceWithResponse call

func (GetRegistryNamespaceResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryNamespaceResponse) StatusCode

func (r GetRegistryNamespaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryNamespacesParams

type GetRegistryNamespacesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetRegistryNamespacesParams defines parameters for GetRegistryNamespaces.

type GetRegistryNamespacesResponse

type GetRegistryNamespacesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Namespace
}

func ParseGetRegistryNamespacesResponse

func ParseGetRegistryNamespacesResponse(rsp *http.Response) (*GetRegistryNamespacesResponse, error)

ParseGetRegistryNamespacesResponse parses an HTTP response from a GetRegistryNamespacesWithResponse call

func (GetRegistryNamespacesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryNamespacesResponse) StatusCode

func (r GetRegistryNamespacesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackageDependentPackagesParams

type GetRegistryPackageDependentPackagesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryPackageDependentPackagesParams defines parameters for GetRegistryPackageDependentPackages.

type GetRegistryPackageDependentPackagesResponse

type GetRegistryPackageDependentPackagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Package
}

func ParseGetRegistryPackageDependentPackagesResponse

func ParseGetRegistryPackageDependentPackagesResponse(rsp *http.Response) (*GetRegistryPackageDependentPackagesResponse, error)

ParseGetRegistryPackageDependentPackagesResponse parses an HTTP response from a GetRegistryPackageDependentPackagesWithResponse call

func (GetRegistryPackageDependentPackagesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackageDependentPackagesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackageNamesParams

type GetRegistryPackageNamesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryPackageNamesParams defines parameters for GetRegistryPackageNames.

type GetRegistryPackageNamesResponse

type GetRegistryPackageNamesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]string
}

func ParseGetRegistryPackageNamesResponse

func ParseGetRegistryPackageNamesResponse(rsp *http.Response) (*GetRegistryPackageNamesResponse, error)

ParseGetRegistryPackageNamesResponse parses an HTTP response from a GetRegistryPackageNamesWithResponse call

func (GetRegistryPackageNamesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackageNamesResponse) StatusCode

func (r GetRegistryPackageNamesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackageRelatedPackagesParams

type GetRegistryPackageRelatedPackagesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryPackageRelatedPackagesParams defines parameters for GetRegistryPackageRelatedPackages.

type GetRegistryPackageRelatedPackagesResponse

type GetRegistryPackageRelatedPackagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Package
}

func ParseGetRegistryPackageRelatedPackagesResponse

func ParseGetRegistryPackageRelatedPackagesResponse(rsp *http.Response) (*GetRegistryPackageRelatedPackagesResponse, error)

ParseGetRegistryPackageRelatedPackagesResponse parses an HTTP response from a GetRegistryPackageRelatedPackagesWithResponse call

func (GetRegistryPackageRelatedPackagesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackageRelatedPackagesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackageResponse

type GetRegistryPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Package
}

func ParseGetRegistryPackageResponse

func ParseGetRegistryPackageResponse(rsp *http.Response) (*GetRegistryPackageResponse, error)

ParseGetRegistryPackageResponse parses an HTTP response from a GetRegistryPackageWithResponse call

func (GetRegistryPackageResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackageResponse) StatusCode

func (r GetRegistryPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackageVersionResponse

type GetRegistryPackageVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Version
}

func ParseGetRegistryPackageVersionResponse

func ParseGetRegistryPackageVersionResponse(rsp *http.Response) (*GetRegistryPackageVersionResponse, error)

ParseGetRegistryPackageVersionResponse parses an HTTP response from a GetRegistryPackageVersionWithResponse call

func (GetRegistryPackageVersionResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackageVersionResponse) StatusCode

func (r GetRegistryPackageVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackageVersionsParams

type GetRegistryPackageVersionsParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// PublishedAfter filter by published_at after given time
	PublishedAfter *time.Time `form:"published_after,omitempty" json:"published_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryPackageVersionsParams defines parameters for GetRegistryPackageVersions.

type GetRegistryPackageVersionsResponse

type GetRegistryPackageVersionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Version
}

func ParseGetRegistryPackageVersionsResponse

func ParseGetRegistryPackageVersionsResponse(rsp *http.Response) (*GetRegistryPackageVersionsResponse, error)

ParseGetRegistryPackageVersionsResponse parses an HTTP response from a GetRegistryPackageVersionsWithResponse call

func (GetRegistryPackageVersionsResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackageVersionsResponse) StatusCode

func (r GetRegistryPackageVersionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryPackagesParams

type GetRegistryPackagesParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryPackagesParams defines parameters for GetRegistryPackages.

type GetRegistryPackagesResponse

type GetRegistryPackagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Package
}

func ParseGetRegistryPackagesResponse

func ParseGetRegistryPackagesResponse(rsp *http.Response) (*GetRegistryPackagesResponse, error)

ParseGetRegistryPackagesResponse parses an HTTP response from a GetRegistryPackagesWithResponse call

func (GetRegistryPackagesResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryPackagesResponse) StatusCode

func (r GetRegistryPackagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryParams

type GetRegistryParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetRegistryParams defines parameters for GetRegistry.

type GetRegistryRecentVersionsParams

type GetRegistryRecentVersionsParams struct {
	// Page pagination page number
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Number of records to return
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// CreatedAfter filter by created_at after given time
	CreatedAfter *time.Time `form:"created_after,omitempty" json:"created_after,omitempty"`

	// UpdatedAfter filter by updated_at after given time
	UpdatedAfter *time.Time `form:"updated_after,omitempty" json:"updated_after,omitempty"`

	// PublishedAfter filter by published_at after given time
	PublishedAfter *time.Time `form:"published_after,omitempty" json:"published_after,omitempty"`

	// Sort field to order results by
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Order direction to order results by
	Order *string `form:"order,omitempty" json:"order,omitempty"`
}

GetRegistryRecentVersionsParams defines parameters for GetRegistryRecentVersions.

type GetRegistryRecentVersionsResponse

type GetRegistryRecentVersionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]VersionWithPackage
}

func ParseGetRegistryRecentVersionsResponse

func ParseGetRegistryRecentVersionsResponse(rsp *http.Response) (*GetRegistryRecentVersionsResponse, error)

ParseGetRegistryRecentVersionsResponse parses an HTTP response from a GetRegistryRecentVersionsWithResponse call

func (GetRegistryRecentVersionsResponse) Status

Status returns HTTPResponse.Status

func (GetRegistryRecentVersionsResponse) StatusCode

func (r GetRegistryRecentVersionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistryResponse

type GetRegistryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Registry
}

func ParseGetRegistryResponse

func ParseGetRegistryResponse(rsp *http.Response) (*GetRegistryResponse, error)

ParseGetRegistryResponse parses an HTTP response from a GetRegistryWithResponse call

func (GetRegistryResponse) Status

func (r GetRegistryResponse) Status() string

Status returns HTTPResponse.Status

func (GetRegistryResponse) StatusCode

func (r GetRegistryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Keyword

type Keyword struct {
	Name          string `json:"name"`
	PackagesCount int    `json:"packages_count"`
	PackagesUrl   string `json:"packages_url"`
}

Keyword defines model for Keyword.

type KeywordWithPackages

type KeywordWithPackages struct {
	Name            string    `json:"name"`
	Packages        []Package `json:"packages"`
	PackagesCount   int       `json:"packages_count"`
	PackagesUrl     string    `json:"packages_url"`
	RelatedKeywords []Keyword `json:"related_keywords"`
}

KeywordWithPackages defines model for KeywordWithPackages.

type LookupPackageParams

type LookupPackageParams struct {
	// RepositoryUrl repository URL
	RepositoryUrl *string `form:"repository_url,omitempty" json:"repository_url,omitempty"`

	// Purl package URL
	Purl *string `form:"purl,omitempty" json:"purl,omitempty"`

	// Ecosystem ecosystem name
	Ecosystem *string `form:"ecosystem,omitempty" json:"ecosystem,omitempty"`

	// Name package name
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

LookupPackageParams defines parameters for LookupPackage.

type LookupPackageResponse

type LookupPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Package
}

func ParseLookupPackageResponse

func ParseLookupPackageResponse(rsp *http.Response) (*LookupPackageResponse, error)

ParseLookupPackageResponse parses an HTTP response from a LookupPackageWithResponse call

func (LookupPackageResponse) Status

func (r LookupPackageResponse) Status() string

Status returns HTTPResponse.Status

func (LookupPackageResponse) StatusCode

func (r LookupPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Maintainer

type Maintainer struct {
	CreatedAt     time.Time `json:"created_at"`
	Email         *string   `json:"email"`
	HtmlUrl       *string   `json:"html_url"`
	Login         *string   `json:"login"`
	Name          *string   `json:"name"`
	PackagesCount int       `json:"packages_count"`
	PackagesUrl   string    `json:"packages_url"`
	Role          *string   `json:"role"`
	UpdatedAt     time.Time `json:"updated_at"`
	Url           *string   `json:"url"`
	Uuid          string    `json:"uuid"`
}

Maintainer defines model for Maintainer.

type Namespace

type Namespace struct {
	Name          string `json:"name"`
	PackagesCount int    `json:"packages_count"`
	PackagesUrl   string `json:"packages_url"`
}

Namespace defines model for Namespace.

type Package

type Package struct {
	Advisories               []Advisory              `json:"advisories"`
	CreatedAt                time.Time               `json:"created_at"`
	DependentPackagesCount   int                     `json:"dependent_packages_count"`
	DependentPackagesUrl     string                  `json:"dependent_packages_url"`
	DependentReposCount      int                     `json:"dependent_repos_count"`
	Description              *string                 `json:"description"`
	DocumentationUrl         *string                 `json:"documentation_url"`
	Downloads                int                     `json:"downloads"`
	DownloadsPeriod          *string                 `json:"downloads_period"`
	Ecosystem                string                  `json:"ecosystem"`
	FirstReleasePublishedAt  *time.Time              `json:"first_release_published_at"`
	Homepage                 *string                 `json:"homepage"`
	InstallCommand           *string                 `json:"install_command"`
	KeywordsArray            []string                `json:"keywords_array"`
	LastSyncedAt             *time.Time              `json:"last_synced_at"`
	LatestReleaseNumber      *string                 `json:"latest_release_number"`
	LatestReleasePublishedAt *time.Time              `json:"latest_release_published_at"`
	Licenses                 *string                 `json:"licenses"`
	Maintainers              []Maintainer            `json:"maintainers"`
	Metadata                 *map[string]interface{} `json:"metadata"`
	Name                     string                  `json:"name"`
	Namespace                *string                 `json:"namespace"`
	NormalizedLicenses       []string                `json:"normalized_licenses"`
	Purl                     string                  `json:"purl"`
	Rankings                 map[string]interface{}  `json:"rankings"`
	RegistryUrl              *string                 `json:"registry_url"`
	RelatedPackagesUrl       string                  `json:"related_packages_url"`
	RepoMetadata             *map[string]interface{} `json:"repo_metadata"`
	RepoMetadataUpdatedAt    *time.Time              `json:"repo_metadata_updated_at"`
	RepositoryUrl            *string                 `json:"repository_url"`
	UpdatedAt                time.Time               `json:"updated_at"`
	VersionsCount            int                     `json:"versions_count"`
	VersionsUrl              string                  `json:"versions_url"`
}

Package defines model for Package.

type Registry

type Registry struct {
	CreatedAt        time.Time               `json:"created_at"`
	Default          bool                    `json:"default"`
	Ecosystem        string                  `json:"ecosystem"`
	Github           *string                 `json:"github"`
	IconUrl          string                  `json:"icon_url"`
	KeywordsCount    *int64                  `json:"keywords_count,omitempty"`
	MaintainersCount int64                   `json:"maintainers_count"`
	MaintainersUrl   string                  `json:"maintainers_url"`
	Metadata         *map[string]interface{} `json:"metadata"`
	Name             string                  `json:"name"`
	NamespacesCount  *int64                  `json:"namespaces_count,omitempty"`
	PackagesCount    int64                   `json:"packages_count"`
	PackagesUrl      string                  `json:"packages_url"`
	UpdatedAt        time.Time               `json:"updated_at"`
	Url              string                  `json:"url"`
}

Registry defines model for Registry.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Version

type Version struct {
	CreatedAt        time.Time               `json:"created_at"`
	Dependencies     []Dependency            `json:"dependencies"`
	DocumentationUrl *string                 `json:"documentation_url"`
	DownloadUrl      *string                 `json:"download_url"`
	InstallCommand   *string                 `json:"install_command"`
	Integrity        *string                 `json:"integrity"`
	Licenses         *string                 `json:"licenses"`
	Metadata         *map[string]interface{} `json:"metadata"`
	Number           string                  `json:"number"`
	PublishedAt      *string                 `json:"published_at"`
	Purl             string                  `json:"purl"`
	RegistryUrl      *string                 `json:"registry_url"`
	Status           *string                 `json:"status"`
	UpdatedAt        time.Time               `json:"updated_at"`
}

Version defines model for Version.

type VersionWithPackage

type VersionWithPackage struct {
	CreatedAt        time.Time               `json:"created_at"`
	Dependencies     []Dependency            `json:"dependencies"`
	DocumentationUrl *string                 `json:"documentation_url"`
	DownloadUrl      *string                 `json:"download_url"`
	InstallCommand   *string                 `json:"install_command"`
	Integrity        *string                 `json:"integrity"`
	Licenses         *string                 `json:"licenses"`
	Metadata         *map[string]interface{} `json:"metadata"`
	Number           string                  `json:"number"`
	Package          Package                 `json:"package"`
	PublishedAt      *string                 `json:"published_at"`
	Purl             string                  `json:"purl"`
	RegistryUrl      *string                 `json:"registry_url"`
	Status           *string                 `json:"status"`
	UpdatedAt        time.Time               `json:"updated_at"`
}

VersionWithPackage defines model for VersionWithPackage.

Jump to

Keyboard shortcuts

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