allowedregistry

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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

func (*CreateAllowedRegistryCreated) IsClientError

func (o *CreateAllowedRegistryCreated) IsClientError() bool

IsClientError returns true when this create allowed registry created response has a 4xx status code

func (*CreateAllowedRegistryCreated) IsCode

func (o *CreateAllowedRegistryCreated) IsCode(code int) bool

IsCode returns true when this create allowed registry created response a status code equal to that given

func (*CreateAllowedRegistryCreated) IsRedirect

func (o *CreateAllowedRegistryCreated) IsRedirect() bool

IsRedirect returns true when this create allowed registry created response has a 3xx status code

func (*CreateAllowedRegistryCreated) IsServerError

func (o *CreateAllowedRegistryCreated) IsServerError() bool

IsServerError returns true when this create allowed registry created response has a 5xx status code

func (*CreateAllowedRegistryCreated) IsSuccess

func (o *CreateAllowedRegistryCreated) IsSuccess() bool

IsSuccess returns true when this create allowed registry created response has a 2xx status code

func (*CreateAllowedRegistryCreated) String

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

func (*CreateAllowedRegistryDefault) IsClientError

func (o *CreateAllowedRegistryDefault) IsClientError() bool

IsClientError returns true when this create allowed registry default response has a 4xx status code

func (*CreateAllowedRegistryDefault) IsCode

func (o *CreateAllowedRegistryDefault) IsCode(code int) bool

IsCode returns true when this create allowed registry default response a status code equal to that given

func (*CreateAllowedRegistryDefault) IsRedirect

func (o *CreateAllowedRegistryDefault) IsRedirect() bool

IsRedirect returns true when this create allowed registry default response has a 3xx status code

func (*CreateAllowedRegistryDefault) IsServerError

func (o *CreateAllowedRegistryDefault) IsServerError() bool

IsServerError returns true when this create allowed registry default response has a 5xx status code

func (*CreateAllowedRegistryDefault) IsSuccess

func (o *CreateAllowedRegistryDefault) IsSuccess() bool

IsSuccess returns true when this create allowed registry default response has a 2xx status code

func (*CreateAllowedRegistryDefault) String

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

func (*CreateAllowedRegistryForbidden) IsClientError

func (o *CreateAllowedRegistryForbidden) IsClientError() bool

IsClientError returns true when this create allowed registry forbidden response has a 4xx status code

func (*CreateAllowedRegistryForbidden) IsCode

func (o *CreateAllowedRegistryForbidden) IsCode(code int) bool

IsCode returns true when this create allowed registry forbidden response a status code equal to that given

func (*CreateAllowedRegistryForbidden) IsRedirect

func (o *CreateAllowedRegistryForbidden) IsRedirect() bool

IsRedirect returns true when this create allowed registry forbidden response has a 3xx status code

func (*CreateAllowedRegistryForbidden) IsServerError

func (o *CreateAllowedRegistryForbidden) IsServerError() bool

IsServerError returns true when this create allowed registry forbidden response has a 5xx status code

func (*CreateAllowedRegistryForbidden) IsSuccess

func (o *CreateAllowedRegistryForbidden) IsSuccess() bool

IsSuccess returns true when this create allowed registry forbidden response has a 2xx status code

func (*CreateAllowedRegistryForbidden) String

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

func (*CreateAllowedRegistryUnauthorized) IsClientError

func (o *CreateAllowedRegistryUnauthorized) IsClientError() bool

IsClientError returns true when this create allowed registry unauthorized response has a 4xx status code

func (*CreateAllowedRegistryUnauthorized) IsCode

func (o *CreateAllowedRegistryUnauthorized) IsCode(code int) bool

IsCode returns true when this create allowed registry unauthorized response a status code equal to that given

func (*CreateAllowedRegistryUnauthorized) IsRedirect

func (o *CreateAllowedRegistryUnauthorized) IsRedirect() bool

IsRedirect returns true when this create allowed registry unauthorized response has a 3xx status code

func (*CreateAllowedRegistryUnauthorized) IsServerError

func (o *CreateAllowedRegistryUnauthorized) IsServerError() bool

IsServerError returns true when this create allowed registry unauthorized response has a 5xx status code

func (*CreateAllowedRegistryUnauthorized) IsSuccess

func (o *CreateAllowedRegistryUnauthorized) IsSuccess() bool

IsSuccess returns true when this create allowed registry unauthorized response has a 2xx status code

