Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type TestRegistryBody
- type TestRegistryOK
- type TestRegistryParams
- func (o *TestRegistryParams) SetContext(ctx context.Context)
- func (o *TestRegistryParams) SetDefaults()
- func (o *TestRegistryParams) SetHTTPClient(client *http.Client)
- func (o *TestRegistryParams) SetRegistryPayload(registryPayload TestRegistryBody)
- func (o *TestRegistryParams) SetTimeout(timeout time.Duration)
- func (o *TestRegistryParams) WithContext(ctx context.Context) *TestRegistryParams
- func (o *TestRegistryParams) WithDefaults() *TestRegistryParams
- func (o *TestRegistryParams) WithHTTPClient(client *http.Client) *TestRegistryParams
- func (o *TestRegistryParams) WithRegistryPayload(registryPayload TestRegistryBody) *TestRegistryParams
- func (o *TestRegistryParams) WithTimeout(timeout time.Duration) *TestRegistryParams
- func (o *TestRegistryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TestRegistryReader
- type TestRegistryUnauthorized
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 operations API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TestRegistry ¶
func (a *Client) TestRegistry(params *TestRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestRegistryOK, error)
TestRegistry tests a registry to make sure the connection is okay
Test a registry with provided url, username and token
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { TestRegistry(params *TestRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestRegistryOK, 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 operations API client.
type TestRegistryBody ¶
type TestRegistryBody struct { // token to authenticate with the registry // Required: true Password *string `json:"password"` // The url to test if the registry is valid // Required: true URL *string `json:"url"` // username to authenticate with the registry // Required: true Username *string `json:"username"` }
TestRegistryBody test registry body // Example: {"token":"8QwFLg%D$qg*","url":"https://prod.customreg.io","username":"admin"} swagger:model TestRegistryBody
func (*TestRegistryBody) ContextValidate ¶
ContextValidate validates this test registry body based on context it is used
func (*TestRegistryBody) MarshalBinary ¶
func (o *TestRegistryBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TestRegistryBody) UnmarshalBinary ¶
func (o *TestRegistryBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TestRegistryOK ¶
type TestRegistryOK struct { }
TestRegistryOK describes a response with status code 200, with default header values.
registry is valid
func NewTestRegistryOK ¶
func NewTestRegistryOK() *TestRegistryOK
NewTestRegistryOK creates a TestRegistryOK with default headers values
func (*TestRegistryOK) Error ¶
func (o *TestRegistryOK) Error() string
type TestRegistryParams ¶
type TestRegistryParams struct { /* RegistryPayload. Payload that contains registry data */ RegistryPayload TestRegistryBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TestRegistryParams contains all the parameters to send to the API endpoint
for the test registry operation. Typically these are written to a http.Request.
func NewTestRegistryParams ¶
func NewTestRegistryParams() *TestRegistryParams
NewTestRegistryParams creates a new TestRegistryParams 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 NewTestRegistryParamsWithContext ¶
func NewTestRegistryParamsWithContext(ctx context.Context) *TestRegistryParams
NewTestRegistryParamsWithContext creates a new TestRegistryParams object with the ability to set a context for a request.
func NewTestRegistryParamsWithHTTPClient ¶
func NewTestRegistryParamsWithHTTPClient(client *http.Client) *TestRegistryParams
NewTestRegistryParamsWithHTTPClient creates a new TestRegistryParams object with the ability to set a custom HTTPClient for a request.
func NewTestRegistryParamsWithTimeout ¶
func NewTestRegistryParamsWithTimeout(timeout time.Duration) *TestRegistryParams
NewTestRegistryParamsWithTimeout creates a new TestRegistryParams object with the ability to set a timeout on a request.
func (*TestRegistryParams) SetContext ¶
func (o *TestRegistryParams) SetContext(ctx context.Context)
SetContext adds the context to the test registry params
func (*TestRegistryParams) SetDefaults ¶
func (o *TestRegistryParams) SetDefaults()
SetDefaults hydrates default values in the test registry params (not the query body).
All values with no default are reset to their zero value.
func (*TestRegistryParams) SetHTTPClient ¶
func (o *TestRegistryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the test registry params
func (*TestRegistryParams) SetRegistryPayload ¶
func (o *TestRegistryParams) SetRegistryPayload(registryPayload TestRegistryBody)
SetRegistryPayload adds the registryPayload to the test registry params
func (*TestRegistryParams) SetTimeout ¶
func (o *TestRegistryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the test registry params
func (*TestRegistryParams) WithContext ¶
func (o *TestRegistryParams) WithContext(ctx context.Context) *TestRegistryParams
WithContext adds the context to the test registry params
func (*TestRegistryParams) WithDefaults ¶
func (o *TestRegistryParams) WithDefaults() *TestRegistryParams
WithDefaults hydrates default values in the test registry params (not the query body).
All values with no default are reset to their zero value.
func (*TestRegistryParams) WithHTTPClient ¶
func (o *TestRegistryParams) WithHTTPClient(client *http.Client) *TestRegistryParams
WithHTTPClient adds the HTTPClient to the test registry params
func (*TestRegistryParams) WithRegistryPayload ¶
func (o *TestRegistryParams) WithRegistryPayload(registryPayload TestRegistryBody) *TestRegistryParams
WithRegistryPayload adds the registryPayload to the test registry params
func (*TestRegistryParams) WithTimeout ¶
func (o *TestRegistryParams) WithTimeout(timeout time.Duration) *TestRegistryParams
WithTimeout adds the timeout to the test registry params
func (*TestRegistryParams) WriteToRequest ¶
func (o *TestRegistryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TestRegistryReader ¶
type TestRegistryReader struct {
// contains filtered or unexported fields
}
TestRegistryReader is a Reader for the TestRegistry structure.
func (*TestRegistryReader) ReadResponse ¶
func (o *TestRegistryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TestRegistryUnauthorized ¶
type TestRegistryUnauthorized struct { }
TestRegistryUnauthorized describes a response with status code 401, with default header values.
unauthorized to access the registry
func NewTestRegistryUnauthorized ¶
func NewTestRegistryUnauthorized() *TestRegistryUnauthorized
NewTestRegistryUnauthorized creates a TestRegistryUnauthorized with default headers values
func (*TestRegistryUnauthorized) Error ¶
func (o *TestRegistryUnauthorized) Error() string