Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetAPIV1PluginsAwsCredentialsStatusOK
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) Code() int
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) Error() string
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) GetPayload() *models.PluginAWSCredentialStatus
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsClientError() bool
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsCode(code int) bool
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsRedirect() bool
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsServerError() bool
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsSuccess() bool
- func (o *GetAPIV1PluginsAwsCredentialsStatusOK) String() string
- type GetAPIV1PluginsAwsCredentialsStatusParams
- func NewGetAPIV1PluginsAwsCredentialsStatusParams() *GetAPIV1PluginsAwsCredentialsStatusParams
- func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithContext(ctx context.Context) *GetAPIV1PluginsAwsCredentialsStatusParams
- func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithHTTPClient(client *http.Client) *GetAPIV1PluginsAwsCredentialsStatusParams
- func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithTimeout(timeout time.Duration) *GetAPIV1PluginsAwsCredentialsStatusParams
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetContext(ctx context.Context)
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetDefaults()
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithContext(ctx context.Context) *GetAPIV1PluginsAwsCredentialsStatusParams
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithDefaults() *GetAPIV1PluginsAwsCredentialsStatusParams
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithHTTPClient(client *http.Client) *GetAPIV1PluginsAwsCredentialsStatusParams
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithTimeout(timeout time.Duration) *GetAPIV1PluginsAwsCredentialsStatusParams
- func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIV1PluginsAwsCredentialsStatusReader
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 plugins API
func (*Client) GetAPIV1PluginsAwsCredentialsStatus ¶
func (a *Client) GetAPIV1PluginsAwsCredentialsStatus(params *GetAPIV1PluginsAwsCredentialsStatusParams, opts ...ClientOption) (*GetAPIV1PluginsAwsCredentialsStatusOK, error)
GetAPIV1PluginsAwsCredentialsStatus gets a w s credential detection status
Detects if AWS credentials are available from environment or config files
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 {
GetAPIV1PluginsAwsCredentialsStatus(params *GetAPIV1PluginsAwsCredentialsStatusParams, opts ...ClientOption) (*GetAPIV1PluginsAwsCredentialsStatusOK, 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 plugins API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new plugins 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 plugins 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 GetAPIV1PluginsAwsCredentialsStatusOK ¶
type GetAPIV1PluginsAwsCredentialsStatusOK struct {
Payload *models.PluginAWSCredentialStatus
}
GetAPIV1PluginsAwsCredentialsStatusOK describes a response with status code 200, with default header values.
OK
func NewGetAPIV1PluginsAwsCredentialsStatusOK ¶
func NewGetAPIV1PluginsAwsCredentialsStatusOK() *GetAPIV1PluginsAwsCredentialsStatusOK
NewGetAPIV1PluginsAwsCredentialsStatusOK creates a GetAPIV1PluginsAwsCredentialsStatusOK with default headers values
func (*GetAPIV1PluginsAwsCredentialsStatusOK) Code ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) Code() int
Code gets the status code for the get Api v1 plugins aws credentials status o k response
func (*GetAPIV1PluginsAwsCredentialsStatusOK) Error ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) Error() string
func (*GetAPIV1PluginsAwsCredentialsStatusOK) GetPayload ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) GetPayload() *models.PluginAWSCredentialStatus
func (*GetAPIV1PluginsAwsCredentialsStatusOK) IsClientError ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsClientError() bool
IsClientError returns true when this get Api v1 plugins aws credentials status o k response has a 4xx status code
func (*GetAPIV1PluginsAwsCredentialsStatusOK) IsCode ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsCode(code int) bool
IsCode returns true when this get Api v1 plugins aws credentials status o k response a status code equal to that given
func (*GetAPIV1PluginsAwsCredentialsStatusOK) IsRedirect ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsRedirect() bool
IsRedirect returns true when this get Api v1 plugins aws credentials status o k response has a 3xx status code
func (*GetAPIV1PluginsAwsCredentialsStatusOK) IsServerError ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsServerError() bool
IsServerError returns true when this get Api v1 plugins aws credentials status o k response has a 5xx status code
func (*GetAPIV1PluginsAwsCredentialsStatusOK) IsSuccess ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) IsSuccess() bool
IsSuccess returns true when this get Api v1 plugins aws credentials status o k response has a 2xx status code
func (*GetAPIV1PluginsAwsCredentialsStatusOK) String ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusOK) String() string
type GetAPIV1PluginsAwsCredentialsStatusParams ¶
type GetAPIV1PluginsAwsCredentialsStatusParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAPIV1PluginsAwsCredentialsStatusParams contains all the parameters to send to the API endpoint
for the get API v1 plugins aws credentials status operation. Typically these are written to a http.Request.
func NewGetAPIV1PluginsAwsCredentialsStatusParams ¶
func NewGetAPIV1PluginsAwsCredentialsStatusParams() *GetAPIV1PluginsAwsCredentialsStatusParams
NewGetAPIV1PluginsAwsCredentialsStatusParams creates a new GetAPIV1PluginsAwsCredentialsStatusParams 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 NewGetAPIV1PluginsAwsCredentialsStatusParamsWithContext ¶
func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithContext(ctx context.Context) *GetAPIV1PluginsAwsCredentialsStatusParams
NewGetAPIV1PluginsAwsCredentialsStatusParamsWithContext creates a new GetAPIV1PluginsAwsCredentialsStatusParams object with the ability to set a context for a request.
func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithHTTPClient ¶
func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithHTTPClient(client *http.Client) *GetAPIV1PluginsAwsCredentialsStatusParams
NewGetAPIV1PluginsAwsCredentialsStatusParamsWithHTTPClient creates a new GetAPIV1PluginsAwsCredentialsStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithTimeout ¶
func NewGetAPIV1PluginsAwsCredentialsStatusParamsWithTimeout(timeout time.Duration) *GetAPIV1PluginsAwsCredentialsStatusParams
NewGetAPIV1PluginsAwsCredentialsStatusParamsWithTimeout creates a new GetAPIV1PluginsAwsCredentialsStatusParams object with the ability to set a timeout on a request.
func (*GetAPIV1PluginsAwsCredentialsStatusParams) SetContext ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get API v1 plugins aws credentials status params
func (*GetAPIV1PluginsAwsCredentialsStatusParams) SetDefaults ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetDefaults()
SetDefaults hydrates default values in the get API v1 plugins aws credentials status params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIV1PluginsAwsCredentialsStatusParams) SetHTTPClient ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API v1 plugins aws credentials status params
func (*GetAPIV1PluginsAwsCredentialsStatusParams) SetTimeout ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API v1 plugins aws credentials status params
func (*GetAPIV1PluginsAwsCredentialsStatusParams) WithContext ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithContext(ctx context.Context) *GetAPIV1PluginsAwsCredentialsStatusParams
WithContext adds the context to the get API v1 plugins aws credentials status params
func (*GetAPIV1PluginsAwsCredentialsStatusParams) WithDefaults ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithDefaults() *GetAPIV1PluginsAwsCredentialsStatusParams
WithDefaults hydrates default values in the get API v1 plugins aws credentials status params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIV1PluginsAwsCredentialsStatusParams) WithHTTPClient ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithHTTPClient(client *http.Client) *GetAPIV1PluginsAwsCredentialsStatusParams
WithHTTPClient adds the HTTPClient to the get API v1 plugins aws credentials status params
func (*GetAPIV1PluginsAwsCredentialsStatusParams) WithTimeout ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WithTimeout(timeout time.Duration) *GetAPIV1PluginsAwsCredentialsStatusParams
WithTimeout adds the timeout to the get API v1 plugins aws credentials status params
func (*GetAPIV1PluginsAwsCredentialsStatusParams) WriteToRequest ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIV1PluginsAwsCredentialsStatusReader ¶
type GetAPIV1PluginsAwsCredentialsStatusReader struct {
// contains filtered or unexported fields
}
GetAPIV1PluginsAwsCredentialsStatusReader is a Reader for the GetAPIV1PluginsAwsCredentialsStatus structure.
func (*GetAPIV1PluginsAwsCredentialsStatusReader) ReadResponse ¶
func (o *GetAPIV1PluginsAwsCredentialsStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.