Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetDeploymentNotFound
- func (o *GetDeploymentNotFound) Code() int
- func (o *GetDeploymentNotFound) Error() string
- func (o *GetDeploymentNotFound) IsClientError() bool
- func (o *GetDeploymentNotFound) IsCode(code int) bool
- func (o *GetDeploymentNotFound) IsRedirect() bool
- func (o *GetDeploymentNotFound) IsServerError() bool
- func (o *GetDeploymentNotFound) IsSuccess() bool
- func (o *GetDeploymentNotFound) String() string
- type GetDeploymentOK
- func (o *GetDeploymentOK) Code() int
- func (o *GetDeploymentOK) Error() string
- func (o *GetDeploymentOK) GetPayload() *models.Deployment
- func (o *GetDeploymentOK) IsClientError() bool
- func (o *GetDeploymentOK) IsCode(code int) bool
- func (o *GetDeploymentOK) IsRedirect() bool
- func (o *GetDeploymentOK) IsServerError() bool
- func (o *GetDeploymentOK) IsSuccess() bool
- func (o *GetDeploymentOK) String() string
- type GetDeploymentParams
- func (o *GetDeploymentParams) SetAppName(appName string)
- func (o *GetDeploymentParams) SetContext(ctx context.Context)
- func (o *GetDeploymentParams) SetDefaults()
- func (o *GetDeploymentParams) SetDeploymentName(deploymentName string)
- func (o *GetDeploymentParams) SetHTTPClient(client *http.Client)
- func (o *GetDeploymentParams) SetImpersonateGroup(impersonateGroup *string)
- func (o *GetDeploymentParams) SetImpersonateUser(impersonateUser *string)
- func (o *GetDeploymentParams) SetTimeout(timeout time.Duration)
- func (o *GetDeploymentParams) WithAppName(appName string) *GetDeploymentParams
- func (o *GetDeploymentParams) WithContext(ctx context.Context) *GetDeploymentParams
- func (o *GetDeploymentParams) WithDefaults() *GetDeploymentParams
- func (o *GetDeploymentParams) WithDeploymentName(deploymentName string) *GetDeploymentParams
- func (o *GetDeploymentParams) WithHTTPClient(client *http.Client) *GetDeploymentParams
- func (o *GetDeploymentParams) WithImpersonateGroup(impersonateGroup *string) *GetDeploymentParams
- func (o *GetDeploymentParams) WithImpersonateUser(impersonateUser *string) *GetDeploymentParams
- func (o *GetDeploymentParams) WithTimeout(timeout time.Duration) *GetDeploymentParams
- func (o *GetDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeploymentReader
- type GetDeploymentUnauthorized
- func (o *GetDeploymentUnauthorized) Code() int
- func (o *GetDeploymentUnauthorized) Error() string
- func (o *GetDeploymentUnauthorized) IsClientError() bool
- func (o *GetDeploymentUnauthorized) IsCode(code int) bool
- func (o *GetDeploymentUnauthorized) IsRedirect() bool
- func (o *GetDeploymentUnauthorized) IsServerError() bool
- func (o *GetDeploymentUnauthorized) IsSuccess() bool
- func (o *GetDeploymentUnauthorized) String() string
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 deployment API
func (*Client) GetDeployment ¶
func (a *Client) GetDeployment(params *GetDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentOK, error)
GetDeployment gets deployment details
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { GetDeployment(params *GetDeploymentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentOK, 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 deployment API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new deployment API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new deployment API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetDeploymentNotFound ¶
type GetDeploymentNotFound struct { }
GetDeploymentNotFound describes a response with status code 404, with default header values.
Not found
func NewGetDeploymentNotFound ¶
func NewGetDeploymentNotFound() *GetDeploymentNotFound
NewGetDeploymentNotFound creates a GetDeploymentNotFound with default headers values
func (*GetDeploymentNotFound) Code ¶
func (o *GetDeploymentNotFound) Code() int
Code gets the status code for the get deployment not found response
func (*GetDeploymentNotFound) Error ¶
func (o *GetDeploymentNotFound) Error() string
func (*GetDeploymentNotFound) IsClientError ¶
func (o *GetDeploymentNotFound) IsClientError() bool
IsClientError returns true when this get deployment not found response has a 4xx status code
func (*GetDeploymentNotFound) IsCode ¶
func (o *GetDeploymentNotFound) IsCode(code int) bool
IsCode returns true when this get deployment not found response a status code equal to that given
func (*GetDeploymentNotFound) IsRedirect ¶
func (o *GetDeploymentNotFound) IsRedirect() bool
IsRedirect returns true when this get deployment not found response has a 3xx status code
func (*GetDeploymentNotFound) IsServerError ¶
func (o *GetDeploymentNotFound) IsServerError() bool
IsServerError returns true when this get deployment not found response has a 5xx status code
func (*GetDeploymentNotFound) IsSuccess ¶
func (o *GetDeploymentNotFound) IsSuccess() bool
IsSuccess returns true when this get deployment not found response has a 2xx status code
func (*GetDeploymentNotFound) String ¶
func (o *GetDeploymentNotFound) String() string
type GetDeploymentOK ¶
type GetDeploymentOK struct {
Payload *models.Deployment
}
GetDeploymentOK describes a response with status code 200, with default header values.
Successful get deployment
func NewGetDeploymentOK ¶
func NewGetDeploymentOK() *GetDeploymentOK
NewGetDeploymentOK creates a GetDeploymentOK with default headers values
func (*GetDeploymentOK) Code ¶
func (o *GetDeploymentOK) Code() int
Code gets the status code for the get deployment o k response
func (*GetDeploymentOK) Error ¶
func (o *GetDeploymentOK) Error() string
func (*GetDeploymentOK) GetPayload ¶
func (o *GetDeploymentOK) GetPayload() *models.Deployment
func (*GetDeploymentOK) IsClientError ¶
func (o *GetDeploymentOK) IsClientError() bool
IsClientError returns true when this get deployment o k response has a 4xx status code
func (*GetDeploymentOK) IsCode ¶
func (o *GetDeploymentOK) IsCode(code int) bool
IsCode returns true when this get deployment o k response a status code equal to that given
func (*GetDeploymentOK) IsRedirect ¶
func (o *GetDeploymentOK) IsRedirect() bool
IsRedirect returns true when this get deployment o k response has a 3xx status code
func (*GetDeploymentOK) IsServerError ¶
func (o *GetDeploymentOK) IsServerError() bool
IsServerError returns true when this get deployment o k response has a 5xx status code
func (*GetDeploymentOK) IsSuccess ¶
func (o *GetDeploymentOK) IsSuccess() bool
IsSuccess returns true when this get deployment o k response has a 2xx status code
func (*GetDeploymentOK) String ¶
func (o *GetDeploymentOK) String() string
type GetDeploymentParams ¶
type GetDeploymentParams struct { /* ImpersonateGroup. Works only with custom setup of cluster. Allow impersonation of a comma-seperated list of test groups (Required if Impersonate-User is set) */ ImpersonateGroup *string /* ImpersonateUser. Works only with custom setup of cluster. Allow impersonation of test users (Required if Impersonate-Group is set) */ ImpersonateUser *string /* AppName. name of Radix application */ AppName string /* DeploymentName. name of deployment */ DeploymentName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDeploymentParams contains all the parameters to send to the API endpoint
for the get deployment operation. Typically these are written to a http.Request.
func NewGetDeploymentParams ¶
func NewGetDeploymentParams() *GetDeploymentParams
NewGetDeploymentParams creates a new GetDeploymentParams 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 NewGetDeploymentParamsWithContext ¶
func NewGetDeploymentParamsWithContext(ctx context.Context) *GetDeploymentParams
NewGetDeploymentParamsWithContext creates a new GetDeploymentParams object with the ability to set a context for a request.
func NewGetDeploymentParamsWithHTTPClient ¶
func NewGetDeploymentParamsWithHTTPClient(client *http.Client) *GetDeploymentParams
NewGetDeploymentParamsWithHTTPClient creates a new GetDeploymentParams object with the ability to set a custom HTTPClient for a request.
func NewGetDeploymentParamsWithTimeout ¶
func NewGetDeploymentParamsWithTimeout(timeout time.Duration) *GetDeploymentParams
NewGetDeploymentParamsWithTimeout creates a new GetDeploymentParams object with the ability to set a timeout on a request.
func (*GetDeploymentParams) SetAppName ¶
func (o *GetDeploymentParams) SetAppName(appName string)
SetAppName adds the appName to the get deployment params
func (*GetDeploymentParams) SetContext ¶
func (o *GetDeploymentParams) SetContext(ctx context.Context)
SetContext adds the context to the get deployment params
func (*GetDeploymentParams) SetDefaults ¶
func (o *GetDeploymentParams) SetDefaults()
SetDefaults hydrates default values in the get deployment params (not the query body).
All values with no default are reset to their zero value.
func (*GetDeploymentParams) SetDeploymentName ¶
func (o *GetDeploymentParams) SetDeploymentName(deploymentName string)
SetDeploymentName adds the deploymentName to the get deployment params
func (*GetDeploymentParams) SetHTTPClient ¶
func (o *GetDeploymentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get deployment params
func (*GetDeploymentParams) SetImpersonateGroup ¶
func (o *GetDeploymentParams) SetImpersonateGroup(impersonateGroup *string)
SetImpersonateGroup adds the impersonateGroup to the get deployment params
func (*GetDeploymentParams) SetImpersonateUser ¶
func (o *GetDeploymentParams) SetImpersonateUser(impersonateUser *string)
SetImpersonateUser adds the impersonateUser to the get deployment params
func (*GetDeploymentParams) SetTimeout ¶
func (o *GetDeploymentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get deployment params
func (*GetDeploymentParams) WithAppName ¶
func (o *GetDeploymentParams) WithAppName(appName string) *GetDeploymentParams
WithAppName adds the appName to the get deployment params
func (*GetDeploymentParams) WithContext ¶
func (o *GetDeploymentParams) WithContext(ctx context.Context) *GetDeploymentParams
WithContext adds the context to the get deployment params
func (*GetDeploymentParams) WithDefaults ¶
func (o *GetDeploymentParams) WithDefaults() *GetDeploymentParams
WithDefaults hydrates default values in the get deployment params (not the query body).
All values with no default are reset to their zero value.
func (*GetDeploymentParams) WithDeploymentName ¶
func (o *GetDeploymentParams) WithDeploymentName(deploymentName string) *GetDeploymentParams
WithDeploymentName adds the deploymentName to the get deployment params
func (*GetDeploymentParams) WithHTTPClient ¶
func (o *GetDeploymentParams) WithHTTPClient(client *http.Client) *GetDeploymentParams
WithHTTPClient adds the HTTPClient to the get deployment params
func (*GetDeploymentParams) WithImpersonateGroup ¶
func (o *GetDeploymentParams) WithImpersonateGroup(impersonateGroup *string) *GetDeploymentParams
WithImpersonateGroup adds the impersonateGroup to the get deployment params
func (*GetDeploymentParams) WithImpersonateUser ¶
func (o *GetDeploymentParams) WithImpersonateUser(impersonateUser *string) *GetDeploymentParams
WithImpersonateUser adds the impersonateUser to the get deployment params
func (*GetDeploymentParams) WithTimeout ¶
func (o *GetDeploymentParams) WithTimeout(timeout time.Duration) *GetDeploymentParams
WithTimeout adds the timeout to the get deployment params
func (*GetDeploymentParams) WriteToRequest ¶
func (o *GetDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDeploymentReader ¶
type GetDeploymentReader struct {
// contains filtered or unexported fields
}
GetDeploymentReader is a Reader for the GetDeployment structure.
func (*GetDeploymentReader) ReadResponse ¶
func (o *GetDeploymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDeploymentUnauthorized ¶
type GetDeploymentUnauthorized struct { }
GetDeploymentUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetDeploymentUnauthorized ¶
func NewGetDeploymentUnauthorized() *GetDeploymentUnauthorized
NewGetDeploymentUnauthorized creates a GetDeploymentUnauthorized with default headers values
func (*GetDeploymentUnauthorized) Code ¶
func (o *GetDeploymentUnauthorized) Code() int
Code gets the status code for the get deployment unauthorized response
func (*GetDeploymentUnauthorized) Error ¶
func (o *GetDeploymentUnauthorized) Error() string
func (*GetDeploymentUnauthorized) IsClientError ¶
func (o *GetDeploymentUnauthorized) IsClientError() bool
IsClientError returns true when this get deployment unauthorized response has a 4xx status code
func (*GetDeploymentUnauthorized) IsCode ¶
func (o *GetDeploymentUnauthorized) IsCode(code int) bool
IsCode returns true when this get deployment unauthorized response a status code equal to that given
func (*GetDeploymentUnauthorized) IsRedirect ¶
func (o *GetDeploymentUnauthorized) IsRedirect() bool
IsRedirect returns true when this get deployment unauthorized response has a 3xx status code
func (*GetDeploymentUnauthorized) IsServerError ¶
func (o *GetDeploymentUnauthorized) IsServerError() bool
IsServerError returns true when this get deployment unauthorized response has a 5xx status code
func (*GetDeploymentUnauthorized) IsSuccess ¶
func (o *GetDeploymentUnauthorized) IsSuccess() bool
IsSuccess returns true when this get deployment unauthorized response has a 2xx status code
func (*GetDeploymentUnauthorized) String ¶
func (o *GetDeploymentUnauthorized) String() string