allowedregistries

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 allowedregistries API

func (*Client) DeleteAllowedRegistry

func (a *Client) DeleteAllowedRegistry(params *DeleteAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAllowedRegistryOK, error)

DeleteAllowedRegistry deletes the given allowed registry

func (*Client) GetAllowedRegistry

func (a *Client) GetAllowedRegistry(params *GetAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllowedRegistryOK, error)

GetAllowedRegistry Get allowed registries specified by name

func (*Client) PatchAllowedRegistry

func (a *Client) PatchAllowedRegistry(params *PatchAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAllowedRegistryOK, error)

PatchAllowedRegistry Patch a specified allowed registry

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 is the option for Client methods

type ClientService

type ClientService interface {
	DeleteAllowedRegistry(params *DeleteAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAllowedRegistryOK, error)

	GetAllowedRegistry(params *GetAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAllowedRegistryOK, error)

	PatchAllowedRegistry(params *PatchAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAllowedRegistryOK, 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 allowedregistries API client.

type DeleteAllowedRegistryDefault

type DeleteAllowedRegistryDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
DeleteAllowedRegistryDefault describes a response with status code -1, with default header values.

errorResponse

func NewDeleteAllowedRegistryDefault

func NewDeleteAllowedRegistryDefault(code int) *DeleteAllowedRegistryDefault

NewDeleteAllowedRegistryDefault creates a DeleteAllowedRegistryDefault with default headers values

func (*DeleteAllowedRegistryDefault) Code

Code gets the status code for the delete allowed registry default response

func (*DeleteAllowedRegistryDefault) Error

func (*DeleteAllowedRegistryDefault) GetPayload

type DeleteAllowedRegistryForbidden

type DeleteAllowedRegistryForbidden struct {
}
DeleteAllowedRegistryForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewDeleteAllowedRegistryForbidden

func NewDeleteAllowedRegistryForbidden() *DeleteAllowedRegistryForbidden

NewDeleteAllowedRegistryForbidden creates a DeleteAllowedRegistryForbidden with default headers values

func (*DeleteAllowedRegistryForbidden) Error

type DeleteAllowedRegistryOK

type DeleteAllowedRegistryOK struct {
}
DeleteAllowedRegistryOK describes a response with status code 200, with default header values.

EmptyResponse is a empty response

func NewDeleteAllowedRegistryOK

func NewDeleteAllowedRegistryOK() *DeleteAllowedRegistryOK

NewDeleteAllowedRegistryOK creates a DeleteAllowedRegistryOK with default headers values

func (*DeleteAllowedRegistryOK) Error

func (o *DeleteAllowedRegistryOK) Error() string

type DeleteAllowedRegistryParams

type DeleteAllowedRegistryParams struct {

	// AllowedRegistry.
	AllowedRegistryName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteAllowedRegistryParams contains all the parameters to send to the API endpoint

for the delete allowed registry operation.

Typically these are written to a http.Request.

func NewDeleteAllowedRegistryParams

func NewDeleteAllowedRegistryParams() *DeleteAllowedRegistryParams

NewDeleteAllowedRegistryParams creates a new DeleteAllowedRegistryParams 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 NewDeleteAllowedRegistryParamsWithContext

func NewDeleteAllowedRegistryParamsWithContext(ctx context.Context) *DeleteAllowedRegistryParams

NewDeleteAllowedRegistryParamsWithContext creates a new DeleteAllowedRegistryParams object with the ability to set a context for a request.

func NewDeleteAllowedRegistryParamsWithHTTPClient

func NewDeleteAllowedRegistryParamsWithHTTPClient(client *http.Client) *DeleteAllowedRegistryParams

NewDeleteAllowedRegistryParamsWithHTTPClient creates a new DeleteAllowedRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAllowedRegistryParamsWithTimeout

func NewDeleteAllowedRegistryParamsWithTimeout(timeout time.Duration) *DeleteAllowedRegistryParams

NewDeleteAllowedRegistryParamsWithTimeout creates a new DeleteAllowedRegistryParams object with the ability to set a timeout on a request.

func (*DeleteAllowedRegistryParams) SetAllowedRegistryName

func (o *DeleteAllowedRegistryParams) SetAllowedRegistryName(allowedRegistry string)

SetAllowedRegistryName adds the allowedRegistry to the delete allowed registry params

func (*DeleteAllowedRegistryParams) SetContext

func (o *DeleteAllowedRegistryParams) SetContext(ctx context.Context)

SetContext adds the context to the delete allowed registry params

func (*DeleteAllowedRegistryParams) SetDefaults

func (o *DeleteAllowedRegistryParams) SetDefaults()

SetDefaults hydrates default values in the delete allowed registry params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAllowedRegistryParams) SetHTTPClient

func (o *DeleteAllowedRegistryParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete allowed registry params

func (*DeleteAllowedRegistryParams) SetTimeout

func (o *DeleteAllowedRegistryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete allowed registry params

func (*DeleteAllowedRegistryParams) WithAllowedRegistryName

func (o *DeleteAllowedRegistryParams) WithAllowedRegistryName(allowedRegistry string) *DeleteAllowedRegistryParams

WithAllowedRegistryName adds the allowedRegistry to the delete allowed registry params

func (*DeleteAllowedRegistryParams) WithContext

WithContext adds the context to the delete allowed registry params

func (*DeleteAllowedRegistryParams) WithDefaults

WithDefaults hydrates default values in the delete allowed registry params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAllowedRegistryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete allowed registry params

func (*DeleteAllowedRegistryParams) WithTimeout

WithTimeout adds the timeout to the delete allowed registry params

func (*DeleteAllowedRegistryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAllowedRegistryReader

type DeleteAllowedRegistryReader struct {
	// contains filtered or unexported fields
}

DeleteAllowedRegistryReader is a Reader for the DeleteAllowedRegistry structure.

func (*DeleteAllowedRegistryReader) ReadResponse

func (o *DeleteAllowedRegistryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteAllowedRegistryUnauthorized

type DeleteAllowedRegistryUnauthorized struct {
}
DeleteAllowedRegistryUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewDeleteAllowedRegistryUnauthorized

func NewDeleteAllowedRegistryUnauthorized() *DeleteAllowedRegistryUnauthorized

NewDeleteAllowedRegistryUnauthorized creates a DeleteAllowedRegistryUnauthorized with default headers values

func (*DeleteAllowedRegistryUnauthorized) Error

type GetAllowedRegistryDefault

type GetAllowedRegistryDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
GetAllowedRegistryDefault describes a response with status code -1, with default header values.

errorResponse

func NewGetAllowedRegistryDefault

func NewGetAllowedRegistryDefault(code int) *GetAllowedRegistryDefault

NewGetAllowedRegistryDefault creates a GetAllowedRegistryDefault with default headers values

func (*GetAllowedRegistryDefault) Code

func (o *GetAllowedRegistryDefault) Code() int

Code gets the status code for the get allowed registry default response

func (*GetAllowedRegistryDefault) Error

func (o *GetAllowedRegistryDefault) Error() string

func (*GetAllowedRegistryDefault) GetPayload

type GetAllowedRegistryForbidden

type GetAllowedRegistryForbidden struct {
}
GetAllowedRegistryForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewGetAllowedRegistryForbidden

func NewGetAllowedRegistryForbidden() *GetAllowedRegistryForbidden

NewGetAllowedRegistryForbidden creates a GetAllowedRegistryForbidden with default headers values

func (*GetAllowedRegistryForbidden) Error

type GetAllowedRegistryOK

type GetAllowedRegistryOK struct {
	Payload *models.AllowedRegistry
}
GetAllowedRegistryOK describes a response with status code 200, with default header values.

AllowedRegistry

func NewGetAllowedRegistryOK

func NewGetAllowedRegistryOK() *GetAllowedRegistryOK

NewGetAllowedRegistryOK creates a GetAllowedRegistryOK with default headers values

func (*GetAllowedRegistryOK) Error

func (o *GetAllowedRegistryOK) Error() string

func (*GetAllowedRegistryOK) GetPayload

func (o *GetAllowedRegistryOK) GetPayload() *models.AllowedRegistry

type GetAllowedRegistryParams

type GetAllowedRegistryParams struct {

	// AllowedRegistry.
	AllowedRegistryName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAllowedRegistryParams contains all the parameters to send to the API endpoint

for the get allowed registry operation.

Typically these are written to a http.Request.

func NewGetAllowedRegistryParams

func NewGetAllowedRegistryParams() *GetAllowedRegistryParams

NewGetAllowedRegistryParams creates a new GetAllowedRegistryParams 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 NewGetAllowedRegistryParamsWithContext

func NewGetAllowedRegistryParamsWithContext(ctx context.Context) *GetAllowedRegistryParams

NewGetAllowedRegistryParamsWithContext creates a new GetAllowedRegistryParams object with the ability to set a context for a request.

func NewGetAllowedRegistryParamsWithHTTPClient

func NewGetAllowedRegistryParamsWithHTTPClient(client *http.Client) *GetAllowedRegistryParams

NewGetAllowedRegistryParamsWithHTTPClient creates a new GetAllowedRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewGetAllowedRegistryParamsWithTimeout

func NewGetAllowedRegistryParamsWithTimeout(timeout time.Duration) *GetAllowedRegistryParams

NewGetAllowedRegistryParamsWithTimeout creates a new GetAllowedRegistryParams object with the ability to set a timeout on a request.

func (*GetAllowedRegistryParams) SetAllowedRegistryName

func (o *GetAllowedRegistryParams) SetAllowedRegistryName(allowedRegistry string)

SetAllowedRegistryName adds the allowedRegistry to the get allowed registry params

func (*GetAllowedRegistryParams) SetContext

func (o *GetAllowedRegistryParams) SetContext(ctx context.Context)

SetContext adds the context to the get allowed registry params

func (*GetAllowedRegistryParams) SetDefaults

func (o *GetAllowedRegistryParams) SetDefaults()

SetDefaults hydrates default values in the get allowed registry params (not the query body).

All values with no default are reset to their zero value.

func (*GetAllowedRegistryParams) SetHTTPClient

func (o *GetAllowedRegistryParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get allowed registry params

func (*GetAllowedRegistryParams) SetTimeout

func (o *GetAllowedRegistryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get allowed registry params

func (*GetAllowedRegistryParams) WithAllowedRegistryName

func (o *GetAllowedRegistryParams) WithAllowedRegistryName(allowedRegistry string) *GetAllowedRegistryParams

WithAllowedRegistryName adds the allowedRegistry to the get allowed registry params

func (*GetAllowedRegistryParams) WithContext

WithContext adds the context to the get allowed registry params

func (*GetAllowedRegistryParams) WithDefaults

WithDefaults hydrates default values in the get allowed registry params (not the query body).

All values with no default are reset to their zero value.

func (*GetAllowedRegistryParams) WithHTTPClient

func (o *GetAllowedRegistryParams) WithHTTPClient(client *http.Client) *GetAllowedRegistryParams

WithHTTPClient adds the HTTPClient to the get allowed registry params

func (*GetAllowedRegistryParams) WithTimeout

WithTimeout adds the timeout to the get allowed registry params

func (*GetAllowedRegistryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAllowedRegistryReader

type GetAllowedRegistryReader struct {
	// contains filtered or unexported fields
}

GetAllowedRegistryReader is a Reader for the GetAllowedRegistry structure.

func (*GetAllowedRegistryReader) ReadResponse

func (o *GetAllowedRegistryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAllowedRegistryUnauthorized

type GetAllowedRegistryUnauthorized struct {
}
GetAllowedRegistryUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetAllowedRegistryUnauthorized

func NewGetAllowedRegistryUnauthorized() *GetAllowedRegistryUnauthorized

NewGetAllowedRegistryUnauthorized creates a GetAllowedRegistryUnauthorized with default headers values

func (*GetAllowedRegistryUnauthorized) Error

type PatchAllowedRegistryDefault

type PatchAllowedRegistryDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
PatchAllowedRegistryDefault describes a response with status code -1, with default header values.

errorResponse

func NewPatchAllowedRegistryDefault

func NewPatchAllowedRegistryDefault(code int) *PatchAllowedRegistryDefault

NewPatchAllowedRegistryDefault creates a PatchAllowedRegistryDefault with default headers values

func (*PatchAllowedRegistryDefault) Code

func (o *PatchAllowedRegistryDefault) Code() int

Code gets the status code for the patch allowed registry default response

func (*PatchAllowedRegistryDefault) Error

func (*PatchAllowedRegistryDefault) GetPayload

type PatchAllowedRegistryForbidden

type PatchAllowedRegistryForbidden struct {
}
PatchAllowedRegistryForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewPatchAllowedRegistryForbidden

func NewPatchAllowedRegistryForbidden() *PatchAllowedRegistryForbidden

NewPatchAllowedRegistryForbidden creates a PatchAllowedRegistryForbidden with default headers values

func (*PatchAllowedRegistryForbidden) Error

type PatchAllowedRegistryOK

type PatchAllowedRegistryOK struct {
	Payload *models.ConstraintTemplate
}
PatchAllowedRegistryOK describes a response with status code 200, with default header values.

ConstraintTemplate

func NewPatchAllowedRegistryOK

func NewPatchAllowedRegistryOK() *PatchAllowedRegistryOK

NewPatchAllowedRegistryOK creates a PatchAllowedRegistryOK with default headers values

func (*PatchAllowedRegistryOK) Error

func (o *PatchAllowedRegistryOK) Error() string

func (*PatchAllowedRegistryOK) GetPayload

type PatchAllowedRegistryParams

type PatchAllowedRegistryParams struct {

	// Patch.
	Patch interface{}

	// AllowedRegistry.
	AllowedRegistryName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PatchAllowedRegistryParams contains all the parameters to send to the API endpoint

for the patch allowed registry operation.

Typically these are written to a http.Request.

func NewPatchAllowedRegistryParams

func NewPatchAllowedRegistryParams() *PatchAllowedRegistryParams

NewPatchAllowedRegistryParams creates a new PatchAllowedRegistryParams 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 NewPatchAllowedRegistryParamsWithContext

func NewPatchAllowedRegistryParamsWithContext(ctx context.Context) *PatchAllowedRegistryParams

NewPatchAllowedRegistryParamsWithContext creates a new PatchAllowedRegistryParams object with the ability to set a context for a request.

func NewPatchAllowedRegistryParamsWithHTTPClient

func NewPatchAllowedRegistryParamsWithHTTPClient(client *http.Client) *PatchAllowedRegistryParams

NewPatchAllowedRegistryParamsWithHTTPClient creates a new PatchAllowedRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAllowedRegistryParamsWithTimeout

func NewPatchAllowedRegistryParamsWithTimeout(timeout time.Duration) *PatchAllowedRegistryParams

NewPatchAllowedRegistryParamsWithTimeout creates a new PatchAllowedRegistryParams object with the ability to set a timeout on a request.

func (*PatchAllowedRegistryParams) SetAllowedRegistryName

func (o *PatchAllowedRegistryParams) SetAllowedRegistryName(allowedRegistry string)

SetAllowedRegistryName adds the allowedRegistry to the patch allowed registry params

func (*PatchAllowedRegistryParams) SetContext

func (o *PatchAllowedRegistryParams) SetContext(ctx context.Context)

SetContext adds the context to the patch allowed registry params

func (*PatchAllowedRegistryParams) SetDefaults

func (o *PatchAllowedRegistryParams) SetDefaults()

SetDefaults hydrates default values in the patch allowed registry params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAllowedRegistryParams) SetHTTPClient

func (o *PatchAllowedRegistryParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the patch allowed registry params

func (*PatchAllowedRegistryParams) SetPatch

func (o *PatchAllowedRegistryParams) SetPatch(patch interface{})

SetPatch adds the patch to the patch allowed registry params

func (*PatchAllowedRegistryParams) SetTimeout

func (o *PatchAllowedRegistryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the patch allowed registry params

func (*PatchAllowedRegistryParams) WithAllowedRegistryName

func (o *PatchAllowedRegistryParams) WithAllowedRegistryName(allowedRegistry string) *PatchAllowedRegistryParams

WithAllowedRegistryName adds the allowedRegistry to the patch allowed registry params

func (*PatchAllowedRegistryParams) WithContext

WithContext adds the context to the patch allowed registry params

func (*PatchAllowedRegistryParams) WithDefaults

WithDefaults hydrates default values in the patch allowed registry params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAllowedRegistryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch allowed registry params

func (*PatchAllowedRegistryParams) WithPatch

func (o *PatchAllowedRegistryParams) WithPatch(patch interface{}) *PatchAllowedRegistryParams

WithPatch adds the patch to the patch allowed registry params

func (*PatchAllowedRegistryParams) WithTimeout

WithTimeout adds the timeout to the patch allowed registry params

func (*PatchAllowedRegistryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAllowedRegistryReader

type PatchAllowedRegistryReader struct {
	// contains filtered or unexported fields
}

PatchAllowedRegistryReader is a Reader for the PatchAllowedRegistry structure.

func (*PatchAllowedRegistryReader) ReadResponse

func (o *PatchAllowedRegistryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PatchAllowedRegistryUnauthorized

type PatchAllowedRegistryUnauthorized struct {
}
PatchAllowedRegistryUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewPatchAllowedRegistryUnauthorized

func NewPatchAllowedRegistryUnauthorized() *PatchAllowedRegistryUnauthorized

NewPatchAllowedRegistryUnauthorized creates a PatchAllowedRegistryUnauthorized with default headers values

func (*PatchAllowedRegistryUnauthorized) Error

Jump to

Keyboard shortcuts

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