allowedregistry

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 allowedregistry API

func (*Client) CreateAllowedRegistry

func (a *Client) CreateAllowedRegistry(params *CreateAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAllowedRegistryCreated, error)

CreateAllowedRegistry Creates a allowed registry

func (*Client) ListAllowedRegistries

func (a *Client) ListAllowedRegistries(params *ListAllowedRegistriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAllowedRegistriesOK, error)

ListAllowedRegistries lists allowed registries

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 {
	CreateAllowedRegistry(params *CreateAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAllowedRegistryCreated, error)

	ListAllowedRegistries(params *ListAllowedRegistriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAllowedRegistriesOK, 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 allowedregistry API client.

type CreateAllowedRegistryCreated

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

AllowedRegistry

func NewCreateAllowedRegistryCreated

func NewCreateAllowedRegistryCreated() *CreateAllowedRegistryCreated

NewCreateAllowedRegistryCreated creates a CreateAllowedRegistryCreated with default headers values

func (*CreateAllowedRegistryCreated) Error

func (*CreateAllowedRegistryCreated) GetPayload

type CreateAllowedRegistryDefault

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

errorResponse

func NewCreateAllowedRegistryDefault

func NewCreateAllowedRegistryDefault(code int) *CreateAllowedRegistryDefault

NewCreateAllowedRegistryDefault creates a CreateAllowedRegistryDefault with default headers values

func (*CreateAllowedRegistryDefault) Code

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

func (*CreateAllowedRegistryDefault) Error

func (*CreateAllowedRegistryDefault) GetPayload

type CreateAllowedRegistryForbidden

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

EmptyResponse is a empty response

func NewCreateAllowedRegistryForbidden

func NewCreateAllowedRegistryForbidden() *CreateAllowedRegistryForbidden

NewCreateAllowedRegistryForbidden creates a CreateAllowedRegistryForbidden with default headers values

func (*CreateAllowedRegistryForbidden) Error

type CreateAllowedRegistryParams

type CreateAllowedRegistryParams struct {

	// Body.
	Body *models.WrBody

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

CreateAllowedRegistryParams contains all the parameters to send to the API endpoint

for the create allowed registry operation.

Typically these are written to a http.Request.

func NewCreateAllowedRegistryParams

func NewCreateAllowedRegistryParams() *CreateAllowedRegistryParams

NewCreateAllowedRegistryParams creates a new CreateAllowedRegistryParams 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 NewCreateAllowedRegistryParamsWithContext

func NewCreateAllowedRegistryParamsWithContext(ctx context.Context) *CreateAllowedRegistryParams

NewCreateAllowedRegistryParamsWithContext creates a new CreateAllowedRegistryParams object with the ability to set a context for a request.

func NewCreateAllowedRegistryParamsWithHTTPClient

func NewCreateAllowedRegistryParamsWithHTTPClient(client *http.Client) *CreateAllowedRegistryParams

NewCreateAllowedRegistryParamsWithHTTPClient creates a new CreateAllowedRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAllowedRegistryParamsWithTimeout

func NewCreateAllowedRegistryParamsWithTimeout(timeout time.Duration) *CreateAllowedRegistryParams

NewCreateAllowedRegistryParamsWithTimeout creates a new CreateAllowedRegistryParams object with the ability to set a timeout on a request.

func (*CreateAllowedRegistryParams) SetBody

func (o *CreateAllowedRegistryParams) SetBody(body *models.WrBody)

SetBody adds the body to the create allowed registry params

func (*CreateAllowedRegistryParams) SetContext

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

SetContext adds the context to the create allowed registry params

func (*CreateAllowedRegistryParams) SetDefaults

func (o *CreateAllowedRegistryParams) SetDefaults()

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

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

func (*CreateAllowedRegistryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create allowed registry params

func (*CreateAllowedRegistryParams) SetTimeout

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

SetTimeout adds the timeout to the create allowed registry params

func (*CreateAllowedRegistryParams) WithBody

WithBody adds the body to the create allowed registry params

func (*CreateAllowedRegistryParams) WithContext

WithContext adds the context to the create allowed registry params

func (*CreateAllowedRegistryParams) WithDefaults

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

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

func (*CreateAllowedRegistryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create allowed registry params

func (*CreateAllowedRegistryParams) WithTimeout

WithTimeout adds the timeout to the create allowed registry params

func (*CreateAllowedRegistryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateAllowedRegistryReader

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

CreateAllowedRegistryReader is a Reader for the CreateAllowedRegistry structure.

func (*CreateAllowedRegistryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateAllowedRegistryUnauthorized

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

EmptyResponse is a empty response

func NewCreateAllowedRegistryUnauthorized

func NewCreateAllowedRegistryUnauthorized() *CreateAllowedRegistryUnauthorized

NewCreateAllowedRegistryUnauthorized creates a CreateAllowedRegistryUnauthorized with default headers values

func (*CreateAllowedRegistryUnauthorized) Error

type ListAllowedRegistriesDefault

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

errorResponse

func NewListAllowedRegistriesDefault

func NewListAllowedRegistriesDefault(code int) *ListAllowedRegistriesDefault

NewListAllowedRegistriesDefault creates a ListAllowedRegistriesDefault with default headers values

func (*ListAllowedRegistriesDefault) Code

Code gets the status code for the list allowed registries default response

func (*ListAllowedRegistriesDefault) Error

func (*ListAllowedRegistriesDefault) GetPayload

type ListAllowedRegistriesForbidden

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

EmptyResponse is a empty response

func NewListAllowedRegistriesForbidden

func NewListAllowedRegistriesForbidden() *ListAllowedRegistriesForbidden

NewListAllowedRegistriesForbidden creates a ListAllowedRegistriesForbidden with default headers values

func (*ListAllowedRegistriesForbidden) Error

type ListAllowedRegistriesOK

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

AllowedRegistry

func NewListAllowedRegistriesOK

func NewListAllowedRegistriesOK() *ListAllowedRegistriesOK

NewListAllowedRegistriesOK creates a ListAllowedRegistriesOK with default headers values

func (*ListAllowedRegistriesOK) Error

func (o *ListAllowedRegistriesOK) Error() string

func (*ListAllowedRegistriesOK) GetPayload

func (o *ListAllowedRegistriesOK) GetPayload() []*models.AllowedRegistry

type ListAllowedRegistriesParams

type ListAllowedRegistriesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListAllowedRegistriesParams contains all the parameters to send to the API endpoint

for the list allowed registries operation.

Typically these are written to a http.Request.

func NewListAllowedRegistriesParams

func NewListAllowedRegistriesParams() *ListAllowedRegistriesParams

NewListAllowedRegistriesParams creates a new ListAllowedRegistriesParams 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 NewListAllowedRegistriesParamsWithContext

func NewListAllowedRegistriesParamsWithContext(ctx context.Context) *ListAllowedRegistriesParams

NewListAllowedRegistriesParamsWithContext creates a new ListAllowedRegistriesParams object with the ability to set a context for a request.

func NewListAllowedRegistriesParamsWithHTTPClient

func NewListAllowedRegistriesParamsWithHTTPClient(client *http.Client) *ListAllowedRegistriesParams

NewListAllowedRegistriesParamsWithHTTPClient creates a new ListAllowedRegistriesParams object with the ability to set a custom HTTPClient for a request.

func NewListAllowedRegistriesParamsWithTimeout

func NewListAllowedRegistriesParamsWithTimeout(timeout time.Duration) *ListAllowedRegistriesParams

NewListAllowedRegistriesParamsWithTimeout creates a new ListAllowedRegistriesParams object with the ability to set a timeout on a request.

func (*ListAllowedRegistriesParams) SetContext

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

SetContext adds the context to the list allowed registries params

func (*ListAllowedRegistriesParams) SetDefaults

func (o *ListAllowedRegistriesParams) SetDefaults()

SetDefaults hydrates default values in the list allowed registries params (not the query body).

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

func (*ListAllowedRegistriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list allowed registries params

func (*ListAllowedRegistriesParams) SetTimeout

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

SetTimeout adds the timeout to the list allowed registries params

func (*ListAllowedRegistriesParams) WithContext

WithContext adds the context to the list allowed registries params

func (*ListAllowedRegistriesParams) WithDefaults

WithDefaults hydrates default values in the list allowed registries params (not the query body).

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

func (*ListAllowedRegistriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list allowed registries params

func (*ListAllowedRegistriesParams) WithTimeout

WithTimeout adds the timeout to the list allowed registries params

func (*ListAllowedRegistriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListAllowedRegistriesReader

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

ListAllowedRegistriesReader is a Reader for the ListAllowedRegistries structure.

func (*ListAllowedRegistriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAllowedRegistriesUnauthorized

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

EmptyResponse is a empty response

func NewListAllowedRegistriesUnauthorized

func NewListAllowedRegistriesUnauthorized() *ListAllowedRegistriesUnauthorized

NewListAllowedRegistriesUnauthorized creates a ListAllowedRegistriesUnauthorized with default headers values

func (*ListAllowedRegistriesUnauthorized) Error

Jump to

Keyboard shortcuts

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