Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteSnap(params *DeleteSnapParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSnapOK, error)
- func (a *Client) DeleteSnapContext(ctx context.Context, params *DeleteSnapParams, ...) (*DeleteSnapOK, error)
- func (a *Client) ForkSnap(params *ForkSnapParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ForkSnapCreated, error)
- func (a *Client) ForkSnapContext(ctx context.Context, params *ForkSnapParams, ...) (*ForkSnapCreated, error)
- func (a *Client) GetSnap(params *GetSnapParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSnapOK, error)
- func (a *Client) GetSnapContext(ctx context.Context, params *GetSnapParams, ...) (*GetSnapOK, error)
- func (a *Client) GetSnapTree(params *GetSnapTreeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSnapTreeOK, error)
- func (a *Client) GetSnapTreeContext(ctx context.Context, params *GetSnapTreeParams, ...) (*GetSnapTreeOK, error)
- func (a *Client) ImportSnap(params *ImportSnapParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ImportSnapCreated, error)
- func (a *Client) ImportSnapContext(ctx context.Context, params *ImportSnapParams, ...) (*ImportSnapCreated, error)
- func (a *Client) ListSnaps(params *ListSnapsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSnapsOK, error)
- func (a *Client) ListSnapsContext(ctx context.Context, params *ListSnapsParams, ...) (*ListSnapsOK, error)
- func (a *Client) SetTransport(transport runtime.ContextualTransport)
- type ClientOption
- type ClientService
- type DeleteSnapBadRequest
- func (o *DeleteSnapBadRequest) Code() int
- func (o *DeleteSnapBadRequest) Error() string
- func (o *DeleteSnapBadRequest) GetPayload() *models.Error
- func (o *DeleteSnapBadRequest) IsClientError() bool
- func (o *DeleteSnapBadRequest) IsCode(code int) bool
- func (o *DeleteSnapBadRequest) IsRedirect() bool
- func (o *DeleteSnapBadRequest) IsServerError() bool
- func (o *DeleteSnapBadRequest) IsSuccess() bool
- func (o *DeleteSnapBadRequest) String() string
- type DeleteSnapOK
- func (o *DeleteSnapOK) Code() int
- func (o *DeleteSnapOK) Error() string
- func (o *DeleteSnapOK) GetPayload() *models.APISnapView
- func (o *DeleteSnapOK) IsClientError() bool
- func (o *DeleteSnapOK) IsCode(code int) bool
- func (o *DeleteSnapOK) IsRedirect() bool
- func (o *DeleteSnapOK) IsServerError() bool
- func (o *DeleteSnapOK) IsSuccess() bool
- func (o *DeleteSnapOK) String() string
- type DeleteSnapParams
- func (o *DeleteSnapParams) SetContext(ctx context.Context)deprecated
- func (o *DeleteSnapParams) SetDefaults()
- func (o *DeleteSnapParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSnapParams) SetID(id string)
- func (o *DeleteSnapParams) SetProjectCid(projectCid string)
- func (o *DeleteSnapParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSnapParams) WithContext(ctx context.Context) *DeleteSnapParamsdeprecated
- func (o *DeleteSnapParams) WithDefaults() *DeleteSnapParams
- func (o *DeleteSnapParams) WithHTTPClient(client *http.Client) *DeleteSnapParams
- func (o *DeleteSnapParams) WithID(id string) *DeleteSnapParams
- func (o *DeleteSnapParams) WithProjectCid(projectCid string) *DeleteSnapParams
- func (o *DeleteSnapParams) WithTimeout(timeout time.Duration) *DeleteSnapParams
- func (o *DeleteSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSnapReader
- type DeleteSnapUnauthorized
- func (o *DeleteSnapUnauthorized) Code() int
- func (o *DeleteSnapUnauthorized) Error() string
- func (o *DeleteSnapUnauthorized) GetPayload() *models.Error
- func (o *DeleteSnapUnauthorized) IsClientError() bool
- func (o *DeleteSnapUnauthorized) IsCode(code int) bool
- func (o *DeleteSnapUnauthorized) IsRedirect() bool
- func (o *DeleteSnapUnauthorized) IsServerError() bool
- func (o *DeleteSnapUnauthorized) IsSuccess() bool
- func (o *DeleteSnapUnauthorized) String() string
- type ForkSnapBadRequest
- func (o *ForkSnapBadRequest) Code() int
- func (o *ForkSnapBadRequest) Error() string
- func (o *ForkSnapBadRequest) GetPayload() *models.Error
- func (o *ForkSnapBadRequest) IsClientError() bool
- func (o *ForkSnapBadRequest) IsCode(code int) bool
- func (o *ForkSnapBadRequest) IsRedirect() bool
- func (o *ForkSnapBadRequest) IsServerError() bool
- func (o *ForkSnapBadRequest) IsSuccess() bool
- func (o *ForkSnapBadRequest) String() string
- type ForkSnapCreated
- func (o *ForkSnapCreated) Code() int
- func (o *ForkSnapCreated) Error() string
- func (o *ForkSnapCreated) GetPayload() *models.APISnapView
- func (o *ForkSnapCreated) IsClientError() bool
- func (o *ForkSnapCreated) IsCode(code int) bool
- func (o *ForkSnapCreated) IsRedirect() bool
- func (o *ForkSnapCreated) IsServerError() bool
- func (o *ForkSnapCreated) IsSuccess() bool
- func (o *ForkSnapCreated) String() string
- type ForkSnapParams
- func (o *ForkSnapParams) SetContext(ctx context.Context)deprecated
- func (o *ForkSnapParams) SetDefaults()
- func (o *ForkSnapParams) SetHTTPClient(client *http.Client)
- func (o *ForkSnapParams) SetID(id string)
- func (o *ForkSnapParams) SetProjectCid(projectCid string)
- func (o *ForkSnapParams) SetTimeout(timeout time.Duration)
- func (o *ForkSnapParams) WithContext(ctx context.Context) *ForkSnapParamsdeprecated
- func (o *ForkSnapParams) WithDefaults() *ForkSnapParams
- func (o *ForkSnapParams) WithHTTPClient(client *http.Client) *ForkSnapParams
- func (o *ForkSnapParams) WithID(id string) *ForkSnapParams
- func (o *ForkSnapParams) WithProjectCid(projectCid string) *ForkSnapParams
- func (o *ForkSnapParams) WithTimeout(timeout time.Duration) *ForkSnapParams
- func (o *ForkSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForkSnapReader
- type ForkSnapUnauthorized
- func (o *ForkSnapUnauthorized) Code() int
- func (o *ForkSnapUnauthorized) Error() string
- func (o *ForkSnapUnauthorized) GetPayload() *models.Error
- func (o *ForkSnapUnauthorized) IsClientError() bool
- func (o *ForkSnapUnauthorized) IsCode(code int) bool
- func (o *ForkSnapUnauthorized) IsRedirect() bool
- func (o *ForkSnapUnauthorized) IsServerError() bool
- func (o *ForkSnapUnauthorized) IsSuccess() bool
- func (o *ForkSnapUnauthorized) String() string
- type GetSnapBadRequest
- func (o *GetSnapBadRequest) Code() int
- func (o *GetSnapBadRequest) Error() string
- func (o *GetSnapBadRequest) GetPayload() *models.Error
- func (o *GetSnapBadRequest) IsClientError() bool
- func (o *GetSnapBadRequest) IsCode(code int) bool
- func (o *GetSnapBadRequest) IsRedirect() bool
- func (o *GetSnapBadRequest) IsServerError() bool
- func (o *GetSnapBadRequest) IsSuccess() bool
- func (o *GetSnapBadRequest) String() string
- type GetSnapOK
- func (o *GetSnapOK) Code() int
- func (o *GetSnapOK) Error() string
- func (o *GetSnapOK) GetPayload() *models.APISnapView
- func (o *GetSnapOK) IsClientError() bool
- func (o *GetSnapOK) IsCode(code int) bool
- func (o *GetSnapOK) IsRedirect() bool
- func (o *GetSnapOK) IsServerError() bool
- func (o *GetSnapOK) IsSuccess() bool
- func (o *GetSnapOK) String() string
- type GetSnapParams
- func (o *GetSnapParams) SetContext(ctx context.Context)deprecated
- func (o *GetSnapParams) SetDefaults()
- func (o *GetSnapParams) SetHTTPClient(client *http.Client)
- func (o *GetSnapParams) SetID(id string)
- func (o *GetSnapParams) SetProjectCid(projectCid string)
- func (o *GetSnapParams) SetTimeout(timeout time.Duration)
- func (o *GetSnapParams) WithContext(ctx context.Context) *GetSnapParamsdeprecated
- func (o *GetSnapParams) WithDefaults() *GetSnapParams
- func (o *GetSnapParams) WithHTTPClient(client *http.Client) *GetSnapParams
- func (o *GetSnapParams) WithID(id string) *GetSnapParams
- func (o *GetSnapParams) WithProjectCid(projectCid string) *GetSnapParams
- func (o *GetSnapParams) WithTimeout(timeout time.Duration) *GetSnapParams
- func (o *GetSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnapReader
- type GetSnapTreeBadRequest
- func (o *GetSnapTreeBadRequest) Code() int
- func (o *GetSnapTreeBadRequest) Error() string
- func (o *GetSnapTreeBadRequest) GetPayload() *models.Error
- func (o *GetSnapTreeBadRequest) IsClientError() bool
- func (o *GetSnapTreeBadRequest) IsCode(code int) bool
- func (o *GetSnapTreeBadRequest) IsRedirect() bool
- func (o *GetSnapTreeBadRequest) IsServerError() bool
- func (o *GetSnapTreeBadRequest) IsSuccess() bool
- func (o *GetSnapTreeBadRequest) String() string
- type GetSnapTreeOK
- func (o *GetSnapTreeOK) Code() int
- func (o *GetSnapTreeOK) Error() string
- func (o *GetSnapTreeOK) GetPayload() *models.APISnapTreeView
- func (o *GetSnapTreeOK) IsClientError() bool
- func (o *GetSnapTreeOK) IsCode(code int) bool
- func (o *GetSnapTreeOK) IsRedirect() bool
- func (o *GetSnapTreeOK) IsServerError() bool
- func (o *GetSnapTreeOK) IsSuccess() bool
- func (o *GetSnapTreeOK) String() string
- type GetSnapTreeParams
- func (o *GetSnapTreeParams) SetContext(ctx context.Context)deprecated
- func (o *GetSnapTreeParams) SetDefaults()
- func (o *GetSnapTreeParams) SetHTTPClient(client *http.Client)
- func (o *GetSnapTreeParams) SetID(id string)
- func (o *GetSnapTreeParams) SetProjectCid(projectCid string)
- func (o *GetSnapTreeParams) SetTimeout(timeout time.Duration)
- func (o *GetSnapTreeParams) WithContext(ctx context.Context) *GetSnapTreeParamsdeprecated
- func (o *GetSnapTreeParams) WithDefaults() *GetSnapTreeParams
- func (o *GetSnapTreeParams) WithHTTPClient(client *http.Client) *GetSnapTreeParams
- func (o *GetSnapTreeParams) WithID(id string) *GetSnapTreeParams
- func (o *GetSnapTreeParams) WithProjectCid(projectCid string) *GetSnapTreeParams
- func (o *GetSnapTreeParams) WithTimeout(timeout time.Duration) *GetSnapTreeParams
- func (o *GetSnapTreeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnapTreeReader
- type GetSnapTreeUnauthorized
- func (o *GetSnapTreeUnauthorized) Code() int
- func (o *GetSnapTreeUnauthorized) Error() string
- func (o *GetSnapTreeUnauthorized) GetPayload() *models.Error
- func (o *GetSnapTreeUnauthorized) IsClientError() bool
- func (o *GetSnapTreeUnauthorized) IsCode(code int) bool
- func (o *GetSnapTreeUnauthorized) IsRedirect() bool
- func (o *GetSnapTreeUnauthorized) IsServerError() bool
- func (o *GetSnapTreeUnauthorized) IsSuccess() bool
- func (o *GetSnapTreeUnauthorized) String() string
- type GetSnapUnauthorized
- func (o *GetSnapUnauthorized) Code() int
- func (o *GetSnapUnauthorized) Error() string
- func (o *GetSnapUnauthorized) GetPayload() *models.Error
- func (o *GetSnapUnauthorized) IsClientError() bool
- func (o *GetSnapUnauthorized) IsCode(code int) bool
- func (o *GetSnapUnauthorized) IsRedirect() bool
- func (o *GetSnapUnauthorized) IsServerError() bool
- func (o *GetSnapUnauthorized) IsSuccess() bool
- func (o *GetSnapUnauthorized) String() string
- type ImportSnapBadRequest
- func (o *ImportSnapBadRequest) Code() int
- func (o *ImportSnapBadRequest) Error() string
- func (o *ImportSnapBadRequest) GetPayload() *models.Error
- func (o *ImportSnapBadRequest) IsClientError() bool
- func (o *ImportSnapBadRequest) IsCode(code int) bool
- func (o *ImportSnapBadRequest) IsRedirect() bool
- func (o *ImportSnapBadRequest) IsServerError() bool
- func (o *ImportSnapBadRequest) IsSuccess() bool
- func (o *ImportSnapBadRequest) String() string
- type ImportSnapCreated
- func (o *ImportSnapCreated) Code() int
- func (o *ImportSnapCreated) Error() string
- func (o *ImportSnapCreated) GetPayload() *models.APISnapView
- func (o *ImportSnapCreated) IsClientError() bool
- func (o *ImportSnapCreated) IsCode(code int) bool
- func (o *ImportSnapCreated) IsRedirect() bool
- func (o *ImportSnapCreated) IsServerError() bool
- func (o *ImportSnapCreated) IsSuccess() bool
- func (o *ImportSnapCreated) String() string
- type ImportSnapParams
- func (o *ImportSnapParams) SetContext(ctx context.Context)deprecated
- func (o *ImportSnapParams) SetDefaults()
- func (o *ImportSnapParams) SetHTTPClient(client *http.Client)
- func (o *ImportSnapParams) SetProjectCid(projectCid string)
- func (o *ImportSnapParams) SetRequest(request *models.ImportSnapPayload)
- func (o *ImportSnapParams) SetTimeout(timeout time.Duration)
- func (o *ImportSnapParams) WithContext(ctx context.Context) *ImportSnapParamsdeprecated
- func (o *ImportSnapParams) WithDefaults() *ImportSnapParams
- func (o *ImportSnapParams) WithHTTPClient(client *http.Client) *ImportSnapParams
- func (o *ImportSnapParams) WithProjectCid(projectCid string) *ImportSnapParams
- func (o *ImportSnapParams) WithRequest(request *models.ImportSnapPayload) *ImportSnapParams
- func (o *ImportSnapParams) WithTimeout(timeout time.Duration) *ImportSnapParams
- func (o *ImportSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ImportSnapReader
- type ImportSnapUnauthorized
- func (o *ImportSnapUnauthorized) Code() int
- func (o *ImportSnapUnauthorized) Error() string
- func (o *ImportSnapUnauthorized) GetPayload() *models.Error
- func (o *ImportSnapUnauthorized) IsClientError() bool
- func (o *ImportSnapUnauthorized) IsCode(code int) bool
- func (o *ImportSnapUnauthorized) IsRedirect() bool
- func (o *ImportSnapUnauthorized) IsServerError() bool
- func (o *ImportSnapUnauthorized) IsSuccess() bool
- func (o *ImportSnapUnauthorized) String() string
- type ListSnapsBadRequest
- func (o *ListSnapsBadRequest) Code() int
- func (o *ListSnapsBadRequest) Error() string
- func (o *ListSnapsBadRequest) GetPayload() *models.Error
- func (o *ListSnapsBadRequest) IsClientError() bool
- func (o *ListSnapsBadRequest) IsCode(code int) bool
- func (o *ListSnapsBadRequest) IsRedirect() bool
- func (o *ListSnapsBadRequest) IsServerError() bool
- func (o *ListSnapsBadRequest) IsSuccess() bool
- func (o *ListSnapsBadRequest) String() string
- type ListSnapsOK
- func (o *ListSnapsOK) Code() int
- func (o *ListSnapsOK) Error() string
- func (o *ListSnapsOK) GetPayload() []*models.APISnapView
- func (o *ListSnapsOK) IsClientError() bool
- func (o *ListSnapsOK) IsCode(code int) bool
- func (o *ListSnapsOK) IsRedirect() bool
- func (o *ListSnapsOK) IsServerError() bool
- func (o *ListSnapsOK) IsSuccess() bool
- func (o *ListSnapsOK) String() string
- type ListSnapsParams
- func (o *ListSnapsParams) SetAttached(attached *bool)
- func (o *ListSnapsParams) SetContext(ctx context.Context)deprecated
- func (o *ListSnapsParams) SetDefaults()
- func (o *ListSnapsParams) SetHTTPClient(client *http.Client)
- func (o *ListSnapsParams) SetProjectCid(projectCid string)
- func (o *ListSnapsParams) SetTimeout(timeout time.Duration)
- func (o *ListSnapsParams) WithAttached(attached *bool) *ListSnapsParams
- func (o *ListSnapsParams) WithContext(ctx context.Context) *ListSnapsParamsdeprecated
- func (o *ListSnapsParams) WithDefaults() *ListSnapsParams
- func (o *ListSnapsParams) WithHTTPClient(client *http.Client) *ListSnapsParams
- func (o *ListSnapsParams) WithProjectCid(projectCid string) *ListSnapsParams
- func (o *ListSnapsParams) WithTimeout(timeout time.Duration) *ListSnapsParams
- func (o *ListSnapsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSnapsReader
- type ListSnapsUnauthorized
- func (o *ListSnapsUnauthorized) Code() int
- func (o *ListSnapsUnauthorized) Error() string
- func (o *ListSnapsUnauthorized) GetPayload() *models.Error
- func (o *ListSnapsUnauthorized) IsClientError() bool
- func (o *ListSnapsUnauthorized) IsCode(code int) bool
- func (o *ListSnapsUnauthorized) IsRedirect() bool
- func (o *ListSnapsUnauthorized) IsServerError() bool
- func (o *ListSnapsUnauthorized) IsSuccess() bool
- func (o *ListSnapsUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for snaps API.
func (*Client) DeleteSnap ¶
func (a *Client) DeleteSnap(params *DeleteSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapOK, error)
DeleteSnapdeletes a snap.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.DeleteSnapContext instead.
func (*Client) DeleteSnapContext ¶
func (a *Client) DeleteSnapContext(ctx context.Context, params *DeleteSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapOK, error)
DeleteSnapContextdeletes a snap.
Do not use the deprecated [DeleteSnapParams.Context] with this method: it would be ignored.
func (*Client) ForkSnap ¶
func (a *Client) ForkSnap(params *ForkSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ForkSnapCreated, error)
ForkSnapforks a snap.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.ForkSnapContext instead.
func (*Client) ForkSnapContext ¶
func (a *Client) ForkSnapContext(ctx context.Context, params *ForkSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ForkSnapCreated, error)
ForkSnapContextforks a snap.
Do not use the deprecated [ForkSnapParams.Context] with this method: it would be ignored.
func (*Client) GetSnap ¶
func (a *Client) GetSnap(params *GetSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapOK, error)
GetSnapgets a snap.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetSnapContext instead.
func (*Client) GetSnapContext ¶
func (a *Client) GetSnapContext(ctx context.Context, params *GetSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapOK, error)
GetSnapContextgets a snap.
Do not use the deprecated [GetSnapParams.Context] with this method: it would be ignored.
func (*Client) GetSnapTree ¶
func (a *Client) GetSnapTree(params *GetSnapTreeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapTreeOK, error)
GetSnapTreegets a snap s fork lineage tree.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetSnapTreeContext instead.
func (*Client) GetSnapTreeContext ¶
func (a *Client) GetSnapTreeContext(ctx context.Context, params *GetSnapTreeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapTreeOK, error)
GetSnapTreeContextgets a snap s fork lineage tree.
Do not use the deprecated [GetSnapTreeParams.Context] with this method: it would be ignored.
func (*Client) ImportSnap ¶
func (a *Client) ImportSnap(params *ImportSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportSnapCreated, error)
ImportSnapimports a snap from an o c i image.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.ImportSnapContext instead.
func (*Client) ImportSnapContext ¶
func (a *Client) ImportSnapContext(ctx context.Context, params *ImportSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportSnapCreated, error)
ImportSnapContextimports a snap from an o c i image.
Do not use the deprecated [ImportSnapParams.Context] with this method: it would be ignored.
func (*Client) ListSnaps ¶
func (a *Client) ListSnaps(params *ListSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSnapsOK, error)
ListSnapslists snaps in a project.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.ListSnapsContext instead.
func (*Client) ListSnapsContext ¶
func (a *Client) ListSnapsContext(ctx context.Context, params *ListSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSnapsOK, error)
ListSnapsContextlists snaps in a project.
Do not use the deprecated [ListSnapsParams.Context] with this method: it would be ignored.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ContextualTransport)
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.
type ClientService ¶
type ClientService interface {
// DeleteSnap delete a snap.
DeleteSnap(params *DeleteSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapOK, error)
// DeleteSnapContext delete a snap.
DeleteSnapContext(ctx context.Context, params *DeleteSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapOK, error)
// ForkSnap fork a snap.
ForkSnap(params *ForkSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ForkSnapCreated, error)
// ForkSnapContext fork a snap.
ForkSnapContext(ctx context.Context, params *ForkSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ForkSnapCreated, error)
// GetSnap get a snap.
GetSnap(params *GetSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapOK, error)
// GetSnapContext get a snap.
GetSnapContext(ctx context.Context, params *GetSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapOK, error)
// GetSnapTree get a snap s fork lineage tree.
GetSnapTree(params *GetSnapTreeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapTreeOK, error)
// GetSnapTreeContext get a snap s fork lineage tree.
GetSnapTreeContext(ctx context.Context, params *GetSnapTreeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapTreeOK, error)
// ImportSnap import a snap from an o c i image.
ImportSnap(params *ImportSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportSnapCreated, error)
// ImportSnapContext import a snap from an o c i image.
ImportSnapContext(ctx context.Context, params *ImportSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportSnapCreated, error)
// ListSnaps list snaps in a project.
ListSnaps(params *ListSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSnapsOK, error)
// ListSnapsContext list snaps in a project.
ListSnapsContext(ctx context.Context, params *ListSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSnapsOK, error)
SetTransport(transport runtime.ContextualTransport)
}
ClientService is the interface for Client methods.
func New ¶
func New(transport runtime.ContextualTransport, formats strfmt.Registry) ClientService
New creates a new snaps API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new snaps 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 snaps 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 DeleteSnapBadRequest ¶
DeleteSnapBadRequest describes a response with status code 400, with default header values.
The request was invalid or could not be processed.
func NewDeleteSnapBadRequest ¶
func NewDeleteSnapBadRequest() *DeleteSnapBadRequest
NewDeleteSnapBadRequest creates a DeleteSnapBadRequest with default headers values
func (*DeleteSnapBadRequest) Code ¶
func (o *DeleteSnapBadRequest) Code() int
Code gets the status code for the delete snap bad request response
func (*DeleteSnapBadRequest) Error ¶
func (o *DeleteSnapBadRequest) Error() string
func (*DeleteSnapBadRequest) GetPayload ¶
func (o *DeleteSnapBadRequest) GetPayload() *models.Error
func (*DeleteSnapBadRequest) IsClientError ¶
func (o *DeleteSnapBadRequest) IsClientError() bool
IsClientError returns true when this delete snap bad request response has a 4xx status code
func (*DeleteSnapBadRequest) IsCode ¶
func (o *DeleteSnapBadRequest) IsCode(code int) bool
IsCode returns true when this delete snap bad request response a status code equal to that given
func (*DeleteSnapBadRequest) IsRedirect ¶
func (o *DeleteSnapBadRequest) IsRedirect() bool
IsRedirect returns true when this delete snap bad request response has a 3xx status code
func (*DeleteSnapBadRequest) IsServerError ¶
func (o *DeleteSnapBadRequest) IsServerError() bool
IsServerError returns true when this delete snap bad request response has a 5xx status code
func (*DeleteSnapBadRequest) IsSuccess ¶
func (o *DeleteSnapBadRequest) IsSuccess() bool
IsSuccess returns true when this delete snap bad request response has a 2xx status code
func (*DeleteSnapBadRequest) String ¶
func (o *DeleteSnapBadRequest) String() string
type DeleteSnapOK ¶
type DeleteSnapOK struct {
Payload *models.APISnapView
}
DeleteSnapOK describes a response with status code 200, with default header values.
The deleted snap.
func NewDeleteSnapOK ¶
func NewDeleteSnapOK() *DeleteSnapOK
NewDeleteSnapOK creates a DeleteSnapOK with default headers values
func (*DeleteSnapOK) Code ¶
func (o *DeleteSnapOK) Code() int
Code gets the status code for the delete snap o k response
func (*DeleteSnapOK) Error ¶
func (o *DeleteSnapOK) Error() string
func (*DeleteSnapOK) GetPayload ¶
func (o *DeleteSnapOK) GetPayload() *models.APISnapView
func (*DeleteSnapOK) IsClientError ¶
func (o *DeleteSnapOK) IsClientError() bool
IsClientError returns true when this delete snap o k response has a 4xx status code
func (*DeleteSnapOK) IsCode ¶
func (o *DeleteSnapOK) IsCode(code int) bool
IsCode returns true when this delete snap o k response a status code equal to that given
func (*DeleteSnapOK) IsRedirect ¶
func (o *DeleteSnapOK) IsRedirect() bool
IsRedirect returns true when this delete snap o k response has a 3xx status code
func (*DeleteSnapOK) IsServerError ¶
func (o *DeleteSnapOK) IsServerError() bool
IsServerError returns true when this delete snap o k response has a 5xx status code
func (*DeleteSnapOK) IsSuccess ¶
func (o *DeleteSnapOK) IsSuccess() bool
IsSuccess returns true when this delete snap o k response has a 2xx status code
func (*DeleteSnapOK) String ¶
func (o *DeleteSnapOK) String() string
type DeleteSnapParams ¶
type DeleteSnapParams struct {
/* ID.
Resource identifier.
*/
ID string
/* ProjectCid.
Project handle (`project_cid`).
*/
ProjectCid string
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteSnapParams contains all the parameters to send to the API endpoint
for the delete snap operation. Typically these are written to a http.Request.
func NewDeleteSnapParams ¶
func NewDeleteSnapParams() *DeleteSnapParams
NewDeleteSnapParams creates a new DeleteSnapParams 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 NewDeleteSnapParamsWithContext
deprecated
func NewDeleteSnapParamsWithContext(ctx context.Context) *DeleteSnapParams
NewDeleteSnapParamsWithContext creates a new DeleteSnapParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of DeleteSnapParams.
func NewDeleteSnapParamsWithHTTPClient ¶
func NewDeleteSnapParamsWithHTTPClient(client *http.Client) *DeleteSnapParams
NewDeleteSnapParamsWithHTTPClient creates a new DeleteSnapParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSnapParamsWithTimeout ¶
func NewDeleteSnapParamsWithTimeout(timeout time.Duration) *DeleteSnapParams
NewDeleteSnapParamsWithTimeout creates a new DeleteSnapParams object with the ability to set a timeout on a request.
func (*DeleteSnapParams) SetContext
deprecated
func (o *DeleteSnapParams) SetContext(ctx context.Context)
SetContext adds the context to the delete snap params.
Deprecated: use the operation call with context to pass the context instead of DeleteSnapParams.
func (*DeleteSnapParams) SetDefaults ¶
func (o *DeleteSnapParams) SetDefaults()
SetDefaults hydrates default values in the delete snap params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSnapParams) SetHTTPClient ¶
func (o *DeleteSnapParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete snap params.
func (*DeleteSnapParams) SetID ¶
func (o *DeleteSnapParams) SetID(id string)
SetID adds the id to the delete snap params.
func (*DeleteSnapParams) SetProjectCid ¶
func (o *DeleteSnapParams) SetProjectCid(projectCid string)
SetProjectCid adds the projectCid to the delete snap params.
func (*DeleteSnapParams) SetTimeout ¶
func (o *DeleteSnapParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete snap params.
func (*DeleteSnapParams) WithContext
deprecated
func (o *DeleteSnapParams) WithContext(ctx context.Context) *DeleteSnapParams
WithContext adds the context to the delete snap params.
Deprecated: use the operation call with context to pass the context instead of DeleteSnapParams.
func (*DeleteSnapParams) WithDefaults ¶
func (o *DeleteSnapParams) WithDefaults() *DeleteSnapParams
WithDefaults hydrates default values in the delete snap params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSnapParams) WithHTTPClient ¶
func (o *DeleteSnapParams) WithHTTPClient(client *http.Client) *DeleteSnapParams
WithHTTPClient adds the HTTPClient to the delete snap params.
func (*DeleteSnapParams) WithID ¶
func (o *DeleteSnapParams) WithID(id string) *DeleteSnapParams
WithID adds the id to the delete snap params.
func (*DeleteSnapParams) WithProjectCid ¶
func (o *DeleteSnapParams) WithProjectCid(projectCid string) *DeleteSnapParams
WithProjectCid adds the projectCid to the delete snap params.
func (*DeleteSnapParams) WithTimeout ¶
func (o *DeleteSnapParams) WithTimeout(timeout time.Duration) *DeleteSnapParams
WithTimeout adds the timeout to the delete snap params.
func (*DeleteSnapParams) WriteToRequest ¶
func (o *DeleteSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type DeleteSnapReader ¶
type DeleteSnapReader struct {
// contains filtered or unexported fields
}
DeleteSnapReader is a Reader for the DeleteSnap structure.
func (*DeleteSnapReader) ReadResponse ¶
func (o *DeleteSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type DeleteSnapUnauthorized ¶
type DeleteSnapUnauthorized struct {
}
DeleteSnapUnauthorized describes a response with status code 401, with default header values.
Missing or invalid credentials.
func NewDeleteSnapUnauthorized ¶
func NewDeleteSnapUnauthorized() *DeleteSnapUnauthorized
NewDeleteSnapUnauthorized creates a DeleteSnapUnauthorized with default headers values
func (*DeleteSnapUnauthorized) Code ¶
func (o *DeleteSnapUnauthorized) Code() int
Code gets the status code for the delete snap unauthorized response
func (*DeleteSnapUnauthorized) Error ¶
func (o *DeleteSnapUnauthorized) Error() string
func (*DeleteSnapUnauthorized) GetPayload ¶
func (o *DeleteSnapUnauthorized) GetPayload() *models.Error
func (*DeleteSnapUnauthorized) IsClientError ¶
func (o *DeleteSnapUnauthorized) IsClientError() bool
IsClientError returns true when this delete snap unauthorized response has a 4xx status code
func (*DeleteSnapUnauthorized) IsCode ¶
func (o *DeleteSnapUnauthorized) IsCode(code int) bool
IsCode returns true when this delete snap unauthorized response a status code equal to that given
func (*DeleteSnapUnauthorized) IsRedirect ¶
func (o *DeleteSnapUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete snap unauthorized response has a 3xx status code
func (*DeleteSnapUnauthorized) IsServerError ¶
func (o *DeleteSnapUnauthorized) IsServerError() bool
IsServerError returns true when this delete snap unauthorized response has a 5xx status code
func (*DeleteSnapUnauthorized) IsSuccess ¶
func (o *DeleteSnapUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete snap unauthorized response has a 2xx status code
func (*DeleteSnapUnauthorized) String ¶
func (o *DeleteSnapUnauthorized) String() string
type ForkSnapBadRequest ¶
ForkSnapBadRequest describes a response with status code 400, with default header values.
The request was invalid or could not be processed.
func NewForkSnapBadRequest ¶
func NewForkSnapBadRequest() *ForkSnapBadRequest
NewForkSnapBadRequest creates a ForkSnapBadRequest with default headers values
func (*ForkSnapBadRequest) Code ¶
func (o *ForkSnapBadRequest) Code() int
Code gets the status code for the fork snap bad request response
func (*ForkSnapBadRequest) Error ¶
func (o *ForkSnapBadRequest) Error() string
func (*ForkSnapBadRequest) GetPayload ¶
func (o *ForkSnapBadRequest) GetPayload() *models.Error
func (*ForkSnapBadRequest) IsClientError ¶
func (o *ForkSnapBadRequest) IsClientError() bool
IsClientError returns true when this fork snap bad request response has a 4xx status code
func (*ForkSnapBadRequest) IsCode ¶
func (o *ForkSnapBadRequest) IsCode(code int) bool
IsCode returns true when this fork snap bad request response a status code equal to that given
func (*ForkSnapBadRequest) IsRedirect ¶
func (o *ForkSnapBadRequest) IsRedirect() bool
IsRedirect returns true when this fork snap bad request response has a 3xx status code
func (*ForkSnapBadRequest) IsServerError ¶
func (o *ForkSnapBadRequest) IsServerError() bool
IsServerError returns true when this fork snap bad request response has a 5xx status code
func (*ForkSnapBadRequest) IsSuccess ¶
func (o *ForkSnapBadRequest) IsSuccess() bool
IsSuccess returns true when this fork snap bad request response has a 2xx status code
func (*ForkSnapBadRequest) String ¶
func (o *ForkSnapBadRequest) String() string
type ForkSnapCreated ¶
type ForkSnapCreated struct {
Payload *models.APISnapView
}
ForkSnapCreated describes a response with status code 201, with default header values.
The new forked snap.
func NewForkSnapCreated ¶
func NewForkSnapCreated() *ForkSnapCreated
NewForkSnapCreated creates a ForkSnapCreated with default headers values
func (*ForkSnapCreated) Code ¶
func (o *ForkSnapCreated) Code() int
Code gets the status code for the fork snap created response
func (*ForkSnapCreated) Error ¶
func (o *ForkSnapCreated) Error() string
func (*ForkSnapCreated) GetPayload ¶
func (o *ForkSnapCreated) GetPayload() *models.APISnapView
func (*ForkSnapCreated) IsClientError ¶
func (o *ForkSnapCreated) IsClientError() bool
IsClientError returns true when this fork snap created response has a 4xx status code
func (*ForkSnapCreated) IsCode ¶
func (o *ForkSnapCreated) IsCode(code int) bool
IsCode returns true when this fork snap created response a status code equal to that given
func (*ForkSnapCreated) IsRedirect ¶
func (o *ForkSnapCreated) IsRedirect() bool
IsRedirect returns true when this fork snap created response has a 3xx status code
func (*ForkSnapCreated) IsServerError ¶
func (o *ForkSnapCreated) IsServerError() bool
IsServerError returns true when this fork snap created response has a 5xx status code
func (*ForkSnapCreated) IsSuccess ¶
func (o *ForkSnapCreated) IsSuccess() bool
IsSuccess returns true when this fork snap created response has a 2xx status code
func (*ForkSnapCreated) String ¶
func (o *ForkSnapCreated) String() string
type ForkSnapParams ¶
type ForkSnapParams struct {
/* ID.
Resource identifier.
*/
ID string
/* ProjectCid.
Project handle (`project_cid`).
*/
ProjectCid string
HTTPClient *http.Client
// contains filtered or unexported fields
}
ForkSnapParams contains all the parameters to send to the API endpoint
for the fork snap operation. Typically these are written to a http.Request.
func NewForkSnapParams ¶
func NewForkSnapParams() *ForkSnapParams
NewForkSnapParams creates a new ForkSnapParams 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 NewForkSnapParamsWithContext
deprecated
func NewForkSnapParamsWithContext(ctx context.Context) *ForkSnapParams
NewForkSnapParamsWithContext creates a new ForkSnapParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of ForkSnapParams.
func NewForkSnapParamsWithHTTPClient ¶
func NewForkSnapParamsWithHTTPClient(client *http.Client) *ForkSnapParams
NewForkSnapParamsWithHTTPClient creates a new ForkSnapParams object with the ability to set a custom HTTPClient for a request.
func NewForkSnapParamsWithTimeout ¶
func NewForkSnapParamsWithTimeout(timeout time.Duration) *ForkSnapParams
NewForkSnapParamsWithTimeout creates a new ForkSnapParams object with the ability to set a timeout on a request.
func (*ForkSnapParams) SetContext
deprecated
func (o *ForkSnapParams) SetContext(ctx context.Context)
SetContext adds the context to the fork snap params.
Deprecated: use the operation call with context to pass the context instead of ForkSnapParams.
func (*ForkSnapParams) SetDefaults ¶
func (o *ForkSnapParams) SetDefaults()
SetDefaults hydrates default values in the fork snap params (not the query body).
All values with no default are reset to their zero value.
func (*ForkSnapParams) SetHTTPClient ¶
func (o *ForkSnapParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the fork snap params.
func (*ForkSnapParams) SetID ¶
func (o *ForkSnapParams) SetID(id string)
SetID adds the id to the fork snap params.
func (*ForkSnapParams) SetProjectCid ¶
func (o *ForkSnapParams) SetProjectCid(projectCid string)
SetProjectCid adds the projectCid to the fork snap params.
func (*ForkSnapParams) SetTimeout ¶
func (o *ForkSnapParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the fork snap params.
func (*ForkSnapParams) WithContext
deprecated
func (o *ForkSnapParams) WithContext(ctx context.Context) *ForkSnapParams
WithContext adds the context to the fork snap params.
Deprecated: use the operation call with context to pass the context instead of ForkSnapParams.
func (*ForkSnapParams) WithDefaults ¶
func (o *ForkSnapParams) WithDefaults() *ForkSnapParams
WithDefaults hydrates default values in the fork snap params (not the query body).
All values with no default are reset to their zero value.
func (*ForkSnapParams) WithHTTPClient ¶
func (o *ForkSnapParams) WithHTTPClient(client *http.Client) *ForkSnapParams
WithHTTPClient adds the HTTPClient to the fork snap params.
func (*ForkSnapParams) WithID ¶
func (o *ForkSnapParams) WithID(id string) *ForkSnapParams
WithID adds the id to the fork snap params.
func (*ForkSnapParams) WithProjectCid ¶
func (o *ForkSnapParams) WithProjectCid(projectCid string) *ForkSnapParams
WithProjectCid adds the projectCid to the fork snap params.
func (*ForkSnapParams) WithTimeout ¶
func (o *ForkSnapParams) WithTimeout(timeout time.Duration) *ForkSnapParams
WithTimeout adds the timeout to the fork snap params.
func (*ForkSnapParams) WriteToRequest ¶
func (o *ForkSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type ForkSnapReader ¶
type ForkSnapReader struct {
// contains filtered or unexported fields
}
ForkSnapReader is a Reader for the ForkSnap structure.
func (*ForkSnapReader) ReadResponse ¶
func (o *ForkSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ForkSnapUnauthorized ¶
type ForkSnapUnauthorized struct {
}
ForkSnapUnauthorized describes a response with status code 401, with default header values.
Missing or invalid credentials.
func NewForkSnapUnauthorized ¶
func NewForkSnapUnauthorized() *ForkSnapUnauthorized
NewForkSnapUnauthorized creates a ForkSnapUnauthorized with default headers values
func (*ForkSnapUnauthorized) Code ¶
func (o *ForkSnapUnauthorized) Code() int
Code gets the status code for the fork snap unauthorized response
func (*ForkSnapUnauthorized) Error ¶
func (o *ForkSnapUnauthorized) Error() string
func (*ForkSnapUnauthorized) GetPayload ¶
func (o *ForkSnapUnauthorized) GetPayload() *models.Error
func (*ForkSnapUnauthorized) IsClientError ¶
func (o *ForkSnapUnauthorized) IsClientError() bool
IsClientError returns true when this fork snap unauthorized response has a 4xx status code
func (*ForkSnapUnauthorized) IsCode ¶
func (o *ForkSnapUnauthorized) IsCode(code int) bool
IsCode returns true when this fork snap unauthorized response a status code equal to that given
func (*ForkSnapUnauthorized) IsRedirect ¶
func (o *ForkSnapUnauthorized) IsRedirect() bool
IsRedirect returns true when this fork snap unauthorized response has a 3xx status code
func (*ForkSnapUnauthorized) IsServerError ¶
func (o *ForkSnapUnauthorized) IsServerError() bool
IsServerError returns true when this fork snap unauthorized response has a 5xx status code
func (*ForkSnapUnauthorized) IsSuccess ¶
func (o *ForkSnapUnauthorized) IsSuccess() bool
IsSuccess returns true when this fork snap unauthorized response has a 2xx status code
func (*ForkSnapUnauthorized) String ¶
func (o *ForkSnapUnauthorized) String() string
type GetSnapBadRequest ¶
GetSnapBadRequest describes a response with status code 400, with default header values.
The request was invalid or could not be processed.
func NewGetSnapBadRequest ¶
func NewGetSnapBadRequest() *GetSnapBadRequest
NewGetSnapBadRequest creates a GetSnapBadRequest with default headers values
func (*GetSnapBadRequest) Code ¶
func (o *GetSnapBadRequest) Code() int
Code gets the status code for the get snap bad request response
func (*GetSnapBadRequest) Error ¶
func (o *GetSnapBadRequest) Error() string
func (*GetSnapBadRequest) GetPayload ¶
func (o *GetSnapBadRequest) GetPayload() *models.Error
func (*GetSnapBadRequest) IsClientError ¶
func (o *GetSnapBadRequest) IsClientError() bool
IsClientError returns true when this get snap bad request response has a 4xx status code
func (*GetSnapBadRequest) IsCode ¶
func (o *GetSnapBadRequest) IsCode(code int) bool
IsCode returns true when this get snap bad request response a status code equal to that given
func (*GetSnapBadRequest) IsRedirect ¶
func (o *GetSnapBadRequest) IsRedirect() bool
IsRedirect returns true when this get snap bad request response has a 3xx status code
func (*GetSnapBadRequest) IsServerError ¶
func (o *GetSnapBadRequest) IsServerError() bool
IsServerError returns true when this get snap bad request response has a 5xx status code
func (*GetSnapBadRequest) IsSuccess ¶
func (o *GetSnapBadRequest) IsSuccess() bool
IsSuccess returns true when this get snap bad request response has a 2xx status code
func (*GetSnapBadRequest) String ¶
func (o *GetSnapBadRequest) String() string
type GetSnapOK ¶
type GetSnapOK struct {
Payload *models.APISnapView
}
GetSnapOK describes a response with status code 200, with default header values.
The snap.
func NewGetSnapOK ¶
func NewGetSnapOK() *GetSnapOK
NewGetSnapOK creates a GetSnapOK with default headers values
func (*GetSnapOK) GetPayload ¶
func (o *GetSnapOK) GetPayload() *models.APISnapView
func (*GetSnapOK) IsClientError ¶
IsClientError returns true when this get snap o k response has a 4xx status code
func (*GetSnapOK) IsCode ¶
IsCode returns true when this get snap o k response a status code equal to that given
func (*GetSnapOK) IsRedirect ¶
IsRedirect returns true when this get snap o k response has a 3xx status code
func (*GetSnapOK) IsServerError ¶
IsServerError returns true when this get snap o k response has a 5xx status code
type GetSnapParams ¶
type GetSnapParams struct {
/* ID.
Resource identifier.
*/
ID string
/* ProjectCid.
Project handle (`project_cid`).
*/
ProjectCid string
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSnapParams contains all the parameters to send to the API endpoint
for the get snap operation. Typically these are written to a http.Request.
func NewGetSnapParams ¶
func NewGetSnapParams() *GetSnapParams
NewGetSnapParams creates a new GetSnapParams 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 NewGetSnapParamsWithContext
deprecated
func NewGetSnapParamsWithContext(ctx context.Context) *GetSnapParams
NewGetSnapParamsWithContext creates a new GetSnapParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetSnapParams.
func NewGetSnapParamsWithHTTPClient ¶
func NewGetSnapParamsWithHTTPClient(client *http.Client) *GetSnapParams
NewGetSnapParamsWithHTTPClient creates a new GetSnapParams object with the ability to set a custom HTTPClient for a request.
func NewGetSnapParamsWithTimeout ¶
func NewGetSnapParamsWithTimeout(timeout time.Duration) *GetSnapParams
NewGetSnapParamsWithTimeout creates a new GetSnapParams object with the ability to set a timeout on a request.
func (*GetSnapParams) SetContext
deprecated
func (o *GetSnapParams) SetContext(ctx context.Context)
SetContext adds the context to the get snap params.
Deprecated: use the operation call with context to pass the context instead of GetSnapParams.
func (*GetSnapParams) SetDefaults ¶
func (o *GetSnapParams) SetDefaults()
SetDefaults hydrates default values in the get snap params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnapParams) SetHTTPClient ¶
func (o *GetSnapParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get snap params.
func (*GetSnapParams) SetID ¶
func (o *GetSnapParams) SetID(id string)
SetID adds the id to the get snap params.
func (*GetSnapParams) SetProjectCid ¶
func (o *GetSnapParams) SetProjectCid(projectCid string)
SetProjectCid adds the projectCid to the get snap params.
func (*GetSnapParams) SetTimeout ¶
func (o *GetSnapParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get snap params.
func (*GetSnapParams) WithContext
deprecated
func (o *GetSnapParams) WithContext(ctx context.Context) *GetSnapParams
WithContext adds the context to the get snap params.
Deprecated: use the operation call with context to pass the context instead of GetSnapParams.
func (*GetSnapParams) WithDefaults ¶
func (o *GetSnapParams) WithDefaults() *GetSnapParams
WithDefaults hydrates default values in the get snap params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnapParams) WithHTTPClient ¶
func (o *GetSnapParams) WithHTTPClient(client *http.Client) *GetSnapParams
WithHTTPClient adds the HTTPClient to the get snap params.
func (*GetSnapParams) WithID ¶
func (o *GetSnapParams) WithID(id string) *GetSnapParams
WithID adds the id to the get snap params.
func (*GetSnapParams) WithProjectCid ¶
func (o *GetSnapParams) WithProjectCid(projectCid string) *GetSnapParams
WithProjectCid adds the projectCid to the get snap params.
func (*GetSnapParams) WithTimeout ¶
func (o *GetSnapParams) WithTimeout(timeout time.Duration) *GetSnapParams
WithTimeout adds the timeout to the get snap params.
func (*GetSnapParams) WriteToRequest ¶
func (o *GetSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetSnapReader ¶
type GetSnapReader struct {
// contains filtered or unexported fields
}
GetSnapReader is a Reader for the GetSnap structure.
func (*GetSnapReader) ReadResponse ¶
func (o *GetSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetSnapTreeBadRequest ¶
GetSnapTreeBadRequest describes a response with status code 400, with default header values.
The request was invalid or could not be processed.
func NewGetSnapTreeBadRequest ¶
func NewGetSnapTreeBadRequest() *GetSnapTreeBadRequest
NewGetSnapTreeBadRequest creates a GetSnapTreeBadRequest with default headers values
func (*GetSnapTreeBadRequest) Code ¶
func (o *GetSnapTreeBadRequest) Code() int
Code gets the status code for the get snap tree bad request response
func (*GetSnapTreeBadRequest) Error ¶
func (o *GetSnapTreeBadRequest) Error() string
func (*GetSnapTreeBadRequest) GetPayload ¶
func (o *GetSnapTreeBadRequest) GetPayload() *models.Error
func (*GetSnapTreeBadRequest) IsClientError ¶
func (o *GetSnapTreeBadRequest) IsClientError() bool
IsClientError returns true when this get snap tree bad request response has a 4xx status code
func (*GetSnapTreeBadRequest) IsCode ¶
func (o *GetSnapTreeBadRequest) IsCode(code int) bool
IsCode returns true when this get snap tree bad request response a status code equal to that given
func (*GetSnapTreeBadRequest) IsRedirect ¶
func (o *GetSnapTreeBadRequest) IsRedirect() bool
IsRedirect returns true when this get snap tree bad request response has a 3xx status code
func (*GetSnapTreeBadRequest) IsServerError ¶
func (o *GetSnapTreeBadRequest) IsServerError() bool
IsServerError returns true when this get snap tree bad request response has a 5xx status code
func (*GetSnapTreeBadRequest) IsSuccess ¶
func (o *GetSnapTreeBadRequest) IsSuccess() bool
IsSuccess returns true when this get snap tree bad request response has a 2xx status code
func (*GetSnapTreeBadRequest) String ¶
func (o *GetSnapTreeBadRequest) String() string
type GetSnapTreeOK ¶
type GetSnapTreeOK struct {
Payload *models.APISnapTreeView
}
GetSnapTreeOK describes a response with status code 200, with default header values.
The snap tree.
func NewGetSnapTreeOK ¶
func NewGetSnapTreeOK() *GetSnapTreeOK
NewGetSnapTreeOK creates a GetSnapTreeOK with default headers values
func (*GetSnapTreeOK) Code ¶
func (o *GetSnapTreeOK) Code() int
Code gets the status code for the get snap tree o k response
func (*GetSnapTreeOK) Error ¶
func (o *GetSnapTreeOK) Error() string
func (*GetSnapTreeOK) GetPayload ¶
func (o *GetSnapTreeOK) GetPayload() *models.APISnapTreeView
func (*GetSnapTreeOK) IsClientError ¶
func (o *GetSnapTreeOK) IsClientError() bool
IsClientError returns true when this get snap tree o k response has a 4xx status code
func (*GetSnapTreeOK) IsCode ¶
func (o *GetSnapTreeOK) IsCode(code int) bool
IsCode returns true when this get snap tree o k response a status code equal to that given
func (*GetSnapTreeOK) IsRedirect ¶
func (o *GetSnapTreeOK) IsRedirect() bool
IsRedirect returns true when this get snap tree o k response has a 3xx status code
func (*GetSnapTreeOK) IsServerError ¶
func (o *GetSnapTreeOK) IsServerError() bool
IsServerError returns true when this get snap tree o k response has a 5xx status code
func (*GetSnapTreeOK) IsSuccess ¶
func (o *GetSnapTreeOK) IsSuccess() bool
IsSuccess returns true when this get snap tree o k response has a 2xx status code
func (*GetSnapTreeOK) String ¶
func (o *GetSnapTreeOK) String() string
type GetSnapTreeParams ¶
type GetSnapTreeParams struct {
/* ID.
Resource identifier.
*/
ID string
/* ProjectCid.
Project handle (`project_cid`).
*/
ProjectCid string
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSnapTreeParams contains all the parameters to send to the API endpoint
for the get snap tree operation. Typically these are written to a http.Request.
func NewGetSnapTreeParams ¶
func NewGetSnapTreeParams() *GetSnapTreeParams
NewGetSnapTreeParams creates a new GetSnapTreeParams 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 NewGetSnapTreeParamsWithContext
deprecated
func NewGetSnapTreeParamsWithContext(ctx context.Context) *GetSnapTreeParams
NewGetSnapTreeParamsWithContext creates a new GetSnapTreeParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetSnapTreeParams.
func NewGetSnapTreeParamsWithHTTPClient ¶
func NewGetSnapTreeParamsWithHTTPClient(client *http.Client) *GetSnapTreeParams
NewGetSnapTreeParamsWithHTTPClient creates a new GetSnapTreeParams object with the ability to set a custom HTTPClient for a request.
func NewGetSnapTreeParamsWithTimeout ¶
func NewGetSnapTreeParamsWithTimeout(timeout time.Duration) *GetSnapTreeParams
NewGetSnapTreeParamsWithTimeout creates a new GetSnapTreeParams object with the ability to set a timeout on a request.
func (*GetSnapTreeParams) SetContext
deprecated
func (o *GetSnapTreeParams) SetContext(ctx context.Context)
SetContext adds the context to the get snap tree params.
Deprecated: use the operation call with context to pass the context instead of GetSnapTreeParams.
func (*GetSnapTreeParams) SetDefaults ¶
func (o *GetSnapTreeParams) SetDefaults()
SetDefaults hydrates default values in the get snap tree params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnapTreeParams) SetHTTPClient ¶
func (o *GetSnapTreeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get snap tree params.
func (*GetSnapTreeParams) SetID ¶
func (o *GetSnapTreeParams) SetID(id string)
SetID adds the id to the get snap tree params.
func (*GetSnapTreeParams) SetProjectCid ¶
func (o *GetSnapTreeParams) SetProjectCid(projectCid string)
SetProjectCid adds the projectCid to the get snap tree params.
func (*GetSnapTreeParams) SetTimeout ¶
func (o *GetSnapTreeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get snap tree params.
func (*GetSnapTreeParams) WithContext
deprecated
func (o *GetSnapTreeParams) WithContext(ctx context.Context) *GetSnapTreeParams
WithContext adds the context to the get snap tree params.
Deprecated: use the operation call with context to pass the context instead of GetSnapTreeParams.
func (*GetSnapTreeParams) WithDefaults ¶
func (o *GetSnapTreeParams) WithDefaults() *GetSnapTreeParams
WithDefaults hydrates default values in the get snap tree params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnapTreeParams) WithHTTPClient ¶
func (o *GetSnapTreeParams) WithHTTPClient(client *http.Client) *GetSnapTreeParams
WithHTTPClient adds the HTTPClient to the get snap tree params.
func (*GetSnapTreeParams) WithID ¶
func (o *GetSnapTreeParams) WithID(id string) *GetSnapTreeParams
WithID adds the id to the get snap tree params.
func (*GetSnapTreeParams) WithProjectCid ¶
func (o *GetSnapTreeParams) WithProjectCid(projectCid string) *GetSnapTreeParams
WithProjectCid adds the projectCid to the get snap tree params.
func (*GetSnapTreeParams) WithTimeout ¶
func (o *GetSnapTreeParams) WithTimeout(timeout time.Duration) *GetSnapTreeParams
WithTimeout adds the timeout to the get snap tree params.
func (*GetSnapTreeParams) WriteToRequest ¶
func (o *GetSnapTreeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetSnapTreeReader ¶
type GetSnapTreeReader struct {
// contains filtered or unexported fields
}
GetSnapTreeReader is a Reader for the GetSnapTree structure.
func (*GetSnapTreeReader) ReadResponse ¶
func (o *GetSnapTreeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetSnapTreeUnauthorized ¶
type GetSnapTreeUnauthorized struct {
}
GetSnapTreeUnauthorized describes a response with status code 401, with default header values.
Missing or invalid credentials.
func NewGetSnapTreeUnauthorized ¶
func NewGetSnapTreeUnauthorized() *GetSnapTreeUnauthorized
NewGetSnapTreeUnauthorized creates a GetSnapTreeUnauthorized with default headers values
func (*GetSnapTreeUnauthorized) Code ¶
func (o *GetSnapTreeUnauthorized) Code() int
Code gets the status code for the get snap tree unauthorized response
func (*GetSnapTreeUnauthorized) Error ¶
func (o *GetSnapTreeUnauthorized) Error() string
func (*GetSnapTreeUnauthorized) GetPayload ¶
func (o *GetSnapTreeUnauthorized) GetPayload() *models.Error
func (*GetSnapTreeUnauthorized) IsClientError ¶
func (o *GetSnapTreeUnauthorized) IsClientError() bool
IsClientError returns true when this get snap tree unauthorized response has a 4xx status code
func (*GetSnapTreeUnauthorized) IsCode ¶
func (o *GetSnapTreeUnauthorized) IsCode(code int) bool
IsCode returns true when this get snap tree unauthorized response a status code equal to that given
func (*GetSnapTreeUnauthorized) IsRedirect ¶
func (o *GetSnapTreeUnauthorized) IsRedirect() bool
IsRedirect returns true when this get snap tree unauthorized response has a 3xx status code
func (*GetSnapTreeUnauthorized) IsServerError ¶
func (o *GetSnapTreeUnauthorized) IsServerError() bool
IsServerError returns true when this get snap tree unauthorized response has a 5xx status code
func (*GetSnapTreeUnauthorized) IsSuccess ¶
func (o *GetSnapTreeUnauthorized) IsSuccess() bool
IsSuccess returns true when this get snap tree unauthorized response has a 2xx status code
func (*GetSnapTreeUnauthorized) String ¶
func (o *GetSnapTreeUnauthorized) String() string
type GetSnapUnauthorized ¶
type GetSnapUnauthorized struct {
}
GetSnapUnauthorized describes a response with status code 401, with default header values.
Missing or invalid credentials.
func NewGetSnapUnauthorized ¶
func NewGetSnapUnauthorized() *GetSnapUnauthorized
NewGetSnapUnauthorized creates a GetSnapUnauthorized with default headers values
func (*GetSnapUnauthorized) Code ¶
func (o *GetSnapUnauthorized) Code() int
Code gets the status code for the get snap unauthorized response
func (*GetSnapUnauthorized) Error ¶
func (o *GetSnapUnauthorized) Error() string
func (*GetSnapUnauthorized) GetPayload ¶
func (o *GetSnapUnauthorized) GetPayload() *models.Error
func (*GetSnapUnauthorized) IsClientError ¶
func (o *GetSnapUnauthorized) IsClientError() bool
IsClientError returns true when this get snap unauthorized response has a 4xx status code
func (*GetSnapUnauthorized) IsCode ¶
func (o *GetSnapUnauthorized) IsCode(code int) bool
IsCode returns true when this get snap unauthorized response a status code equal to that given
func (*GetSnapUnauthorized) IsRedirect ¶
func (o *GetSnapUnauthorized) IsRedirect() bool
IsRedirect returns true when this get snap unauthorized response has a 3xx status code
func (*GetSnapUnauthorized) IsServerError ¶
func (o *GetSnapUnauthorized) IsServerError() bool
IsServerError returns true when this get snap unauthorized response has a 5xx status code
func (*GetSnapUnauthorized) IsSuccess ¶
func (o *GetSnapUnauthorized) IsSuccess() bool
IsSuccess returns true when this get snap unauthorized response has a 2xx status code
func (*GetSnapUnauthorized) String ¶
func (o *GetSnapUnauthorized) String() string
type ImportSnapBadRequest ¶
ImportSnapBadRequest describes a response with status code 400, with default header values.
The request was invalid or could not be processed.
func NewImportSnapBadRequest ¶
func NewImportSnapBadRequest() *ImportSnapBadRequest
NewImportSnapBadRequest creates a ImportSnapBadRequest with default headers values
func (*ImportSnapBadRequest) Code ¶
func (o *ImportSnapBadRequest) Code() int
Code gets the status code for the import snap bad request response
func (*ImportSnapBadRequest) Error ¶
func (o *ImportSnapBadRequest) Error() string
func (*ImportSnapBadRequest) GetPayload ¶
func (o *ImportSnapBadRequest) GetPayload() *models.Error
func (*ImportSnapBadRequest) IsClientError ¶
func (o *ImportSnapBadRequest) IsClientError() bool
IsClientError returns true when this import snap bad request response has a 4xx status code
func (*ImportSnapBadRequest) IsCode ¶
func (o *ImportSnapBadRequest) IsCode(code int) bool
IsCode returns true when this import snap bad request response a status code equal to that given
func (*ImportSnapBadRequest) IsRedirect ¶
func (o *ImportSnapBadRequest) IsRedirect() bool
IsRedirect returns true when this import snap bad request response has a 3xx status code
func (*ImportSnapBadRequest) IsServerError ¶
func (o *ImportSnapBadRequest) IsServerError() bool
IsServerError returns true when this import snap bad request response has a 5xx status code
func (*ImportSnapBadRequest) IsSuccess ¶
func (o *ImportSnapBadRequest) IsSuccess() bool
IsSuccess returns true when this import snap bad request response has a 2xx status code
func (*ImportSnapBadRequest) String ¶
func (o *ImportSnapBadRequest) String() string
type ImportSnapCreated ¶
type ImportSnapCreated struct {
Payload *models.APISnapView
}
ImportSnapCreated describes a response with status code 201, with default header values.
The imported snap.
func NewImportSnapCreated ¶
func NewImportSnapCreated() *ImportSnapCreated
NewImportSnapCreated creates a ImportSnapCreated with default headers values
func (*ImportSnapCreated) Code ¶
func (o *ImportSnapCreated) Code() int
Code gets the status code for the import snap created response
func (*ImportSnapCreated) Error ¶
func (o *ImportSnapCreated) Error() string
func (*ImportSnapCreated) GetPayload ¶
func (o *ImportSnapCreated) GetPayload() *models.APISnapView
func (*ImportSnapCreated) IsClientError ¶
func (o *ImportSnapCreated) IsClientError() bool
IsClientError returns true when this import snap created response has a 4xx status code
func (*ImportSnapCreated) IsCode ¶
func (o *ImportSnapCreated) IsCode(code int) bool
IsCode returns true when this import snap created response a status code equal to that given
func (*ImportSnapCreated) IsRedirect ¶
func (o *ImportSnapCreated) IsRedirect() bool
IsRedirect returns true when this import snap created response has a 3xx status code
func (*ImportSnapCreated) IsServerError ¶
func (o *ImportSnapCreated) IsServerError() bool
IsServerError returns true when this import snap created response has a 5xx status code
func (*ImportSnapCreated) IsSuccess ¶
func (o *ImportSnapCreated) IsSuccess() bool
IsSuccess returns true when this import snap created response has a 2xx status code
func (*ImportSnapCreated) String ¶
func (o *ImportSnapCreated) String() string
type ImportSnapParams ¶
type ImportSnapParams struct {
/* ProjectCid.
Project handle (`project_cid`).
*/
ProjectCid string
/* Request.
Request body
*/
Request *models.ImportSnapPayload
HTTPClient *http.Client
// contains filtered or unexported fields
}
ImportSnapParams contains all the parameters to send to the API endpoint
for the import snap operation. Typically these are written to a http.Request.
func NewImportSnapParams ¶
func NewImportSnapParams() *ImportSnapParams
NewImportSnapParams creates a new ImportSnapParams 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 NewImportSnapParamsWithContext
deprecated
func NewImportSnapParamsWithContext(ctx context.Context) *ImportSnapParams
NewImportSnapParamsWithContext creates a new ImportSnapParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of ImportSnapParams.
func NewImportSnapParamsWithHTTPClient ¶
func NewImportSnapParamsWithHTTPClient(client *http.Client) *ImportSnapParams
NewImportSnapParamsWithHTTPClient creates a new ImportSnapParams object with the ability to set a custom HTTPClient for a request.
func NewImportSnapParamsWithTimeout ¶
func NewImportSnapParamsWithTimeout(timeout time.Duration) *ImportSnapParams
NewImportSnapParamsWithTimeout creates a new ImportSnapParams object with the ability to set a timeout on a request.
func (*ImportSnapParams) SetContext
deprecated
func (o *ImportSnapParams) SetContext(ctx context.Context)
SetContext adds the context to the import snap params.
Deprecated: use the operation call with context to pass the context instead of ImportSnapParams.
func (*ImportSnapParams) SetDefaults ¶
func (o *ImportSnapParams) SetDefaults()
SetDefaults hydrates default values in the import snap params (not the query body).
All values with no default are reset to their zero value.
func (*ImportSnapParams) SetHTTPClient ¶
func (o *ImportSnapParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the import snap params.
func (*ImportSnapParams) SetProjectCid ¶
func (o *ImportSnapParams) SetProjectCid(projectCid string)
SetProjectCid adds the projectCid to the import snap params.
func (*ImportSnapParams) SetRequest ¶
func (o *ImportSnapParams) SetRequest(request *models.ImportSnapPayload)
SetRequest adds the request to the import snap params.
func (*ImportSnapParams) SetTimeout ¶
func (o *ImportSnapParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the import snap params.
func (*ImportSnapParams) WithContext
deprecated
func (o *ImportSnapParams) WithContext(ctx context.Context) *ImportSnapParams
WithContext adds the context to the import snap params.
Deprecated: use the operation call with context to pass the context instead of ImportSnapParams.
func (*ImportSnapParams) WithDefaults ¶
func (o *ImportSnapParams) WithDefaults() *ImportSnapParams
WithDefaults hydrates default values in the import snap params (not the query body).
All values with no default are reset to their zero value.
func (*ImportSnapParams) WithHTTPClient ¶
func (o *ImportSnapParams) WithHTTPClient(client *http.Client) *ImportSnapParams
WithHTTPClient adds the HTTPClient to the import snap params.
func (*ImportSnapParams) WithProjectCid ¶
func (o *ImportSnapParams) WithProjectCid(projectCid string) *ImportSnapParams
WithProjectCid adds the projectCid to the import snap params.
func (*ImportSnapParams) WithRequest ¶
func (o *ImportSnapParams) WithRequest(request *models.ImportSnapPayload) *ImportSnapParams
WithRequest adds the request to the import snap params.
func (*ImportSnapParams) WithTimeout ¶
func (o *ImportSnapParams) WithTimeout(timeout time.Duration) *ImportSnapParams
WithTimeout adds the timeout to the import snap params.
func (*ImportSnapParams) WriteToRequest ¶
func (o *ImportSnapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type ImportSnapReader ¶
type ImportSnapReader struct {
// contains filtered or unexported fields
}
ImportSnapReader is a Reader for the ImportSnap structure.
func (*ImportSnapReader) ReadResponse ¶
func (o *ImportSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ImportSnapUnauthorized ¶
type ImportSnapUnauthorized struct {
}
ImportSnapUnauthorized describes a response with status code 401, with default header values.
Missing or invalid credentials.
func NewImportSnapUnauthorized ¶
func NewImportSnapUnauthorized() *ImportSnapUnauthorized
NewImportSnapUnauthorized creates a ImportSnapUnauthorized with default headers values
func (*ImportSnapUnauthorized) Code ¶
func (o *ImportSnapUnauthorized) Code() int
Code gets the status code for the import snap unauthorized response
func (*ImportSnapUnauthorized) Error ¶
func (o *ImportSnapUnauthorized) Error() string
func (*ImportSnapUnauthorized) GetPayload ¶
func (o *ImportSnapUnauthorized) GetPayload() *models.Error
func (*ImportSnapUnauthorized) IsClientError ¶
func (o *ImportSnapUnauthorized) IsClientError() bool
IsClientError returns true when this import snap unauthorized response has a 4xx status code
func (*ImportSnapUnauthorized) IsCode ¶
func (o *ImportSnapUnauthorized) IsCode(code int) bool
IsCode returns true when this import snap unauthorized response a status code equal to that given
func (*ImportSnapUnauthorized) IsRedirect ¶
func (o *ImportSnapUnauthorized) IsRedirect() bool
IsRedirect returns true when this import snap unauthorized response has a 3xx status code
func (*ImportSnapUnauthorized) IsServerError ¶
func (o *ImportSnapUnauthorized) IsServerError() bool
IsServerError returns true when this import snap unauthorized response has a 5xx status code
func (*ImportSnapUnauthorized) IsSuccess ¶
func (o *ImportSnapUnauthorized) IsSuccess() bool
IsSuccess returns true when this import snap unauthorized response has a 2xx status code
func (*ImportSnapUnauthorized) String ¶
func (o *ImportSnapUnauthorized) String() string
type ListSnapsBadRequest ¶
ListSnapsBadRequest describes a response with status code 400, with default header values.
The request was invalid or could not be processed.
func NewListSnapsBadRequest ¶
func NewListSnapsBadRequest() *ListSnapsBadRequest
NewListSnapsBadRequest creates a ListSnapsBadRequest with default headers values
func (*ListSnapsBadRequest) Code ¶
func (o *ListSnapsBadRequest) Code() int
Code gets the status code for the list snaps bad request response
func (*ListSnapsBadRequest) Error ¶
func (o *ListSnapsBadRequest) Error() string
func (*ListSnapsBadRequest) GetPayload ¶
func (o *ListSnapsBadRequest) GetPayload() *models.Error
func (*ListSnapsBadRequest) IsClientError ¶
func (o *ListSnapsBadRequest) IsClientError() bool
IsClientError returns true when this list snaps bad request response has a 4xx status code
func (*ListSnapsBadRequest) IsCode ¶
func (o *ListSnapsBadRequest) IsCode(code int) bool
IsCode returns true when this list snaps bad request response a status code equal to that given
func (*ListSnapsBadRequest) IsRedirect ¶
func (o *ListSnapsBadRequest) IsRedirect() bool
IsRedirect returns true when this list snaps bad request response has a 3xx status code
func (*ListSnapsBadRequest) IsServerError ¶
func (o *ListSnapsBadRequest) IsServerError() bool
IsServerError returns true when this list snaps bad request response has a 5xx status code
func (*ListSnapsBadRequest) IsSuccess ¶
func (o *ListSnapsBadRequest) IsSuccess() bool
IsSuccess returns true when this list snaps bad request response has a 2xx status code
func (*ListSnapsBadRequest) String ¶
func (o *ListSnapsBadRequest) String() string
type ListSnapsOK ¶
type ListSnapsOK struct {
Payload []*models.APISnapView
}
ListSnapsOK describes a response with status code 200, with default header values.
Snaps.
func NewListSnapsOK ¶
func NewListSnapsOK() *ListSnapsOK
NewListSnapsOK creates a ListSnapsOK with default headers values
func (*ListSnapsOK) Code ¶
func (o *ListSnapsOK) Code() int
Code gets the status code for the list snaps o k response
func (*ListSnapsOK) Error ¶
func (o *ListSnapsOK) Error() string
func (*ListSnapsOK) GetPayload ¶
func (o *ListSnapsOK) GetPayload() []*models.APISnapView
func (*ListSnapsOK) IsClientError ¶
func (o *ListSnapsOK) IsClientError() bool
IsClientError returns true when this list snaps o k response has a 4xx status code
func (*ListSnapsOK) IsCode ¶
func (o *ListSnapsOK) IsCode(code int) bool
IsCode returns true when this list snaps o k response a status code equal to that given
func (*ListSnapsOK) IsRedirect ¶
func (o *ListSnapsOK) IsRedirect() bool
IsRedirect returns true when this list snaps o k response has a 3xx status code
func (*ListSnapsOK) IsServerError ¶
func (o *ListSnapsOK) IsServerError() bool
IsServerError returns true when this list snaps o k response has a 5xx status code
func (*ListSnapsOK) IsSuccess ¶
func (o *ListSnapsOK) IsSuccess() bool
IsSuccess returns true when this list snaps o k response has a 2xx status code
func (*ListSnapsOK) String ¶
func (o *ListSnapsOK) String() string
type ListSnapsParams ¶
type ListSnapsParams struct {
/* Attached.
Filter by attached (`true`) or detached (`false`) snaps.
*/
Attached *bool
/* ProjectCid.
Project handle (`project_cid`).
*/
ProjectCid string
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListSnapsParams contains all the parameters to send to the API endpoint
for the list snaps operation. Typically these are written to a http.Request.
func NewListSnapsParams ¶
func NewListSnapsParams() *ListSnapsParams
NewListSnapsParams creates a new ListSnapsParams 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 NewListSnapsParamsWithContext
deprecated
func NewListSnapsParamsWithContext(ctx context.Context) *ListSnapsParams
NewListSnapsParamsWithContext creates a new ListSnapsParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of ListSnapsParams.
func NewListSnapsParamsWithHTTPClient ¶
func NewListSnapsParamsWithHTTPClient(client *http.Client) *ListSnapsParams
NewListSnapsParamsWithHTTPClient creates a new ListSnapsParams object with the ability to set a custom HTTPClient for a request.
func NewListSnapsParamsWithTimeout ¶
func NewListSnapsParamsWithTimeout(timeout time.Duration) *ListSnapsParams
NewListSnapsParamsWithTimeout creates a new ListSnapsParams object with the ability to set a timeout on a request.
func (*ListSnapsParams) SetAttached ¶
func (o *ListSnapsParams) SetAttached(attached *bool)
SetAttached adds the attached to the list snaps params.
func (*ListSnapsParams) SetContext
deprecated
func (o *ListSnapsParams) SetContext(ctx context.Context)
SetContext adds the context to the list snaps params.
Deprecated: use the operation call with context to pass the context instead of ListSnapsParams.
func (*ListSnapsParams) SetDefaults ¶
func (o *ListSnapsParams) SetDefaults()
SetDefaults hydrates default values in the list snaps params (not the query body).
All values with no default are reset to their zero value.
func (*ListSnapsParams) SetHTTPClient ¶
func (o *ListSnapsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list snaps params.
func (*ListSnapsParams) SetProjectCid ¶
func (o *ListSnapsParams) SetProjectCid(projectCid string)
SetProjectCid adds the projectCid to the list snaps params.
func (*ListSnapsParams) SetTimeout ¶
func (o *ListSnapsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list snaps params.
func (*ListSnapsParams) WithAttached ¶
func (o *ListSnapsParams) WithAttached(attached *bool) *ListSnapsParams
WithAttached adds the attached to the list snaps params.
func (*ListSnapsParams) WithContext
deprecated
func (o *ListSnapsParams) WithContext(ctx context.Context) *ListSnapsParams
WithContext adds the context to the list snaps params.
Deprecated: use the operation call with context to pass the context instead of ListSnapsParams.
func (*ListSnapsParams) WithDefaults ¶
func (o *ListSnapsParams) WithDefaults() *ListSnapsParams
WithDefaults hydrates default values in the list snaps params (not the query body).
All values with no default are reset to their zero value.
func (*ListSnapsParams) WithHTTPClient ¶
func (o *ListSnapsParams) WithHTTPClient(client *http.Client) *ListSnapsParams
WithHTTPClient adds the HTTPClient to the list snaps params.
func (*ListSnapsParams) WithProjectCid ¶
func (o *ListSnapsParams) WithProjectCid(projectCid string) *ListSnapsParams
WithProjectCid adds the projectCid to the list snaps params.
func (*ListSnapsParams) WithTimeout ¶
func (o *ListSnapsParams) WithTimeout(timeout time.Duration) *ListSnapsParams
WithTimeout adds the timeout to the list snaps params.
func (*ListSnapsParams) WriteToRequest ¶
func (o *ListSnapsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type ListSnapsReader ¶
type ListSnapsReader struct {
// contains filtered or unexported fields
}
ListSnapsReader is a Reader for the ListSnaps structure.
func (*ListSnapsReader) ReadResponse ¶
func (o *ListSnapsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListSnapsUnauthorized ¶
type ListSnapsUnauthorized struct {
}
ListSnapsUnauthorized describes a response with status code 401, with default header values.
Missing or invalid credentials.
func NewListSnapsUnauthorized ¶
func NewListSnapsUnauthorized() *ListSnapsUnauthorized
NewListSnapsUnauthorized creates a ListSnapsUnauthorized with default headers values
func (*ListSnapsUnauthorized) Code ¶
func (o *ListSnapsUnauthorized) Code() int
Code gets the status code for the list snaps unauthorized response
func (*ListSnapsUnauthorized) Error ¶
func (o *ListSnapsUnauthorized) Error() string
func (*ListSnapsUnauthorized) GetPayload ¶
func (o *ListSnapsUnauthorized) GetPayload() *models.Error
func (*ListSnapsUnauthorized) IsClientError ¶
func (o *ListSnapsUnauthorized) IsClientError() bool
IsClientError returns true when this list snaps unauthorized response has a 4xx status code
func (*ListSnapsUnauthorized) IsCode ¶
func (o *ListSnapsUnauthorized) IsCode(code int) bool
IsCode returns true when this list snaps unauthorized response a status code equal to that given
func (*ListSnapsUnauthorized) IsRedirect ¶
func (o *ListSnapsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list snaps unauthorized response has a 3xx status code
func (*ListSnapsUnauthorized) IsServerError ¶
func (o *ListSnapsUnauthorized) IsServerError() bool
IsServerError returns true when this list snaps unauthorized response has a 5xx status code
func (*ListSnapsUnauthorized) IsSuccess ¶
func (o *ListSnapsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list snaps unauthorized response has a 2xx status code
func (*ListSnapsUnauthorized) String ¶
func (o *ListSnapsUnauthorized) String() string
Source Files
¶
- delete_snap_parameters.go
- delete_snap_responses.go
- fork_snap_parameters.go
- fork_snap_responses.go
- get_snap_parameters.go
- get_snap_responses.go
- get_snap_tree_parameters.go
- get_snap_tree_responses.go
- import_snap_parameters.go
- import_snap_responses.go
- list_snaps_parameters.go
- list_snaps_responses.go
- snaps_client.go