Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptTextHTML(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeTextPlain(r *runtime.ClientOperation)
- type Client
- func (a *Client) DeletePackage(params *DeletePackageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePackageNoContent, error)
- func (a *Client) GetPackage(params *GetPackageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPackageOK, error)
- func (a *Client) ListPackageFiles(params *ListPackageFilesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPackageFilesOK, error)
- func (a *Client) ListPackages(params *ListPackagesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPackagesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeletePackageNoContent
- func (o *DeletePackageNoContent) Code() int
- func (o *DeletePackageNoContent) Error() string
- func (o *DeletePackageNoContent) IsClientError() bool
- func (o *DeletePackageNoContent) IsCode(code int) bool
- func (o *DeletePackageNoContent) IsRedirect() bool
- func (o *DeletePackageNoContent) IsServerError() bool
- func (o *DeletePackageNoContent) IsSuccess() bool
- func (o *DeletePackageNoContent) String() string
- type DeletePackageNotFound
- func (o *DeletePackageNotFound) Code() int
- func (o *DeletePackageNotFound) Error() string
- func (o *DeletePackageNotFound) IsClientError() bool
- func (o *DeletePackageNotFound) IsCode(code int) bool
- func (o *DeletePackageNotFound) IsRedirect() bool
- func (o *DeletePackageNotFound) IsServerError() bool
- func (o *DeletePackageNotFound) IsSuccess() bool
- func (o *DeletePackageNotFound) String() string
- type DeletePackageParams
- func (o *DeletePackageParams) SetContext(ctx context.Context)
- func (o *DeletePackageParams) SetDefaults()
- func (o *DeletePackageParams) SetHTTPClient(client *http.Client)
- func (o *DeletePackageParams) SetName(name string)
- func (o *DeletePackageParams) SetOwner(owner string)
- func (o *DeletePackageParams) SetTimeout(timeout time.Duration)
- func (o *DeletePackageParams) SetType(typeVar string)
- func (o *DeletePackageParams) SetVersion(version string)
- func (o *DeletePackageParams) WithContext(ctx context.Context) *DeletePackageParams
- func (o *DeletePackageParams) WithDefaults() *DeletePackageParams
- func (o *DeletePackageParams) WithHTTPClient(client *http.Client) *DeletePackageParams
- func (o *DeletePackageParams) WithName(name string) *DeletePackageParams
- func (o *DeletePackageParams) WithOwner(owner string) *DeletePackageParams
- func (o *DeletePackageParams) WithTimeout(timeout time.Duration) *DeletePackageParams
- func (o *DeletePackageParams) WithType(typeVar string) *DeletePackageParams
- func (o *DeletePackageParams) WithVersion(version string) *DeletePackageParams
- func (o *DeletePackageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePackageReader
- type GetPackageNotFound
- func (o *GetPackageNotFound) Code() int
- func (o *GetPackageNotFound) Error() string
- func (o *GetPackageNotFound) IsClientError() bool
- func (o *GetPackageNotFound) IsCode(code int) bool
- func (o *GetPackageNotFound) IsRedirect() bool
- func (o *GetPackageNotFound) IsServerError() bool
- func (o *GetPackageNotFound) IsSuccess() bool
- func (o *GetPackageNotFound) String() string
- type GetPackageOK
- func (o *GetPackageOK) Code() int
- func (o *GetPackageOK) Error() string
- func (o *GetPackageOK) GetPayload() *models.Package
- func (o *GetPackageOK) IsClientError() bool
- func (o *GetPackageOK) IsCode(code int) bool
- func (o *GetPackageOK) IsRedirect() bool
- func (o *GetPackageOK) IsServerError() bool
- func (o *GetPackageOK) IsSuccess() bool
- func (o *GetPackageOK) String() string
- type GetPackageParams
- func (o *GetPackageParams) SetContext(ctx context.Context)
- func (o *GetPackageParams) SetDefaults()
- func (o *GetPackageParams) SetHTTPClient(client *http.Client)
- func (o *GetPackageParams) SetName(name string)
- func (o *GetPackageParams) SetOwner(owner string)
- func (o *GetPackageParams) SetTimeout(timeout time.Duration)
- func (o *GetPackageParams) SetType(typeVar string)
- func (o *GetPackageParams) SetVersion(version string)
- func (o *GetPackageParams) WithContext(ctx context.Context) *GetPackageParams
- func (o *GetPackageParams) WithDefaults() *GetPackageParams
- func (o *GetPackageParams) WithHTTPClient(client *http.Client) *GetPackageParams
- func (o *GetPackageParams) WithName(name string) *GetPackageParams
- func (o *GetPackageParams) WithOwner(owner string) *GetPackageParams
- func (o *GetPackageParams) WithTimeout(timeout time.Duration) *GetPackageParams
- func (o *GetPackageParams) WithType(typeVar string) *GetPackageParams
- func (o *GetPackageParams) WithVersion(version string) *GetPackageParams
- func (o *GetPackageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPackageReader
- type ListPackageFilesNotFound
- func (o *ListPackageFilesNotFound) Code() int
- func (o *ListPackageFilesNotFound) Error() string
- func (o *ListPackageFilesNotFound) IsClientError() bool
- func (o *ListPackageFilesNotFound) IsCode(code int) bool
- func (o *ListPackageFilesNotFound) IsRedirect() bool
- func (o *ListPackageFilesNotFound) IsServerError() bool
- func (o *ListPackageFilesNotFound) IsSuccess() bool
- func (o *ListPackageFilesNotFound) String() string
- type ListPackageFilesOK
- func (o *ListPackageFilesOK) Code() int
- func (o *ListPackageFilesOK) Error() string
- func (o *ListPackageFilesOK) GetPayload() []*models.PackageFile
- func (o *ListPackageFilesOK) IsClientError() bool
- func (o *ListPackageFilesOK) IsCode(code int) bool
- func (o *ListPackageFilesOK) IsRedirect() bool
- func (o *ListPackageFilesOK) IsServerError() bool
- func (o *ListPackageFilesOK) IsSuccess() bool
- func (o *ListPackageFilesOK) String() string
- type ListPackageFilesParams
- func NewListPackageFilesParams() *ListPackageFilesParams
- func NewListPackageFilesParamsWithContext(ctx context.Context) *ListPackageFilesParams
- func NewListPackageFilesParamsWithHTTPClient(client *http.Client) *ListPackageFilesParams
- func NewListPackageFilesParamsWithTimeout(timeout time.Duration) *ListPackageFilesParams
- func (o *ListPackageFilesParams) SetContext(ctx context.Context)
- func (o *ListPackageFilesParams) SetDefaults()
- func (o *ListPackageFilesParams) SetHTTPClient(client *http.Client)
- func (o *ListPackageFilesParams) SetName(name string)
- func (o *ListPackageFilesParams) SetOwner(owner string)
- func (o *ListPackageFilesParams) SetTimeout(timeout time.Duration)
- func (o *ListPackageFilesParams) SetType(typeVar string)
- func (o *ListPackageFilesParams) SetVersion(version string)
- func (o *ListPackageFilesParams) WithContext(ctx context.Context) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithDefaults() *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithHTTPClient(client *http.Client) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithName(name string) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithOwner(owner string) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithTimeout(timeout time.Duration) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithType(typeVar string) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WithVersion(version string) *ListPackageFilesParams
- func (o *ListPackageFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPackageFilesReader
- type ListPackagesNotFound
- func (o *ListPackagesNotFound) Code() int
- func (o *ListPackagesNotFound) Error() string
- func (o *ListPackagesNotFound) IsClientError() bool
- func (o *ListPackagesNotFound) IsCode(code int) bool
- func (o *ListPackagesNotFound) IsRedirect() bool
- func (o *ListPackagesNotFound) IsServerError() bool
- func (o *ListPackagesNotFound) IsSuccess() bool
- func (o *ListPackagesNotFound) String() string
- type ListPackagesOK
- func (o *ListPackagesOK) Code() int
- func (o *ListPackagesOK) Error() string
- func (o *ListPackagesOK) GetPayload() []*models.Package
- func (o *ListPackagesOK) IsClientError() bool
- func (o *ListPackagesOK) IsCode(code int) bool
- func (o *ListPackagesOK) IsRedirect() bool
- func (o *ListPackagesOK) IsServerError() bool
- func (o *ListPackagesOK) IsSuccess() bool
- func (o *ListPackagesOK) String() string
- type ListPackagesParams
- func (o *ListPackagesParams) SetContext(ctx context.Context)
- func (o *ListPackagesParams) SetDefaults()
- func (o *ListPackagesParams) SetHTTPClient(client *http.Client)
- func (o *ListPackagesParams) SetLimit(limit *int64)
- func (o *ListPackagesParams) SetOwner(owner string)
- func (o *ListPackagesParams) SetPage(page *int64)
- func (o *ListPackagesParams) SetQ(q *string)
- func (o *ListPackagesParams) SetTimeout(timeout time.Duration)
- func (o *ListPackagesParams) SetType(typeVar *string)
- func (o *ListPackagesParams) WithContext(ctx context.Context) *ListPackagesParams
- func (o *ListPackagesParams) WithDefaults() *ListPackagesParams
- func (o *ListPackagesParams) WithHTTPClient(client *http.Client) *ListPackagesParams
- func (o *ListPackagesParams) WithLimit(limit *int64) *ListPackagesParams
- func (o *ListPackagesParams) WithOwner(owner string) *ListPackagesParams
- func (o *ListPackagesParams) WithPage(page *int64) *ListPackagesParams
- func (o *ListPackagesParams) WithQ(q *string) *ListPackagesParams
- func (o *ListPackagesParams) WithTimeout(timeout time.Duration) *ListPackagesParams
- func (o *ListPackagesParams) WithType(typeVar *string) *ListPackagesParams
- func (o *ListPackagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPackagesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptTextHTML ¶
func WithAcceptTextHTML(r *runtime.ClientOperation)
WithAcceptTextHTML sets the Accept header to "text/html".
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeTextPlain ¶
func WithContentTypeTextPlain(r *runtime.ClientOperation)
WithContentTypeTextPlain sets the Content-Type header to "text/plain".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for package operations API
func (*Client) DeletePackage ¶
func (a *Client) DeletePackage(params *DeletePackageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePackageNoContent, error)
DeletePackage deletes a package
func (*Client) GetPackage ¶
func (a *Client) GetPackage(params *GetPackageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPackageOK, error)
GetPackage gets a package
func (*Client) ListPackageFiles ¶
func (a *Client) ListPackageFiles(params *ListPackageFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPackageFilesOK, error)
ListPackageFiles gets all files of a package
func (*Client) ListPackages ¶
func (a *Client) ListPackages(params *ListPackagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPackagesOK, error)
ListPackages gets all packages of an owner
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { DeletePackage(params *DeletePackageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePackageNoContent, error) GetPackage(params *GetPackageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPackageOK, error) ListPackageFiles(params *ListPackageFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPackageFilesOK, error) ListPackages(params *ListPackagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPackagesOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new package operations API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new package operations API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new package operations API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type DeletePackageNoContent ¶
type DeletePackageNoContent struct { }
DeletePackageNoContent describes a response with status code 204, with default header values.
APIEmpty is an empty response
func NewDeletePackageNoContent ¶
func NewDeletePackageNoContent() *DeletePackageNoContent
NewDeletePackageNoContent creates a DeletePackageNoContent with default headers values
func (*DeletePackageNoContent) Code ¶
func (o *DeletePackageNoContent) Code() int
Code gets the status code for the delete package no content response
func (*DeletePackageNoContent) Error ¶
func (o *DeletePackageNoContent) Error() string
func (*DeletePackageNoContent) IsClientError ¶
func (o *DeletePackageNoContent) IsClientError() bool
IsClientError returns true when this delete package no content response has a 4xx status code
func (*DeletePackageNoContent) IsCode ¶
func (o *DeletePackageNoContent) IsCode(code int) bool
IsCode returns true when this delete package no content response a status code equal to that given
func (*DeletePackageNoContent) IsRedirect ¶
func (o *DeletePackageNoContent) IsRedirect() bool
IsRedirect returns true when this delete package no content response has a 3xx status code
func (*DeletePackageNoContent) IsServerError ¶
func (o *DeletePackageNoContent) IsServerError() bool
IsServerError returns true when this delete package no content response has a 5xx status code
func (*DeletePackageNoContent) IsSuccess ¶
func (o *DeletePackageNoContent) IsSuccess() bool
IsSuccess returns true when this delete package no content response has a 2xx status code
func (*DeletePackageNoContent) String ¶
func (o *DeletePackageNoContent) String() string
type DeletePackageNotFound ¶
type DeletePackageNotFound struct { }
DeletePackageNotFound describes a response with status code 404, with default header values.
APINotFound is a not found empty response
func NewDeletePackageNotFound ¶
func NewDeletePackageNotFound() *DeletePackageNotFound
NewDeletePackageNotFound creates a DeletePackageNotFound with default headers values
func (*DeletePackageNotFound) Code ¶
func (o *DeletePackageNotFound) Code() int
Code gets the status code for the delete package not found response
func (*DeletePackageNotFound) Error ¶
func (o *DeletePackageNotFound) Error() string
func (*DeletePackageNotFound) IsClientError ¶
func (o *DeletePackageNotFound) IsClientError() bool
IsClientError returns true when this delete package not found response has a 4xx status code
func (*DeletePackageNotFound) IsCode ¶
func (o *DeletePackageNotFound) IsCode(code int) bool
IsCode returns true when this delete package not found response a status code equal to that given
func (*DeletePackageNotFound) IsRedirect ¶
func (o *DeletePackageNotFound) IsRedirect() bool
IsRedirect returns true when this delete package not found response has a 3xx status code
func (*DeletePackageNotFound) IsServerError ¶
func (o *DeletePackageNotFound) IsServerError() bool
IsServerError returns true when this delete package not found response has a 5xx status code
func (*DeletePackageNotFound) IsSuccess ¶
func (o *DeletePackageNotFound) IsSuccess() bool
IsSuccess returns true when this delete package not found response has a 2xx status code
func (*DeletePackageNotFound) String ¶
func (o *DeletePackageNotFound) String() string
type DeletePackageParams ¶
type DeletePackageParams struct { /* Name. name of the package */ Name string /* Owner. owner of the package */ Owner string /* Type. type of the package */ Type string /* Version. version of the package */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePackageParams contains all the parameters to send to the API endpoint
for the delete package operation. Typically these are written to a http.Request.
func NewDeletePackageParams ¶
func NewDeletePackageParams() *DeletePackageParams
NewDeletePackageParams creates a new DeletePackageParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeletePackageParamsWithContext ¶
func NewDeletePackageParamsWithContext(ctx context.Context) *DeletePackageParams
NewDeletePackageParamsWithContext creates a new DeletePackageParams object with the ability to set a context for a request.
func NewDeletePackageParamsWithHTTPClient ¶
func NewDeletePackageParamsWithHTTPClient(client *http.Client) *DeletePackageParams
NewDeletePackageParamsWithHTTPClient creates a new DeletePackageParams object with the ability to set a custom HTTPClient for a request.
func NewDeletePackageParamsWithTimeout ¶
func NewDeletePackageParamsWithTimeout(timeout time.Duration) *DeletePackageParams
NewDeletePackageParamsWithTimeout creates a new DeletePackageParams object with the ability to set a timeout on a request.
func (*DeletePackageParams) SetContext ¶
func (o *DeletePackageParams) SetContext(ctx context.Context)
SetContext adds the context to the delete package params
func (*DeletePackageParams) SetDefaults ¶
func (o *DeletePackageParams) SetDefaults()
SetDefaults hydrates default values in the delete package params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePackageParams) SetHTTPClient ¶
func (o *DeletePackageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete package params
func (*DeletePackageParams) SetName ¶
func (o *DeletePackageParams) SetName(name string)
SetName adds the name to the delete package params
func (*DeletePackageParams) SetOwner ¶
func (o *DeletePackageParams) SetOwner(owner string)
SetOwner adds the owner to the delete package params
func (*DeletePackageParams) SetTimeout ¶
func (o *DeletePackageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete package params
func (*DeletePackageParams) SetType ¶
func (o *DeletePackageParams) SetType(typeVar string)
SetType adds the type to the delete package params
func (*DeletePackageParams) SetVersion ¶
func (o *DeletePackageParams) SetVersion(version string)
SetVersion adds the version to the delete package params
func (*DeletePackageParams) WithContext ¶
func (o *DeletePackageParams) WithContext(ctx context.Context) *DeletePackageParams
WithContext adds the context to the delete package params
func (*DeletePackageParams) WithDefaults ¶
func (o *DeletePackageParams) WithDefaults() *DeletePackageParams
WithDefaults hydrates default values in the delete package params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePackageParams) WithHTTPClient ¶
func (o *DeletePackageParams) WithHTTPClient(client *http.Client) *DeletePackageParams
WithHTTPClient adds the HTTPClient to the delete package params
func (*DeletePackageParams) WithName ¶
func (o *DeletePackageParams) WithName(name string) *DeletePackageParams
WithName adds the name to the delete package params
func (*DeletePackageParams) WithOwner ¶
func (o *DeletePackageParams) WithOwner(owner string) *DeletePackageParams
WithOwner adds the owner to the delete package params
func (*DeletePackageParams) WithTimeout ¶
func (o *DeletePackageParams) WithTimeout(timeout time.Duration) *DeletePackageParams
WithTimeout adds the timeout to the delete package params
func (*DeletePackageParams) WithType ¶
func (o *DeletePackageParams) WithType(typeVar string) *DeletePackageParams
WithType adds the typeVar to the delete package params
func (*DeletePackageParams) WithVersion ¶
func (o *DeletePackageParams) WithVersion(version string) *DeletePackageParams
WithVersion adds the version to the delete package params
func (*DeletePackageParams) WriteToRequest ¶
func (o *DeletePackageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePackageReader ¶
type DeletePackageReader struct {
// contains filtered or unexported fields
}
DeletePackageReader is a Reader for the DeletePackage structure.
func (*DeletePackageReader) ReadResponse ¶
func (o *DeletePackageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPackageNotFound ¶
type GetPackageNotFound struct { }
GetPackageNotFound describes a response with status code 404, with default header values.
APINotFound is a not found empty response
func NewGetPackageNotFound ¶
func NewGetPackageNotFound() *GetPackageNotFound
NewGetPackageNotFound creates a GetPackageNotFound with default headers values
func (*GetPackageNotFound) Code ¶
func (o *GetPackageNotFound) Code() int
Code gets the status code for the get package not found response
func (*GetPackageNotFound) Error ¶
func (o *GetPackageNotFound) Error() string
func (*GetPackageNotFound) IsClientError ¶
func (o *GetPackageNotFound) IsClientError() bool
IsClientError returns true when this get package not found response has a 4xx status code
func (*GetPackageNotFound) IsCode ¶
func (o *GetPackageNotFound) IsCode(code int) bool
IsCode returns true when this get package not found response a status code equal to that given
func (*GetPackageNotFound) IsRedirect ¶
func (o *GetPackageNotFound) IsRedirect() bool
IsRedirect returns true when this get package not found response has a 3xx status code
func (*GetPackageNotFound) IsServerError ¶
func (o *GetPackageNotFound) IsServerError() bool
IsServerError returns true when this get package not found response has a 5xx status code
func (*GetPackageNotFound) IsSuccess ¶
func (o *GetPackageNotFound) IsSuccess() bool
IsSuccess returns true when this get package not found response has a 2xx status code
func (*GetPackageNotFound) String ¶
func (o *GetPackageNotFound) String() string
type GetPackageOK ¶
GetPackageOK describes a response with status code 200, with default header values.
Package
func NewGetPackageOK ¶
func NewGetPackageOK() *GetPackageOK
NewGetPackageOK creates a GetPackageOK with default headers values
func (*GetPackageOK) Code ¶
func (o *GetPackageOK) Code() int
Code gets the status code for the get package o k response
func (*GetPackageOK) Error ¶
func (o *GetPackageOK) Error() string
func (*GetPackageOK) GetPayload ¶
func (o *GetPackageOK) GetPayload() *models.Package
func (*GetPackageOK) IsClientError ¶
func (o *GetPackageOK) IsClientError() bool
IsClientError returns true when this get package o k response has a 4xx status code
func (*GetPackageOK) IsCode ¶
func (o *GetPackageOK) IsCode(code int) bool
IsCode returns true when this get package o k response a status code equal to that given
func (*GetPackageOK) IsRedirect ¶
func (o *GetPackageOK) IsRedirect() bool
IsRedirect returns true when this get package o k response has a 3xx status code
func (*GetPackageOK) IsServerError ¶
func (o *GetPackageOK) IsServerError() bool
IsServerError returns true when this get package o k response has a 5xx status code
func (*GetPackageOK) IsSuccess ¶
func (o *GetPackageOK) IsSuccess() bool
IsSuccess returns true when this get package o k response has a 2xx status code
func (*GetPackageOK) String ¶
func (o *GetPackageOK) String() string
type GetPackageParams ¶
type GetPackageParams struct { /* Name. name of the package */ Name string /* Owner. owner of the package */ Owner string /* Type. type of the package */ Type string /* Version. version of the package */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPackageParams contains all the parameters to send to the API endpoint
for the get package operation. Typically these are written to a http.Request.
func NewGetPackageParams ¶
func NewGetPackageParams() *GetPackageParams
NewGetPackageParams creates a new GetPackageParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetPackageParamsWithContext ¶
func NewGetPackageParamsWithContext(ctx context.Context) *GetPackageParams
NewGetPackageParamsWithContext creates a new GetPackageParams object with the ability to set a context for a request.
func NewGetPackageParamsWithHTTPClient ¶
func NewGetPackageParamsWithHTTPClient(client *http.Client) *GetPackageParams
NewGetPackageParamsWithHTTPClient creates a new GetPackageParams object with the ability to set a custom HTTPClient for a request.
func NewGetPackageParamsWithTimeout ¶
func NewGetPackageParamsWithTimeout(timeout time.Duration) *GetPackageParams
NewGetPackageParamsWithTimeout creates a new GetPackageParams object with the ability to set a timeout on a request.
func (*GetPackageParams) SetContext ¶
func (o *GetPackageParams) SetContext(ctx context.Context)
SetContext adds the context to the get package params
func (*GetPackageParams) SetDefaults ¶
func (o *GetPackageParams) SetDefaults()
SetDefaults hydrates default values in the get package params (not the query body).
All values with no default are reset to their zero value.
func (*GetPackageParams) SetHTTPClient ¶
func (o *GetPackageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get package params
func (*GetPackageParams) SetName ¶
func (o *GetPackageParams) SetName(name string)
SetName adds the name to the get package params
func (*GetPackageParams) SetOwner ¶
func (o *GetPackageParams) SetOwner(owner string)
SetOwner adds the owner to the get package params
func (*GetPackageParams) SetTimeout ¶
func (o *GetPackageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get package params
func (*GetPackageParams) SetType ¶
func (o *GetPackageParams) SetType(typeVar string)
SetType adds the type to the get package params
func (*GetPackageParams) SetVersion ¶
func (o *GetPackageParams) SetVersion(version string)
SetVersion adds the version to the get package params
func (*GetPackageParams) WithContext ¶
func (o *GetPackageParams) WithContext(ctx context.Context) *GetPackageParams
WithContext adds the context to the get package params
func (*GetPackageParams) WithDefaults ¶
func (o *GetPackageParams) WithDefaults() *GetPackageParams
WithDefaults hydrates default values in the get package params (not the query body).
All values with no default are reset to their zero value.
func (*GetPackageParams) WithHTTPClient ¶
func (o *GetPackageParams) WithHTTPClient(client *http.Client) *GetPackageParams
WithHTTPClient adds the HTTPClient to the get package params
func (*GetPackageParams) WithName ¶
func (o *GetPackageParams) WithName(name string) *GetPackageParams
WithName adds the name to the get package params
func (*GetPackageParams) WithOwner ¶
func (o *GetPackageParams) WithOwner(owner string) *GetPackageParams
WithOwner adds the owner to the get package params
func (*GetPackageParams) WithTimeout ¶
func (o *GetPackageParams) WithTimeout(timeout time.Duration) *GetPackageParams
WithTimeout adds the timeout to the get package params
func (*GetPackageParams) WithType ¶
func (o *GetPackageParams) WithType(typeVar string) *GetPackageParams
WithType adds the typeVar to the get package params
func (*GetPackageParams) WithVersion ¶
func (o *GetPackageParams) WithVersion(version string) *GetPackageParams
WithVersion adds the version to the get package params
func (*GetPackageParams) WriteToRequest ¶
func (o *GetPackageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPackageReader ¶
type GetPackageReader struct {
// contains filtered or unexported fields
}
GetPackageReader is a Reader for the GetPackage structure.
func (*GetPackageReader) ReadResponse ¶
func (o *GetPackageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPackageFilesNotFound ¶
type ListPackageFilesNotFound struct { }
ListPackageFilesNotFound describes a response with status code 404, with default header values.
APINotFound is a not found empty response
func NewListPackageFilesNotFound ¶
func NewListPackageFilesNotFound() *ListPackageFilesNotFound
NewListPackageFilesNotFound creates a ListPackageFilesNotFound with default headers values
func (*ListPackageFilesNotFound) Code ¶
func (o *ListPackageFilesNotFound) Code() int
Code gets the status code for the list package files not found response
func (*ListPackageFilesNotFound) Error ¶
func (o *ListPackageFilesNotFound) Error() string
func (*ListPackageFilesNotFound) IsClientError ¶
func (o *ListPackageFilesNotFound) IsClientError() bool
IsClientError returns true when this list package files not found response has a 4xx status code
func (*ListPackageFilesNotFound) IsCode ¶
func (o *ListPackageFilesNotFound) IsCode(code int) bool
IsCode returns true when this list package files not found response a status code equal to that given
func (*ListPackageFilesNotFound) IsRedirect ¶
func (o *ListPackageFilesNotFound) IsRedirect() bool
IsRedirect returns true when this list package files not found response has a 3xx status code
func (*ListPackageFilesNotFound) IsServerError ¶
func (o *ListPackageFilesNotFound) IsServerError() bool
IsServerError returns true when this list package files not found response has a 5xx status code
func (*ListPackageFilesNotFound) IsSuccess ¶
func (o *ListPackageFilesNotFound) IsSuccess() bool
IsSuccess returns true when this list package files not found response has a 2xx status code
func (*ListPackageFilesNotFound) String ¶
func (o *ListPackageFilesNotFound) String() string
type ListPackageFilesOK ¶
type ListPackageFilesOK struct {
Payload []*models.PackageFile
}
ListPackageFilesOK describes a response with status code 200, with default header values.
PackageFileList
func NewListPackageFilesOK ¶
func NewListPackageFilesOK() *ListPackageFilesOK
NewListPackageFilesOK creates a ListPackageFilesOK with default headers values
func (*ListPackageFilesOK) Code ¶
func (o *ListPackageFilesOK) Code() int
Code gets the status code for the list package files o k response
func (*ListPackageFilesOK) Error ¶
func (o *ListPackageFilesOK) Error() string
func (*ListPackageFilesOK) GetPayload ¶
func (o *ListPackageFilesOK) GetPayload() []*models.PackageFile
func (*ListPackageFilesOK) IsClientError ¶
func (o *ListPackageFilesOK) IsClientError() bool
IsClientError returns true when this list package files o k response has a 4xx status code
func (*ListPackageFilesOK) IsCode ¶
func (o *ListPackageFilesOK) IsCode(code int) bool
IsCode returns true when this list package files o k response a status code equal to that given
func (*ListPackageFilesOK) IsRedirect ¶
func (o *ListPackageFilesOK) IsRedirect() bool
IsRedirect returns true when this list package files o k response has a 3xx status code
func (*ListPackageFilesOK) IsServerError ¶
func (o *ListPackageFilesOK) IsServerError() bool
IsServerError returns true when this list package files o k response has a 5xx status code
func (*ListPackageFilesOK) IsSuccess ¶
func (o *ListPackageFilesOK) IsSuccess() bool
IsSuccess returns true when this list package files o k response has a 2xx status code
func (*ListPackageFilesOK) String ¶
func (o *ListPackageFilesOK) String() string
type ListPackageFilesParams ¶
type ListPackageFilesParams struct { /* Name. name of the package */ Name string /* Owner. owner of the package */ Owner string /* Type. type of the package */ Type string /* Version. version of the package */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPackageFilesParams contains all the parameters to send to the API endpoint
for the list package files operation. Typically these are written to a http.Request.
func NewListPackageFilesParams ¶
func NewListPackageFilesParams() *ListPackageFilesParams
NewListPackageFilesParams creates a new ListPackageFilesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListPackageFilesParamsWithContext ¶
func NewListPackageFilesParamsWithContext(ctx context.Context) *ListPackageFilesParams
NewListPackageFilesParamsWithContext creates a new ListPackageFilesParams object with the ability to set a context for a request.
func NewListPackageFilesParamsWithHTTPClient ¶
func NewListPackageFilesParamsWithHTTPClient(client *http.Client) *ListPackageFilesParams
NewListPackageFilesParamsWithHTTPClient creates a new ListPackageFilesParams object with the ability to set a custom HTTPClient for a request.
func NewListPackageFilesParamsWithTimeout ¶
func NewListPackageFilesParamsWithTimeout(timeout time.Duration) *ListPackageFilesParams
NewListPackageFilesParamsWithTimeout creates a new ListPackageFilesParams object with the ability to set a timeout on a request.
func (*ListPackageFilesParams) SetContext ¶
func (o *ListPackageFilesParams) SetContext(ctx context.Context)
SetContext adds the context to the list package files params
func (*ListPackageFilesParams) SetDefaults ¶
func (o *ListPackageFilesParams) SetDefaults()
SetDefaults hydrates default values in the list package files params (not the query body).
All values with no default are reset to their zero value.
func (*ListPackageFilesParams) SetHTTPClient ¶
func (o *ListPackageFilesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list package files params
func (*ListPackageFilesParams) SetName ¶
func (o *ListPackageFilesParams) SetName(name string)
SetName adds the name to the list package files params
func (*ListPackageFilesParams) SetOwner ¶
func (o *ListPackageFilesParams) SetOwner(owner string)
SetOwner adds the owner to the list package files params
func (*ListPackageFilesParams) SetTimeout ¶
func (o *ListPackageFilesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list package files params
func (*ListPackageFilesParams) SetType ¶
func (o *ListPackageFilesParams) SetType(typeVar string)
SetType adds the type to the list package files params
func (*ListPackageFilesParams) SetVersion ¶
func (o *ListPackageFilesParams) SetVersion(version string)
SetVersion adds the version to the list package files params
func (*ListPackageFilesParams) WithContext ¶
func (o *ListPackageFilesParams) WithContext(ctx context.Context) *ListPackageFilesParams
WithContext adds the context to the list package files params
func (*ListPackageFilesParams) WithDefaults ¶
func (o *ListPackageFilesParams) WithDefaults() *ListPackageFilesParams
WithDefaults hydrates default values in the list package files params (not the query body).
All values with no default are reset to their zero value.
func (*ListPackageFilesParams) WithHTTPClient ¶
func (o *ListPackageFilesParams) WithHTTPClient(client *http.Client) *ListPackageFilesParams
WithHTTPClient adds the HTTPClient to the list package files params
func (*ListPackageFilesParams) WithName ¶
func (o *ListPackageFilesParams) WithName(name string) *ListPackageFilesParams
WithName adds the name to the list package files params
func (*ListPackageFilesParams) WithOwner ¶
func (o *ListPackageFilesParams) WithOwner(owner string) *ListPackageFilesParams
WithOwner adds the owner to the list package files params
func (*ListPackageFilesParams) WithTimeout ¶
func (o *ListPackageFilesParams) WithTimeout(timeout time.Duration) *ListPackageFilesParams
WithTimeout adds the timeout to the list package files params
func (*ListPackageFilesParams) WithType ¶
func (o *ListPackageFilesParams) WithType(typeVar string) *ListPackageFilesParams
WithType adds the typeVar to the list package files params
func (*ListPackageFilesParams) WithVersion ¶
func (o *ListPackageFilesParams) WithVersion(version string) *ListPackageFilesParams
WithVersion adds the version to the list package files params
func (*ListPackageFilesParams) WriteToRequest ¶
func (o *ListPackageFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPackageFilesReader ¶
type ListPackageFilesReader struct {
// contains filtered or unexported fields
}
ListPackageFilesReader is a Reader for the ListPackageFiles structure.
func (*ListPackageFilesReader) ReadResponse ¶
func (o *ListPackageFilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPackagesNotFound ¶
type ListPackagesNotFound struct { }
ListPackagesNotFound describes a response with status code 404, with default header values.
APINotFound is a not found empty response
func NewListPackagesNotFound ¶
func NewListPackagesNotFound() *ListPackagesNotFound
NewListPackagesNotFound creates a ListPackagesNotFound with default headers values
func (*ListPackagesNotFound) Code ¶
func (o *ListPackagesNotFound) Code() int
Code gets the status code for the list packages not found response
func (*ListPackagesNotFound) Error ¶
func (o *ListPackagesNotFound) Error() string
func (*ListPackagesNotFound) IsClientError ¶
func (o *ListPackagesNotFound) IsClientError() bool
IsClientError returns true when this list packages not found response has a 4xx status code
func (*ListPackagesNotFound) IsCode ¶
func (o *ListPackagesNotFound) IsCode(code int) bool
IsCode returns true when this list packages not found response a status code equal to that given
func (*ListPackagesNotFound) IsRedirect ¶
func (o *ListPackagesNotFound) IsRedirect() bool
IsRedirect returns true when this list packages not found response has a 3xx status code
func (*ListPackagesNotFound) IsServerError ¶
func (o *ListPackagesNotFound) IsServerError() bool
IsServerError returns true when this list packages not found response has a 5xx status code
func (*ListPackagesNotFound) IsSuccess ¶
func (o *ListPackagesNotFound) IsSuccess() bool
IsSuccess returns true when this list packages not found response has a 2xx status code
func (*ListPackagesNotFound) String ¶
func (o *ListPackagesNotFound) String() string
type ListPackagesOK ¶
ListPackagesOK describes a response with status code 200, with default header values.
PackageList
func NewListPackagesOK ¶
func NewListPackagesOK() *ListPackagesOK
NewListPackagesOK creates a ListPackagesOK with default headers values
func (*ListPackagesOK) Code ¶
func (o *ListPackagesOK) Code() int
Code gets the status code for the list packages o k response
func (*ListPackagesOK) Error ¶
func (o *ListPackagesOK) Error() string
func (*ListPackagesOK) GetPayload ¶
func (o *ListPackagesOK) GetPayload() []*models.Package
func (*ListPackagesOK) IsClientError ¶
func (o *ListPackagesOK) IsClientError() bool
IsClientError returns true when this list packages o k response has a 4xx status code
func (*ListPackagesOK) IsCode ¶
func (o *ListPackagesOK) IsCode(code int) bool
IsCode returns true when this list packages o k response a status code equal to that given
func (*ListPackagesOK) IsRedirect ¶
func (o *ListPackagesOK) IsRedirect() bool
IsRedirect returns true when this list packages o k response has a 3xx status code
func (*ListPackagesOK) IsServerError ¶
func (o *ListPackagesOK) IsServerError() bool
IsServerError returns true when this list packages o k response has a 5xx status code
func (*ListPackagesOK) IsSuccess ¶
func (o *ListPackagesOK) IsSuccess() bool
IsSuccess returns true when this list packages o k response has a 2xx status code
func (*ListPackagesOK) String ¶
func (o *ListPackagesOK) String() string
type ListPackagesParams ¶
type ListPackagesParams struct { /* Limit. page size of results */ Limit *int64 /* Owner. owner of the packages */ Owner string /* Page. page number of results to return (1-based) */ Page *int64 /* Q. name filter */ Q *string /* Type. package type filter */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPackagesParams contains all the parameters to send to the API endpoint
for the list packages operation. Typically these are written to a http.Request.
func NewListPackagesParams ¶
func NewListPackagesParams() *ListPackagesParams
NewListPackagesParams creates a new ListPackagesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListPackagesParamsWithContext ¶
func NewListPackagesParamsWithContext(ctx context.Context) *ListPackagesParams
NewListPackagesParamsWithContext creates a new ListPackagesParams object with the ability to set a context for a request.
func NewListPackagesParamsWithHTTPClient ¶
func NewListPackagesParamsWithHTTPClient(client *http.Client) *ListPackagesParams
NewListPackagesParamsWithHTTPClient creates a new ListPackagesParams object with the ability to set a custom HTTPClient for a request.
func NewListPackagesParamsWithTimeout ¶
func NewListPackagesParamsWithTimeout(timeout time.Duration) *ListPackagesParams
NewListPackagesParamsWithTimeout creates a new ListPackagesParams object with the ability to set a timeout on a request.
func (*ListPackagesParams) SetContext ¶
func (o *ListPackagesParams) SetContext(ctx context.Context)
SetContext adds the context to the list packages params
func (*ListPackagesParams) SetDefaults ¶
func (o *ListPackagesParams) SetDefaults()
SetDefaults hydrates default values in the list packages params (not the query body).
All values with no default are reset to their zero value.
func (*ListPackagesParams) SetHTTPClient ¶
func (o *ListPackagesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list packages params
func (*ListPackagesParams) SetLimit ¶
func (o *ListPackagesParams) SetLimit(limit *int64)
SetLimit adds the limit to the list packages params
func (*ListPackagesParams) SetOwner ¶
func (o *ListPackagesParams) SetOwner(owner string)
SetOwner adds the owner to the list packages params
func (*ListPackagesParams) SetPage ¶
func (o *ListPackagesParams) SetPage(page *int64)
SetPage adds the page to the list packages params
func (*ListPackagesParams) SetQ ¶
func (o *ListPackagesParams) SetQ(q *string)
SetQ adds the q to the list packages params
func (*ListPackagesParams) SetTimeout ¶
func (o *ListPackagesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list packages params
func (*ListPackagesParams) SetType ¶
func (o *ListPackagesParams) SetType(typeVar *string)
SetType adds the type to the list packages params
func (*ListPackagesParams) WithContext ¶
func (o *ListPackagesParams) WithContext(ctx context.Context) *ListPackagesParams
WithContext adds the context to the list packages params
func (*ListPackagesParams) WithDefaults ¶
func (o *ListPackagesParams) WithDefaults() *ListPackagesParams
WithDefaults hydrates default values in the list packages params (not the query body).
All values with no default are reset to their zero value.
func (*ListPackagesParams) WithHTTPClient ¶
func (o *ListPackagesParams) WithHTTPClient(client *http.Client) *ListPackagesParams
WithHTTPClient adds the HTTPClient to the list packages params
func (*ListPackagesParams) WithLimit ¶
func (o *ListPackagesParams) WithLimit(limit *int64) *ListPackagesParams
WithLimit adds the limit to the list packages params
func (*ListPackagesParams) WithOwner ¶
func (o *ListPackagesParams) WithOwner(owner string) *ListPackagesParams
WithOwner adds the owner to the list packages params
func (*ListPackagesParams) WithPage ¶
func (o *ListPackagesParams) WithPage(page *int64) *ListPackagesParams
WithPage adds the page to the list packages params
func (*ListPackagesParams) WithQ ¶
func (o *ListPackagesParams) WithQ(q *string) *ListPackagesParams
WithQ adds the q to the list packages params
func (*ListPackagesParams) WithTimeout ¶
func (o *ListPackagesParams) WithTimeout(timeout time.Duration) *ListPackagesParams
WithTimeout adds the timeout to the list packages params
func (*ListPackagesParams) WithType ¶
func (o *ListPackagesParams) WithType(typeVar *string) *ListPackagesParams
WithType adds the typeVar to the list packages params
func (*ListPackagesParams) WriteToRequest ¶
func (o *ListPackagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPackagesReader ¶
type ListPackagesReader struct {
// contains filtered or unexported fields
}
ListPackagesReader is a Reader for the ListPackages structure.
func (*ListPackagesReader) ReadResponse ¶
func (o *ListPackagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.