repos

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package repos 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 NewGetHostOwnerRepositoriesRequest

func NewGetHostOwnerRepositoriesRequest(server string, hostName string, ownerLogin string, params *GetHostOwnerRepositoriesParams) (*http.Request, error)

NewGetHostOwnerRepositoriesRequest generates requests for GetHostOwnerRepositories

func NewGetHostOwnerRequest

func NewGetHostOwnerRequest(server string, hostName string, ownerLogin string) (*http.Request, error)

NewGetHostOwnerRequest generates requests for GetHostOwner

func NewGetHostOwnersRequest

func NewGetHostOwnersRequest(server string, hostName string, params *GetHostOwnersParams) (*http.Request, error)

NewGetHostOwnersRequest generates requests for GetHostOwners

func NewGetHostRepositoriesRequest

func NewGetHostRepositoriesRequest(server string, hostName string, params *GetHostRepositoriesParams) (*http.Request, error)

NewGetHostRepositoriesRequest generates requests for GetHostRepositories

func NewGetHostRepositoryManifestsRequest

func NewGetHostRepositoryManifestsRequest(server string, hostName string, repositoryName string, params *GetHostRepositoryManifestsParams) (*http.Request, error)

NewGetHostRepositoryManifestsRequest generates requests for GetHostRepositoryManifests

func NewGetHostRepositoryNamesRequest

func NewGetHostRepositoryNamesRequest(server string, hostName string, params *GetHostRepositoryNamesParams) (*http.Request, error)

NewGetHostRepositoryNamesRequest generates requests for GetHostRepositoryNames

func NewGetHostRepositoryRequest

func NewGetHostRepositoryRequest(server string, hostName string, repositoryName string) (*http.Request, error)

NewGetHostRepositoryRequest generates requests for GetHostRepository

func NewGetHostRepositoryTagsRequest

func NewGetHostRepositoryTagsRequest(server string, hostName string, repositoryName string, params *GetHostRepositoryTagsParams) (*http.Request, error)

NewGetHostRepositoryTagsRequest generates requests for GetHostRepositoryTags

func NewGetHostRequest

func NewGetHostRequest(server string, hostName string, params *GetHostParams) (*http.Request, error)

NewGetHostRequest generates requests for GetHost

func NewGetRegistriesRequest

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

NewGetRegistriesRequest generates requests for GetRegistries

func NewRepositoriesLookupRequest

func NewRepositoriesLookupRequest(server string, params *RepositoriesLookupParams) (*http.Request, error)

NewRepositoriesLookupRequest generates requests for RepositoriesLookup

func NewTopicRequest

func NewTopicRequest(server string, topic string, params *TopicParams) (*http.Request, error)

NewTopicRequest generates requests for Topic

func NewTopicsRequest

func NewTopicsRequest(server string, params *TopicsParams) (*http.Request, error)

NewTopicsRequest generates requests for Topics

func NewUsageEcosystemRequest

func NewUsageEcosystemRequest(server string, ecosystem string) (*http.Request, error)

NewUsageEcosystemRequest generates requests for UsageEcosystem

func NewUsagePackageRequest

func NewUsagePackageRequest(server string, ecosystem string, pPackage string) (*http.Request, error)

NewUsagePackageRequest generates requests for UsagePackage

func NewUsageRequest

func NewUsageRequest(server string) (*http.Request, error)

NewUsageRequest generates requests for Usage

Types

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) GetHost

