Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateAllowedRegistry(params *CreateAllowedRegistryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateAllowedRegistryCreated, error)
- func (a *Client) ListAllowedRegistries(params *ListAllowedRegistriesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListAllowedRegistriesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateAllowedRegistryCreated
- type CreateAllowedRegistryDefault
- type CreateAllowedRegistryForbidden
- type CreateAllowedRegistryParams
- func NewCreateAllowedRegistryParams() *CreateAllowedRegistryParams
- func NewCreateAllowedRegistryParamsWithContext(ctx context.Context) *CreateAllowedRegistryParams
- func NewCreateAllowedRegistryParamsWithHTTPClient(client *http.Client) *CreateAllowedRegistryParams
- func NewCreateAllowedRegistryParamsWithTimeout(timeout time.Duration) *CreateAllowedRegistryParams
- func (o *CreateAllowedRegistryParams) SetBody(body *models.WrBody)
- func (o *CreateAllowedRegistryParams) SetContext(ctx context.Context)
- func (o *CreateAllowedRegistryParams) SetDefaults()
- func (o *CreateAllowedRegistryParams) SetHTTPClient(client *http.Client)
- func (o *CreateAllowedRegistryParams) SetTimeout(timeout time.Duration)
- func (o *CreateAllowedRegistryParams) WithBody(body *models.WrBody) *CreateAllowedRegistryParams
- func (o *CreateAllowedRegistryParams) WithContext(ctx context.Context) *CreateAllowedRegistryParams
- func (o *CreateAllowedRegistryParams) WithDefaults() *CreateAllowedRegistryParams
- func (o *CreateAllowedRegistryParams) WithHTTPClient(client *http.Client) *CreateAllowedRegistryParams
- func (o *CreateAllowedRegistryParams) WithTimeout(timeout time.Duration) *CreateAllowedRegistryParams
- func (o *CreateAllowedRegistryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateAllowedRegistryReader
- type CreateAllowedRegistryUnauthorized
- type ListAllowedRegistriesDefault
- type ListAllowedRegistriesForbidden
- type ListAllowedRegistriesOK
- type ListAllowedRegistriesParams
- func NewListAllowedRegistriesParams() *ListAllowedRegistriesParams
- func NewListAllowedRegistriesParamsWithContext(ctx context.Context) *ListAllowedRegistriesParams
- func NewListAllowedRegistriesParamsWithHTTPClient(client *http.Client) *ListAllowedRegistriesParams
- func NewListAllowedRegistriesParamsWithTimeout(timeout time.Duration) *ListAllowedRegistriesParams
- func (o *ListAllowedRegistriesParams) SetContext(ctx context.Context)
- func (o *ListAllowedRegistriesParams) SetDefaults()
- func (o *ListAllowedRegistriesParams) SetHTTPClient(client *http.Client)
- func (o *ListAllowedRegistriesParams) SetTimeout(timeout time.Duration)
- func (o *ListAllowedRegistriesParams) WithContext(ctx context.Context) *ListAllowedRegistriesParams
- func (o *ListAllowedRegistriesParams) WithDefaults() *ListAllowedRegistriesParams
- func (o *ListAllowedRegistriesParams) WithHTTPClient(client *http.Client) *ListAllowedRegistriesParams
- func (o *ListAllowedRegistriesParams) WithTimeout(timeout time.Duration) *ListAllowedRegistriesParams
- func (o *ListAllowedRegistriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListAllowedRegistriesReader
- type ListAllowedRegistriesUnauthorized
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 (o *CreateAllowedRegistryCreated) Error() string
func (*CreateAllowedRegistryCreated) GetPayload ¶
func (o *CreateAllowedRegistryCreated) GetPayload() *models.AllowedRegistry
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 ¶
func (o *CreateAllowedRegistryDefault) Code() int
Code gets the status code for the create allowed registry default response
func (*CreateAllowedRegistryDefault) Error ¶
func (o *CreateAllowedRegistryDefault) Error() string
func (*CreateAllowedRegistryDefault) GetPayload ¶
func (o *CreateAllowedRegistryDefault) GetPayload() *models.ErrorResponse
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 (o *CreateAllowedRegistryForbidden) Error() 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 ¶
func (o *CreateAllowedRegistryParams) WithBody(body *models.WrBody) *CreateAllowedRegistryParams
WithBody adds the body to the create allowed registry params
func (*CreateAllowedRegistryParams) WithContext ¶
func (o *CreateAllowedRegistryParams) WithContext(ctx context.Context) *CreateAllowedRegistryParams
WithContext adds the context to the create allowed registry params
func (*CreateAllowedRegistryParams) WithDefaults ¶
func (o *CreateAllowedRegistryParams) WithDefaults() *CreateAllowedRegistryParams
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 ¶
func (o *CreateAllowedRegistryParams) WithHTTPClient(client *http.Client) *CreateAllowedRegistryParams
WithHTTPClient adds the HTTPClient to the create allowed registry params
func (*CreateAllowedRegistryParams) WithTimeout ¶
func (o *CreateAllowedRegistryParams) WithTimeout(timeout time.Duration) *CreateAllowedRegistryParams
WithTimeout adds the timeout to the create allowed registry params
func (*CreateAllowedRegistryParams) WriteToRequest ¶
func (o *CreateAllowedRegistryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *CreateAllowedRegistryUnauthorized) Error() 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 ¶
func (o *ListAllowedRegistriesDefault) Code() int
Code gets the status code for the list allowed registries default response
func (*ListAllowedRegistriesDefault) Error ¶
func (o *ListAllowedRegistriesDefault) Error() string
func (*ListAllowedRegistriesDefault) GetPayload ¶
func (o *ListAllowedRegistriesDefault) GetPayload() *models.ErrorResponse
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 (o *ListAllowedRegistriesForbidden) Error() 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
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 ¶
func (o *ListAllowedRegistriesParams) WithContext(ctx context.Context) *ListAllowedRegistriesParams
WithContext adds the context to the list allowed registries params
func (*ListAllowedRegistriesParams) WithDefaults ¶
func (o *ListAllowedRegistriesParams) WithDefaults() *ListAllowedRegistriesParams
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 ¶
func (o *ListAllowedRegistriesParams) WithHTTPClient(client *http.Client) *ListAllowedRegistriesParams
WithHTTPClient adds the HTTPClient to the list allowed registries params
func (*ListAllowedRegistriesParams) WithTimeout ¶
func (o *ListAllowedRegistriesParams) WithTimeout(timeout time.Duration) *ListAllowedRegistriesParams
WithTimeout adds the timeout to the list allowed registries params
func (*ListAllowedRegistriesParams) WriteToRequest ¶
func (o *ListAllowedRegistriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ListAllowedRegistriesUnauthorized) Error() string