func (*CreateAllowedRegistryUnauthorized) String

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

func (*ListAllowedRegistriesDefault) IsClientError

func (o *ListAllowedRegistriesDefault) IsClientError() bool

IsClientError returns true when this list allowed registries default response has a 4xx status code

func (*ListAllowedRegistriesDefault) IsCode

func (o *ListAllowedRegistriesDefault) IsCode(code int) bool

IsCode returns true when this list allowed registries default response a status code equal to that given

func (*ListAllowedRegistriesDefault) IsRedirect

func (o *ListAllowedRegistriesDefault) IsRedirect() bool

IsRedirect returns true when this list allowed registries default response has a 3xx status code

func (*ListAllowedRegistriesDefault) IsServerError

func (o *ListAllowedRegistriesDefault) IsServerError() bool

IsServerError returns true when this list allowed registries default response has a 5xx status code

func (*ListAllowedRegistriesDefault) IsSuccess

func (o *ListAllowedRegistriesDefault) IsSuccess() bool

IsSuccess returns true when this list allowed registries default response has a 2xx status code

func (*ListAllowedRegistriesDefault) String

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

func (*ListAllowedRegistriesForbidden) IsClientError

func (o *ListAllowedRegistriesForbidden) IsClientError() bool

IsClientError returns true when this list allowed registries forbidden response has a 4xx status code

func (*ListAllowedRegistriesForbidden) IsCode

func (o *ListAllowedRegistriesForbidden) IsCode(code int) bool

IsCode returns true when this list allowed registries forbidden response a status code equal to that given

func (*ListAllowedRegistriesForbidden) IsRedirect

func (o *ListAllowedRegistriesForbidden) IsRedirect() bool

IsRedirect returns true when this list allowed registries forbidden response has a 3xx status code

func (*ListAllowedRegistriesForbidden) IsServerError

func (o *ListAllowedRegistriesForbidden) IsServerError() bool

IsServerError returns true when this list allowed registries forbidden response has a 5xx status code

func (*ListAllowedRegistriesForbidden) IsSuccess

func (o *ListAllowedRegistriesForbidden) IsSuccess() bool

IsSuccess returns true when this list allowed registries forbidden response has a 2xx status code

func (*ListAllowedRegistriesForbidden) String

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

func (*ListAllowedRegistriesOK) IsClientError

func (o *ListAllowedRegistriesOK) IsClientError() bool

IsClientError returns true when this list allowed registries o k response has a 4xx status code

func (*ListAllowedRegistriesOK) IsCode

func (o *ListAllowedRegistriesOK) IsCode(code int) bool

IsCode returns true when this list allowed registries o k response a status code equal to that given

func (*ListAllowedRegistriesOK) IsRedirect

func (o *ListAllowedRegistriesOK) IsRedirect() bool

IsRedirect returns true when this list allowed registries o k response has a 3xx status code

func (*ListAllowedRegistriesOK) IsServerError

func (o *ListAllowedRegistriesOK) IsServerError() bool

IsServerError returns true when this list allowed registries o k response has a 5xx status code

func (*ListAllowedRegistriesOK) IsSuccess

func (o *ListAllowedRegistriesOK) IsSuccess() bool

IsSuccess returns true when this list allowed registries o k response has a 2xx status code

func (*ListAllowedRegistriesOK) String

func (o *ListAllowedRegistriesOK) String() string

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

func (*ListAllowedRegistriesUnauthorized) IsClientError

func (o *ListAllowedRegistriesUnauthorized) IsClientError() bool

IsClientError returns true when this list allowed registries unauthorized response has a 4xx status code

func (*ListAllowedRegistriesUnauthorized) IsCode

func (o *ListAllowedRegistriesUnauthorized) IsCode(code int) bool

IsCode returns true when this list allowed registries unauthorized response a status code equal to that given

func (*ListAllowedRegistriesUnauthorized) IsRedirect

func (o *ListAllowedRegistriesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list allowed registries unauthorized response has a 3xx status code

func (*ListAllowedRegistriesUnauthorized) IsServerError

func (o *ListAllowedRegistriesUnauthorized) IsServerError() bool

IsServerError returns true when this list allowed registries unauthorized response has a 5xx status code

func (*ListAllowedRegistriesUnauthorized) IsSuccess

func (o *ListAllowedRegistriesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list allowed registries unauthorized response has a 2xx status code

func (*ListAllowedRegistriesUnauthorized) String

Jump to

Keyboard shortcuts

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