func (c *Client) GetHost(ctx context.Context, hostName string, params *GetHostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostOwner

func (c *Client) GetHostOwner(ctx context.Context, hostName string, ownerLogin string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostOwnerRepositories

func (c *Client) GetHostOwnerRepositories(ctx context.Context, hostName string, ownerLogin string, params *GetHostOwnerRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostOwners

func (c *Client) GetHostOwners(ctx context.Context, hostName string, params *GetHostOwnersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostRepositories

func (c *Client) GetHostRepositories(ctx context.Context, hostName string, params *GetHostRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostRepository

func (c *Client) GetHostRepository(ctx context.Context, hostName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostRepositoryManifests

func (c *Client) GetHostRepositoryManifests(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryManifestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostRepositoryNames

func (c *Client) GetHostRepositoryNames(ctx context.Context, hostName string, params *GetHostRepositoryNamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHostRepositoryTags

func (c *Client) GetHostRepositoryTags(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistries

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

func (*Client) RepositoriesLookup

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

func (*Client) Topic

func (c *Client) Topic(ctx context.Context, topic string, params *TopicParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Topics

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

func (*Client) Usage

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

func (*Client) UsageEcosystem

func (c *Client) UsageEcosystem(ctx context.Context, ecosystem string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UsagePackage

func (c *Client) UsagePackage(ctx context.Context, ecosystem string, pPackage string, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

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

	// GetHost request
	GetHost(ctx context.Context, hostName string, params *GetHostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostOwners request
	GetHostOwners(ctx context.Context, hostName string, params *GetHostOwnersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostOwner request
	GetHostOwner(ctx context.Context, hostName string, ownerLogin string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostOwnerRepositories request
	GetHostOwnerRepositories(ctx context.Context, hostName string, ownerLogin string, params *GetHostOwnerRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostRepositories request
	GetHostRepositories(ctx context.Context, hostName string, params *GetHostRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostRepository request
	GetHostRepository(ctx context.Context, hostName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostRepositoryManifests request
	GetHostRepositoryManifests(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryManifestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostRepositoryTags request
	GetHostRepositoryTags(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHostRepositoryNames request
	GetHostRepositoryNames(ctx context.Context, hostName string, params *GetHostRepositoryNamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// Topic request
	Topic(ctx context.Context, topic string, params *TopicParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Usage request
	Usage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UsageEcosystem request
	UsageEcosystem(ctx context.Context, ecosystem string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UsagePackage request
	UsagePackage(ctx context.Context, ecosystem string, pPackage string, 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) GetHostOwnerRepositoriesWithResponse

func (c *ClientWithResponses) GetHostOwnerRepositoriesWithResponse(ctx context.Context, hostName string, ownerLogin string, params *GetHostOwnerRepositoriesParams, reqEditors ...RequestEditorFn) (*GetHostOwnerRepositoriesResponse, error)

GetHostOwnerRepositoriesWithResponse request returning *GetHostOwnerRepositoriesResponse

func (*ClientWithResponses) GetHostOwnerWithResponse

func (c *ClientWithResponses) GetHostOwnerWithResponse(ctx context.Context, hostName string, ownerLogin string, reqEditors ...RequestEditorFn) (*GetHostOwnerResponse, error)

GetHostOwnerWithResponse request returning *GetHostOwnerResponse

func (*ClientWithResponses) GetHostOwnersWithResponse

func (c *ClientWithResponses) GetHostOwnersWithResponse(ctx context.Context, hostName string, params *GetHostOwnersParams, reqEditors ...RequestEditorFn) (*GetHostOwnersResponse, error)

GetHostOwnersWithResponse request returning *GetHostOwnersResponse

func (*ClientWithResponses) GetHostRepositoriesWithResponse

func (c *ClientWithResponses) GetHostRepositoriesWithResponse(ctx context.Context, hostName string, params *GetHostRepositoriesParams, reqEditors ...RequestEditorFn) (*GetHostRepositoriesResponse, error)

GetHostRepositoriesWithResponse request returning *GetHostRepositoriesResponse

func (*ClientWithResponses) GetHostRepositoryManifestsWithResponse

func (c *ClientWithResponses) GetHostRepositoryManifestsWithResponse(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryManifestsParams, reqEditors ...RequestEditorFn) (*GetHostRepositoryManifestsResponse, error)

GetHostRepositoryManifestsWithResponse request returning *GetHostRepositoryManifestsResponse

func (*ClientWithResponses) GetHostRepositoryNamesWithResponse

func (c *ClientWithResponses) GetHostRepositoryNamesWithResponse(ctx context.Context, hostName string, params *GetHostRepositoryNamesParams, reqEditors ...RequestEditorFn) (*GetHostRepositoryNamesResponse, error)

GetHostRepositoryNamesWithResponse request returning *GetHostRepositoryNamesResponse

func (*ClientWithResponses) GetHostRepositoryTagsWithResponse

func (c *ClientWithResponses) GetHostRepositoryTagsWithResponse(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryTagsParams, reqEditors ...RequestEditorFn) (*GetHostRepositoryTagsResponse, error)

GetHostRepositoryTagsWithResponse request returning *GetHostRepositoryTagsResponse

func (*ClientWithResponses) GetHostRepositoryWithResponse

func (c *ClientWithResponses) GetHostRepositoryWithResponse(ctx context.Context, hostName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetHostRepositoryResponse, error)

GetHostRepositoryWithResponse request returning *GetHostRepositoryResponse

func (*ClientWithResponses) GetHostWithResponse

func (c *ClientWithResponses) GetHostWithResponse(ctx context.Context, hostName string, params *GetHostParams, reqEditors ...RequestEditorFn) (*GetHostResponse, error)

GetHostWithResponse request returning *GetHostResponse

func (*ClientWithResponses) GetRegistriesWithResponse

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

GetRegistriesWithResponse request returning *GetRegistriesResponse

func (*ClientWithResponses) RepositoriesLookupWithResponse

func (c *ClientWithResponses) RepositoriesLookupWithResponse(ctx context.Context, params *RepositoriesLookupParams, reqEditors ...RequestEditorFn) (*RepositoriesLookupResponse, error)

RepositoriesLookupWithResponse request returning *RepositoriesLookupResponse

func (*ClientWithResponses) TopicWithResponse

func (c *ClientWithResponses) TopicWithResponse(ctx context.Context, topic string, params *TopicParams, reqEditors ...RequestEditorFn) (*TopicResponse, error)

TopicWithResponse request returning *TopicResponse

func (*ClientWithResponses) TopicsWithResponse

func (c *ClientWithResponses) TopicsWithResponse(ctx context.Context, params *TopicsParams, reqEditors ...RequestEditorFn) (*TopicsResponse, error)

TopicsWithResponse request returning *TopicsResponse

func (*ClientWithResponses) UsageEcosystemWithResponse

func (c *ClientWithResponses) UsageEcosystemWithResponse(ctx context.Context, ecosystem string, reqEditors ...RequestEditorFn) (*UsageEcosystemResponse, error)

UsageEcosystemWithResponse request returning *UsageEcosystemResponse

func (*ClientWithResponses) UsagePackageWithResponse

func (c *ClientWithResponses) UsagePackageWithResponse(ctx context.Context, ecosystem string, pPackage string, reqEditors ...RequestEditorFn) (*UsagePackageResponse, error)

UsagePackageWithResponse request returning *UsagePackageResponse

func (*ClientWithResponses) UsageWithResponse

func (c *ClientWithResponses) UsageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsageResponse, error)

UsageWithResponse request returning *UsageResponse

type ClientWithResponsesInterface

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

	// GetHost request
	GetHostWithResponse(ctx context.Context, hostName string, params *GetHostParams, reqEditors ...RequestEditorFn) (*GetHostResponse, error)

	// GetHostOwners request
	GetHostOwnersWithResponse(ctx context.Context, hostName string, params *GetHostOwnersParams, reqEditors ...RequestEditorFn) (*GetHostOwnersResponse, error)

	// GetHostOwner request
	GetHostOwnerWithResponse(ctx context.Context, hostName string, ownerLogin string, reqEditors ...RequestEditorFn) (*GetHostOwnerResponse, error)

	// GetHostOwnerRepositories request
	GetHostOwnerRepositoriesWithResponse(ctx context.Context, hostName string, ownerLogin string, params *GetHostOwnerRepositoriesParams, reqEditors ...RequestEditorFn) (*GetHostOwnerRepositoriesResponse, error)

	// GetHostRepositories request
	GetHostRepositoriesWithResponse(ctx context.Context, hostName string, params *GetHostRepositoriesParams, reqEditors ...RequestEditorFn) (*GetHostRepositoriesResponse, error)

	// GetHostRepository request
	GetHostRepositoryWithResponse(ctx context.Context, hostName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetHostRepositoryResponse, error)

	// GetHostRepositoryManifests request
	GetHostRepositoryManifestsWithResponse(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryManifestsParams, reqEditors ...RequestEditorFn) (*GetHostRepositoryManifestsResponse, error)

	// GetHostRepositoryTags request
	GetHostRepositoryTagsWithResponse(ctx context.Context, hostName string, repositoryName string, params *GetHostRepositoryTagsParams, reqEditors ...RequestEditorFn) (*GetHostRepositoryTagsResponse, error)

	// GetHostRepositoryNames request
	GetHostRepositoryNamesWithResponse(ctx context.Context, hostName string, params *GetHostRepositoryNamesParams, reqEditors ...RequestEditorFn) (*GetHostRepositoryNamesResponse, error)

	// RepositoriesLookup request
	RepositoriesLookupWithResponse(ctx context.Context, params *RepositoriesLookupParams, reqEditors ...RequestEditorFn) (*RepositoriesLookupResponse, error)

	// Topics request
	TopicsWithResponse(ctx context.Context, params *TopicsParams, reqEditors ...RequestEditorFn) (*TopicsResponse, error)

	// Topic request
	TopicWithResponse(ctx context.Context, topic string, params *TopicParams, reqEditors ...RequestEditorFn) (*TopicResponse, error)

	// Usage request
	UsageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsageResponse, error)

	// UsageEcosystem request
	UsageEcosystemWithResponse(ctx context.Context, ecosystem string, reqEditors ...RequestEditorFn) (*UsageEcosystemResponse, error)

	// UsagePackage request
	UsagePackageWithResponse(ctx context.Context, ecosystem string, pPackage string, reqEditors ...RequestEditorFn) (*UsagePackageResponse, error)
}

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

type Dependency

type Dependency struct {
	Direct       *bool   `json:"direct,omitempty"`
	Ecosystem    *string `json:"ecosystem,omitempty"`
	Id           *int    `json:"id,omitempty"`
	Kind         *string `json:"kind,omitempty"`
	Optional     *bool   `json:"optional,omitempty"`
	PackageName  *string `json:"package_name,omitempty"`
	Requirements *string `json:"requirements,omitempty"`
}

Dependency defines model for Dependency.

type Ecosystem

type Ecosystem struct {
	EcosystemUrl  *string `json:"ecosystem_url,omitempty"`
	Name          *string `json:"name,omitempty"`
	PackagesCount *int    `json:"packages_count,omitempty"`
}

Ecosystem defines model for Ecosystem.

type GetHostOwnerRepositoriesParams

type GetHostOwnerRepositoriesParams 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"`
}

GetHostOwnerRepositoriesParams defines parameters for GetHostOwnerRepositories.

type GetHostOwnerRepositoriesResponse

type GetHostOwnerRepositoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Repository
}

func ParseGetHostOwnerRepositoriesResponse

func ParseGetHostOwnerRepositoriesResponse(rsp *http.Response) (*GetHostOwnerRepositoriesResponse, error)

ParseGetHostOwnerRepositoriesResponse parses an HTTP response from a GetHostOwnerRepositoriesWithResponse call

func (GetHostOwnerRepositoriesResponse) Status

Status returns HTTPResponse.Status

func (GetHostOwnerRepositoriesResponse) StatusCode

func (r GetHostOwnerRepositoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostOwnerResponse

type GetHostOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Owner
}

func ParseGetHostOwnerResponse

func ParseGetHostOwnerResponse(rsp *http.Response) (*GetHostOwnerResponse, error)

ParseGetHostOwnerResponse parses an HTTP response from a GetHostOwnerWithResponse call

func (GetHostOwnerResponse) Status

func (r GetHostOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (GetHostOwnerResponse) StatusCode

func (r GetHostOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostOwnersParams

type GetHostOwnersParams 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"`
}

GetHostOwnersParams defines parameters for GetHostOwners.

type GetHostOwnersResponse

type GetHostOwnersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Owner
}

func ParseGetHostOwnersResponse

func ParseGetHostOwnersResponse(rsp *http.Response) (*GetHostOwnersResponse, error)

ParseGetHostOwnersResponse parses an HTTP response from a GetHostOwnersWithResponse call

func (GetHostOwnersResponse) Status

func (r GetHostOwnersResponse) Status() string

Status returns HTTPResponse.Status

func (GetHostOwnersResponse) StatusCode

func (r GetHostOwnersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostParams

type GetHostParams 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"`
}

GetHostParams defines parameters for GetHost.

type GetHostRepositoriesParams

type GetHostRepositoriesParams 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"`
}

GetHostRepositoriesParams defines parameters for GetHostRepositories.

type GetHostRepositoriesResponse

type GetHostRepositoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Repository
}

func ParseGetHostRepositoriesResponse

func ParseGetHostRepositoriesResponse(rsp *http.Response) (*GetHostRepositoriesResponse, error)

ParseGetHostRepositoriesResponse parses an HTTP response from a GetHostRepositoriesWithResponse call

func (GetHostRepositoriesResponse) Status

Status returns HTTPResponse.Status

func (GetHostRepositoriesResponse) StatusCode

func (r GetHostRepositoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostRepositoryManifestsParams

type GetHostRepositoryManifestsParams 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"`
}

GetHostRepositoryManifestsParams defines parameters for GetHostRepositoryManifests.

type GetHostRepositoryManifestsResponse

type GetHostRepositoryManifestsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Manifest
}

func ParseGetHostRepositoryManifestsResponse

func ParseGetHostRepositoryManifestsResponse(rsp *http.Response) (*GetHostRepositoryManifestsResponse, error)

ParseGetHostRepositoryManifestsResponse parses an HTTP response from a GetHostRepositoryManifestsWithResponse call

func (GetHostRepositoryManifestsResponse) Status

Status returns HTTPResponse.Status

func (GetHostRepositoryManifestsResponse) StatusCode

func (r GetHostRepositoryManifestsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostRepositoryNamesParams

type GetHostRepositoryNamesParams 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"`
}

GetHostRepositoryNamesParams defines parameters for GetHostRepositoryNames.

type GetHostRepositoryNamesResponse

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

func ParseGetHostRepositoryNamesResponse

func ParseGetHostRepositoryNamesResponse(rsp *http.Response) (*GetHostRepositoryNamesResponse, error)

ParseGetHostRepositoryNamesResponse parses an HTTP response from a GetHostRepositoryNamesWithResponse call

func (GetHostRepositoryNamesResponse) Status

Status returns HTTPResponse.Status

func (GetHostRepositoryNamesResponse) StatusCode

func (r GetHostRepositoryNamesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostRepositoryResponse

type GetHostRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Repository
}

func ParseGetHostRepositoryResponse

func ParseGetHostRepositoryResponse(rsp *http.Response) (*GetHostRepositoryResponse, error)

ParseGetHostRepositoryResponse parses an HTTP response from a GetHostRepositoryWithResponse call

func (GetHostRepositoryResponse) Status

func (r GetHostRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetHostRepositoryResponse) StatusCode

func (r GetHostRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostRepositoryTagsParams

type GetHostRepositoryTagsParams 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"`
}

GetHostRepositoryTagsParams defines parameters for GetHostRepositoryTags.

type GetHostRepositoryTagsResponse

type GetHostRepositoryTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Tag
}

func ParseGetHostRepositoryTagsResponse

func ParseGetHostRepositoryTagsResponse(rsp *http.Response) (*GetHostRepositoryTagsResponse, error)

ParseGetHostRepositoryTagsResponse parses an HTTP response from a GetHostRepositoryTagsWithResponse call

func (GetHostRepositoryTagsResponse) Status

Status returns HTTPResponse.Status

func (GetHostRepositoryTagsResponse) StatusCode

func (r GetHostRepositoryTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostResponse

type GetHostResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Host
}

func ParseGetHostResponse

func ParseGetHostResponse(rsp *http.Response) (*GetHostResponse, error)

ParseGetHostResponse parses an HTTP response from a GetHostWithResponse call

func (GetHostResponse) Status

func (r GetHostResponse) Status() string

Status returns HTTPResponse.Status

func (GetHostResponse) StatusCode

func (r GetHostResponse) 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      *[]Host
}

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 Host

type Host struct {
	HostUrl            *string `json:"host_url,omitempty"`
	IconUrl            *string `json:"icon_url,omitempty"`
	Kind               *string `json:"kind,omitempty"`
	Name               *string `json:"name,omitempty"`
	OwnersCount        *int    `json:"owners_count,omitempty"`
	OwnersUrl          *string `json:"owners_url,omitempty"`
	RepositoriesCount  *int    `json:"repositories_count,omitempty"`
	RepositorisUrl     *string `json:"repositoris_url,omitempty"`
	RepositoryNamesUrl *string `json:"repository_names_url,omitempty"`
	Url                *string `json:"url,omitempty"`
}

Host defines model for Host.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Manifest

type Manifest struct {
	CreatedAt      *time.Time    `json:"created_at,omitempty"`
	Dependencies   *[]Dependency `json:"dependencies,omitempty"`
	Ecosystem      *string       `json:"ecosystem,omitempty"`
	Filepath       *string       `json:"filepath,omitempty"`
	Kind           *string       `json:"kind,omitempty"`
	RepositoryLink *string       `json:"repository_link,omitempty"`
	Sha            *string       `json:"sha,omitempty"`
	UpdatedAt      *time.Time    `json:"updated_at,omitempty"`
}

Manifest defines model for Manifest.

type Owner

type Owner struct {
	Company           *string                 `json:"company,omitempty"`
	CreatedAt         *time.Time              `json:"created_at,omitempty"`
	Description       *string                 `json:"description,omitempty"`
	Email             *string                 `json:"email,omitempty"`
	HtmlUrl           *string                 `json:"html_url,omitempty"`
	IconUrl           *string                 `json:"icon_url,omitempty"`
	Kind              *string                 `json:"kind,omitempty"`
	LastSyncedAt      *time.Time              `json:"last_synced_at,omitempty"`
	Location          *string                 `json:"location,omitempty"`
	Login             *string                 `json:"login,omitempty"`
	Metadata          *map[string]interface{} `json:"metadata,omitempty"`
	Name              *string                 `json:"name,omitempty"`
	OwnerUrl          *string                 `json:"owner_url,omitempty"`
	RepositoriesCount *int                    `json:"repositories_count,omitempty"`
	RepositoriesUrl   *string                 `json:"repositories_url,omitempty"`
	Twitter           *string                 `json:"twitter,omitempty"`
	UpdatedAt         *time.Time              `json:"updated_at,omitempty"`
	Uuid              *string                 `json:"uuid,omitempty"`
	Website           *string                 `json:"website,omitempty"`
}

Owner defines model for Owner.

type PackageUsage

type PackageUsage struct {
	DependenciesUrl *string                 `json:"dependencies_url,omitempty"`
	DependentsCount *int                    `json:"dependents_count,omitempty"`
	Direct          *map[string]interface{} `json:"direct,omitempty"`
	Ecosystem       *string                 `json:"ecosystem,omitempty"`
	Kind            *map[string]interface{} `json:"kind,omitempty"`
	Name            *string                 `json:"name,omitempty"`
	PackageUsageUrl *string                 `json:"package_usage_url,omitempty"`
	Requirements    *map[string]interface{} `json:"requirements,omitempty"`
}

PackageUsage defines model for PackageUsage.

type RepositoriesLookupParams

type RepositoriesLookupParams struct {
	// Url The URL of the repository to lookup
	Url string `form:"url" json:"url"`
}

RepositoriesLookupParams defines parameters for RepositoriesLookup.

type RepositoriesLookupResponse

type RepositoriesLookupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Repository
}

func ParseRepositoriesLookupResponse

func ParseRepositoriesLookupResponse(rsp *http.Response) (*RepositoriesLookupResponse, error)

ParseRepositoriesLookupResponse parses an HTTP response from a RepositoriesLookupWithResponse call

func (RepositoriesLookupResponse) Status

Status returns HTTPResponse.Status

func (RepositoriesLookupResponse) StatusCode

func (r RepositoriesLookupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Repository

type Repository struct {
	Archived             *bool                   `json:"archived,omitempty"`
	CommitStats          *map[string]interface{} `json:"commit_stats,omitempty"`
	CreatedAt            *time.Time              `json:"created_at,omitempty"`
	DefaultBranch        *string                 `json:"default_branch,omitempty"`
	DependenciesParsedAt *time.Time              `json:"dependencies_parsed_at,omitempty"`
	DependencyJobId      *string                 `json:"dependency_job_id,omitempty"`
	Description          *string                 `json:"description,omitempty"`
	Etag                 *string                 `json:"etag,omitempty"`
	Fork                 *bool                   `json:"fork,omitempty"`
	ForksCount           *int                    `json:"forks_count,omitempty"`
	FullName             *string                 `json:"full_name,omitempty"`
	HasIssues            *bool                   `json:"has_issues,omitempty"`
	HasPages             *bool                   `json:"has_pages,omitempty"`
	HasWiki              *bool                   `json:"has_wiki,omitempty"`
	Homepage             *string                 `json:"homepage,omitempty"`
	Host                 *Host                   `json:"host,omitempty"`
	HtmlUrl              *string                 `json:"html_url,omitempty"`
	IconUrl              *string                 `json:"icon_url,omitempty"`
	Language             *string                 `json:"language,omitempty"`
	LastSyncedAt         *time.Time              `json:"last_synced_at,omitempty"`
	LatestCommitSha      *string                 `json:"latest_commit_sha,omitempty"`
	License              *string                 `json:"license,omitempty"`
	ManifestsUrl         *string                 `json:"manifests_url,omitempty"`
	Metadata             *map[string]interface{} `json:"metadata,omitempty"`
	MirrorUrl            *string                 `json:"mirror_url,omitempty"`
	OpenIssuesCount      *int                    `json:"open_issues_count,omitempty"`
	Owner                *string                 `json:"owner,omitempty"`
	OwnerUrl             *string                 `json:"owner_url,omitempty"`
	PullRequestsEnabled  *bool                   `json:"pull_requests_enabled,omitempty"`
	PushedAt             *time.Time              `json:"pushed_at,omitempty"`
	RepositoryUrl        *string                 `json:"repository_url,omitempty"`
	Scm                  *string                 `json:"scm,omitempty"`
	Size                 *int                    `json:"size,omitempty"`
	SourceName           *string                 `json:"source_name,omitempty"`
	StargazersCount      *int                    `json:"stargazers_count,omitempty"`
	Status               *string                 `json:"status,omitempty"`
	SubscribersCount     *int                    `json:"subscribers_count,omitempty"`
	TagsUrl              *string                 `json:"tags_url,omitempty"`
	Topics               *[]string               `json:"topics,omitempty"`
	UpdatedAt            *time.Time              `json:"updated_at,omitempty"`
	Uuid                 *string                 `json:"uuid,omitempty"`
}

Repository defines model for Repository.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type Tag

type Tag struct {
	DownloadUrl *string    `json:"download_url,omitempty"`
	HtmlUrl     *string    `json:"html_url,omitempty"`
	Kind        *string    `json:"kind,omitempty"`
	Name        *string    `json:"name,omitempty"`
	PublishedAt *time.Time `json:"published_at,omitempty"`
	Sha         *string    `json:"sha,omitempty"`
}

Tag defines model for Tag.

type Topic

type Topic struct {
	Name              *string `json:"name,omitempty"`
	RepositoriesCount *int    `json:"repositories_count,omitempty"`
	TopicUrl          *string `json:"topic_url,omitempty"`
}

Topic defines model for Topic.

type TopicParams

type TopicParams 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"`
}

TopicParams defines parameters for Topic.

type TopicResponse

type TopicResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TopicWithRepositories
}

func ParseTopicResponse

func ParseTopicResponse(rsp *http.Response) (*TopicResponse, error)

ParseTopicResponse parses an HTTP response from a TopicWithResponse call

func (TopicResponse) Status

func (r TopicResponse) Status() string

Status returns HTTPResponse.Status

func (TopicResponse) StatusCode

func (r TopicResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TopicWithRepositories

type TopicWithRepositories struct {
	Name              *string       `json:"name,omitempty"`
	RelatedTopics     *[]Topic      `json:"related_topics,omitempty"`
	Repositories      *[]Repository `json:"repositories,omitempty"`
	RepositoriesCount *int          `json:"repositories_count,omitempty"`
	TopicUrl          *string       `json:"topic_url,omitempty"`
}

TopicWithRepositories defines model for TopicWithRepositories.

type TopicsParams

type TopicsParams 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"`
}

TopicsParams defines parameters for Topics.

type TopicsResponse

type TopicsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Topic
}

func ParseTopicsResponse

func ParseTopicsResponse(rsp *http.Response) (*TopicsResponse, error)

ParseTopicsResponse parses an HTTP response from a TopicsWithResponse call

func (TopicsResponse) Status

func (r TopicsResponse) Status() string

Status returns HTTPResponse.Status

func (TopicsResponse) StatusCode

func (r TopicsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageEcosystemResponse

type UsageEcosystemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]PackageUsage
}

func ParseUsageEcosystemResponse

func ParseUsageEcosystemResponse(rsp *http.Response) (*UsageEcosystemResponse, error)

ParseUsageEcosystemResponse parses an HTTP response from a UsageEcosystemWithResponse call

func (UsageEcosystemResponse) Status

func (r UsageEcosystemResponse) Status() string

Status returns HTTPResponse.Status

func (UsageEcosystemResponse) StatusCode

func (r UsageEcosystemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsagePackageResponse

type UsagePackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PackageUsage
}

func ParseUsagePackageResponse

func ParseUsagePackageResponse(rsp *http.Response) (*UsagePackageResponse, error)

ParseUsagePackageResponse parses an HTTP response from a UsagePackageWithResponse call

func (UsagePackageResponse) Status

func (r UsagePackageResponse) Status() string

Status returns HTTPResponse.Status

func (UsagePackageResponse) StatusCode

func (r UsagePackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageResponse

type UsageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Ecosystem
}

func ParseUsageResponse

func ParseUsageResponse(rsp *http.Response) (*UsageResponse, error)

ParseUsageResponse parses an HTTP response from a UsageWithResponse call

func (UsageResponse) Status

func (r UsageResponse) Status() string

Status returns HTTPResponse.Status

func (UsageResponse) StatusCode

func (r UsageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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