Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateCredentials(params *CreateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateCredentialsOK, error)
- func (a *Client) DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCredentialsOK, error)
- func (a *Client) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListCredentialsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCredentialsOK, error)
- type ClientOption
- type ClientService
- type CreateCredentialsBadRequest
- func (o *CreateCredentialsBadRequest) Code() int
- func (o *CreateCredentialsBadRequest) Error() string
- func (o *CreateCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *CreateCredentialsBadRequest) IsClientError() bool
- func (o *CreateCredentialsBadRequest) IsCode(code int) bool
- func (o *CreateCredentialsBadRequest) IsRedirect() bool
- func (o *CreateCredentialsBadRequest) IsServerError() bool
- func (o *CreateCredentialsBadRequest) IsSuccess() bool
- func (o *CreateCredentialsBadRequest) String() string
- type CreateCredentialsOK
- func (o *CreateCredentialsOK) Code() int
- func (o *CreateCredentialsOK) Error() string
- func (o *CreateCredentialsOK) GetPayload() garm_params.GithubCredentials
- func (o *CreateCredentialsOK) IsClientError() bool
- func (o *CreateCredentialsOK) IsCode(code int) bool
- func (o *CreateCredentialsOK) IsRedirect() bool
- func (o *CreateCredentialsOK) IsServerError() bool
- func (o *CreateCredentialsOK) IsSuccess() bool
- func (o *CreateCredentialsOK) String() string
- type CreateCredentialsParams
- func NewCreateCredentialsParams() *CreateCredentialsParams
- func NewCreateCredentialsParamsWithContext(ctx context.Context) *CreateCredentialsParams
- func NewCreateCredentialsParamsWithHTTPClient(client *http.Client) *CreateCredentialsParams
- func NewCreateCredentialsParamsWithTimeout(timeout time.Duration) *CreateCredentialsParams
- func (o *CreateCredentialsParams) SetBody(body garm_params.CreateGithubCredentialsParams)
- func (o *CreateCredentialsParams) SetContext(ctx context.Context)
- func (o *CreateCredentialsParams) SetDefaults()
- func (o *CreateCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *CreateCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *CreateCredentialsParams) WithBody(body garm_params.CreateGithubCredentialsParams) *CreateCredentialsParams
- func (o *CreateCredentialsParams) WithContext(ctx context.Context) *CreateCredentialsParams
- func (o *CreateCredentialsParams) WithDefaults() *CreateCredentialsParams
- func (o *CreateCredentialsParams) WithHTTPClient(client *http.Client) *CreateCredentialsParams
- func (o *CreateCredentialsParams) WithTimeout(timeout time.Duration) *CreateCredentialsParams
- func (o *CreateCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCredentialsReader
- type DeleteCredentialsDefault
- func (o *DeleteCredentialsDefault) Code() int
- func (o *DeleteCredentialsDefault) Error() string
- func (o *DeleteCredentialsDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeleteCredentialsDefault) IsClientError() bool
- func (o *DeleteCredentialsDefault) IsCode(code int) bool
- func (o *DeleteCredentialsDefault) IsRedirect() bool
- func (o *DeleteCredentialsDefault) IsServerError() bool
- func (o *DeleteCredentialsDefault) IsSuccess() bool
- func (o *DeleteCredentialsDefault) String() string
- type DeleteCredentialsParams
- func NewDeleteCredentialsParams() *DeleteCredentialsParams
- func NewDeleteCredentialsParamsWithContext(ctx context.Context) *DeleteCredentialsParams
- func NewDeleteCredentialsParamsWithHTTPClient(client *http.Client) *DeleteCredentialsParams
- func NewDeleteCredentialsParamsWithTimeout(timeout time.Duration) *DeleteCredentialsParams
- func (o *DeleteCredentialsParams) SetContext(ctx context.Context)
- func (o *DeleteCredentialsParams) SetDefaults()
- func (o *DeleteCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCredentialsParams) SetID(id int64)
- func (o *DeleteCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCredentialsParams) WithContext(ctx context.Context) *DeleteCredentialsParams
- func (o *DeleteCredentialsParams) WithDefaults() *DeleteCredentialsParams
- func (o *DeleteCredentialsParams) WithHTTPClient(client *http.Client) *DeleteCredentialsParams
- func (o *DeleteCredentialsParams) WithID(id int64) *DeleteCredentialsParams
- func (o *DeleteCredentialsParams) WithTimeout(timeout time.Duration) *DeleteCredentialsParams
- func (o *DeleteCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCredentialsReader
- type GetCredentialsBadRequest
- func (o *GetCredentialsBadRequest) Code() int
- func (o *GetCredentialsBadRequest) Error() string
- func (o *GetCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetCredentialsBadRequest) IsClientError() bool
- func (o *GetCredentialsBadRequest) IsCode(code int) bool
- func (o *GetCredentialsBadRequest) IsRedirect() bool
- func (o *GetCredentialsBadRequest) IsServerError() bool
- func (o *GetCredentialsBadRequest) IsSuccess() bool
- func (o *GetCredentialsBadRequest) String() string
- type GetCredentialsOK
- func (o *GetCredentialsOK) Code() int
- func (o *GetCredentialsOK) Error() string
- func (o *GetCredentialsOK) GetPayload() garm_params.GithubCredentials
- func (o *GetCredentialsOK) IsClientError() bool
- func (o *GetCredentialsOK) IsCode(code int) bool
- func (o *GetCredentialsOK) IsRedirect() bool
- func (o *GetCredentialsOK) IsServerError() bool
- func (o *GetCredentialsOK) IsSuccess() bool
- func (o *GetCredentialsOK) String() string
- type GetCredentialsParams
- func NewGetCredentialsParams() *GetCredentialsParams
- func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams
- func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams
- func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams
- func (o *GetCredentialsParams) SetContext(ctx context.Context)
- func (o *GetCredentialsParams) SetDefaults()
- func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *GetCredentialsParams) SetID(id int64)
- func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *GetCredentialsParams) WithContext(ctx context.Context) *GetCredentialsParams
- func (o *GetCredentialsParams) WithDefaults() *GetCredentialsParams
- func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams
- func (o *GetCredentialsParams) WithID(id int64) *GetCredentialsParams
- func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams
- func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCredentialsReader
- type ListCredentialsBadRequest
- func (o *ListCredentialsBadRequest) Code() int
- func (o *ListCredentialsBadRequest) Error() string
- func (o *ListCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListCredentialsBadRequest) IsClientError() bool
- func (o *ListCredentialsBadRequest) IsCode(code int) bool
- func (o *ListCredentialsBadRequest) IsRedirect() bool
- func (o *ListCredentialsBadRequest) IsServerError() bool
- func (o *ListCredentialsBadRequest) IsSuccess() bool
- func (o *ListCredentialsBadRequest) String() string
- type ListCredentialsOK
- func (o *ListCredentialsOK) Code() int
- func (o *ListCredentialsOK) Error() string
- func (o *ListCredentialsOK) GetPayload() garm_params.Credentials
- func (o *ListCredentialsOK) IsClientError() bool
- func (o *ListCredentialsOK) IsCode(code int) bool
- func (o *ListCredentialsOK) IsRedirect() bool
- func (o *ListCredentialsOK) IsServerError() bool
- func (o *ListCredentialsOK) IsSuccess() bool
- func (o *ListCredentialsOK) String() string
- type ListCredentialsParams
- func NewListCredentialsParams() *ListCredentialsParams
- func NewListCredentialsParamsWithContext(ctx context.Context) *ListCredentialsParams
- func NewListCredentialsParamsWithHTTPClient(client *http.Client) *ListCredentialsParams
- func NewListCredentialsParamsWithTimeout(timeout time.Duration) *ListCredentialsParams
- func (o *ListCredentialsParams) SetContext(ctx context.Context)
- func (o *ListCredentialsParams) SetDefaults()
- func (o *ListCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *ListCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *ListCredentialsParams) WithContext(ctx context.Context) *ListCredentialsParams
- func (o *ListCredentialsParams) WithDefaults() *ListCredentialsParams
- func (o *ListCredentialsParams) WithHTTPClient(client *http.Client) *ListCredentialsParams
- func (o *ListCredentialsParams) WithTimeout(timeout time.Duration) *ListCredentialsParams
- func (o *ListCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCredentialsReader
- type UpdateCredentialsBadRequest
- func (o *UpdateCredentialsBadRequest) Code() int
- func (o *UpdateCredentialsBadRequest) Error() string
- func (o *UpdateCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdateCredentialsBadRequest) IsClientError() bool
- func (o *UpdateCredentialsBadRequest) IsCode(code int) bool
- func (o *UpdateCredentialsBadRequest) IsRedirect() bool
- func (o *UpdateCredentialsBadRequest) IsServerError() bool
- func (o *UpdateCredentialsBadRequest) IsSuccess() bool
- func (o *UpdateCredentialsBadRequest) String() string
- type UpdateCredentialsOK
- func (o *UpdateCredentialsOK) Code() int
- func (o *UpdateCredentialsOK) Error() string
- func (o *UpdateCredentialsOK) GetPayload() garm_params.GithubCredentials
- func (o *UpdateCredentialsOK) IsClientError() bool
- func (o *UpdateCredentialsOK) IsCode(code int) bool
- func (o *UpdateCredentialsOK) IsRedirect() bool
- func (o *UpdateCredentialsOK) IsServerError() bool
- func (o *UpdateCredentialsOK) IsSuccess() bool
- func (o *UpdateCredentialsOK) String() string
- type UpdateCredentialsParams
- func NewUpdateCredentialsParams() *UpdateCredentialsParams
- func NewUpdateCredentialsParamsWithContext(ctx context.Context) *UpdateCredentialsParams
- func NewUpdateCredentialsParamsWithHTTPClient(client *http.Client) *UpdateCredentialsParams
- func NewUpdateCredentialsParamsWithTimeout(timeout time.Duration) *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) SetBody(body garm_params.UpdateGithubCredentialsParams)
- func (o *UpdateCredentialsParams) SetContext(ctx context.Context)
- func (o *UpdateCredentialsParams) SetDefaults()
- func (o *UpdateCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCredentialsParams) SetID(id int64)
- func (o *UpdateCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCredentialsParams) WithBody(body garm_params.UpdateGithubCredentialsParams) *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) WithContext(ctx context.Context) *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) WithDefaults() *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) WithHTTPClient(client *http.Client) *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) WithID(id int64) *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) WithTimeout(timeout time.Duration) *UpdateCredentialsParams
- func (o *UpdateCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCredentialsReader
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 credentials API
func (*Client) CreateCredentials ¶ added in v0.1.5
func (a *Client) CreateCredentials(params *CreateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCredentialsOK, error)
CreateCredentials creates a git hub credential
func (*Client) DeleteCredentials ¶ added in v0.1.5
func (a *Client) DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteCredentials deletes a git hub credential
func (*Client) GetCredentials ¶ added in v0.1.5
func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, error)
GetCredentials gets a git hub credential
func (*Client) ListCredentials ¶
func (a *Client) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error)
ListCredentials lists all credentials
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCredentials ¶ added in v0.1.5
func (a *Client) UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCredentialsOK, error)
UpdateCredentials updates a git hub credential
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { CreateCredentials(params *CreateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCredentialsOK, error) DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, error) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error) UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCredentialsOK, 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 credentials API client.
func NewClientWithBasicAuth ¶ added in v0.1.5
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new credentials 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 ¶ added in v0.1.5
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new credentials 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 CreateCredentialsBadRequest ¶ added in v0.1.5
type CreateCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
CreateCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewCreateCredentialsBadRequest ¶ added in v0.1.5
func NewCreateCredentialsBadRequest() *CreateCredentialsBadRequest
NewCreateCredentialsBadRequest creates a CreateCredentialsBadRequest with default headers values
func (*CreateCredentialsBadRequest) Code ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) Code() int
Code gets the status code for the create credentials bad request response
func (*CreateCredentialsBadRequest) Error ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) Error() string
func (*CreateCredentialsBadRequest) GetPayload ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*CreateCredentialsBadRequest) IsClientError ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this create credentials bad request response has a 4xx status code
func (*CreateCredentialsBadRequest) IsCode ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this create credentials bad request response a status code equal to that given
func (*CreateCredentialsBadRequest) IsRedirect ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this create credentials bad request response has a 3xx status code
func (*CreateCredentialsBadRequest) IsServerError ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this create credentials bad request response has a 5xx status code
func (*CreateCredentialsBadRequest) IsSuccess ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this create credentials bad request response has a 2xx status code
func (*CreateCredentialsBadRequest) String ¶ added in v0.1.5
func (o *CreateCredentialsBadRequest) String() string
type CreateCredentialsOK ¶ added in v0.1.5
type CreateCredentialsOK struct {
Payload garm_params.GithubCredentials
}
CreateCredentialsOK describes a response with status code 200, with default header values.
GithubCredentials
func NewCreateCredentialsOK ¶ added in v0.1.5
func NewCreateCredentialsOK() *CreateCredentialsOK
NewCreateCredentialsOK creates a CreateCredentialsOK with default headers values
func (*CreateCredentialsOK) Code ¶ added in v0.1.5
func (o *CreateCredentialsOK) Code() int
Code gets the status code for the create credentials o k response
func (*CreateCredentialsOK) Error ¶ added in v0.1.5
func (o *CreateCredentialsOK) Error() string
func (*CreateCredentialsOK) GetPayload ¶ added in v0.1.5
func (o *CreateCredentialsOK) GetPayload() garm_params.GithubCredentials
func (*CreateCredentialsOK) IsClientError ¶ added in v0.1.5
func (o *CreateCredentialsOK) IsClientError() bool
IsClientError returns true when this create credentials o k response has a 4xx status code
func (*CreateCredentialsOK) IsCode ¶ added in v0.1.5
func (o *CreateCredentialsOK) IsCode(code int) bool
IsCode returns true when this create credentials o k response a status code equal to that given
func (*CreateCredentialsOK) IsRedirect ¶ added in v0.1.5
func (o *CreateCredentialsOK) IsRedirect() bool
IsRedirect returns true when this create credentials o k response has a 3xx status code
func (*CreateCredentialsOK) IsServerError ¶ added in v0.1.5
func (o *CreateCredentialsOK) IsServerError() bool
IsServerError returns true when this create credentials o k response has a 5xx status code
func (*CreateCredentialsOK) IsSuccess ¶ added in v0.1.5
func (o *CreateCredentialsOK) IsSuccess() bool
IsSuccess returns true when this create credentials o k response has a 2xx status code
func (*CreateCredentialsOK) String ¶ added in v0.1.5
func (o *CreateCredentialsOK) String() string
type CreateCredentialsParams ¶ added in v0.1.5
type CreateCredentialsParams struct { /* Body. Parameters used when creating a GitHub credential. */ Body garm_params.CreateGithubCredentialsParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCredentialsParams contains all the parameters to send to the API endpoint
for the create credentials operation. Typically these are written to a http.Request.
func NewCreateCredentialsParams ¶ added in v0.1.5
func NewCreateCredentialsParams() *CreateCredentialsParams
NewCreateCredentialsParams creates a new CreateCredentialsParams 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 NewCreateCredentialsParamsWithContext ¶ added in v0.1.5
func NewCreateCredentialsParamsWithContext(ctx context.Context) *CreateCredentialsParams
NewCreateCredentialsParamsWithContext creates a new CreateCredentialsParams object with the ability to set a context for a request.
func NewCreateCredentialsParamsWithHTTPClient ¶ added in v0.1.5
func NewCreateCredentialsParamsWithHTTPClient(client *http.Client) *CreateCredentialsParams
NewCreateCredentialsParamsWithHTTPClient creates a new CreateCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewCreateCredentialsParamsWithTimeout ¶ added in v0.1.5
func NewCreateCredentialsParamsWithTimeout(timeout time.Duration) *CreateCredentialsParams
NewCreateCredentialsParamsWithTimeout creates a new CreateCredentialsParams object with the ability to set a timeout on a request.
func (*CreateCredentialsParams) SetBody ¶ added in v0.1.5
func (o *CreateCredentialsParams) SetBody(body garm_params.CreateGithubCredentialsParams)
SetBody adds the body to the create credentials params
func (*CreateCredentialsParams) SetContext ¶ added in v0.1.5
func (o *CreateCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the create credentials params
func (*CreateCredentialsParams) SetDefaults ¶ added in v0.1.5
func (o *CreateCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the create credentials params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCredentialsParams) SetHTTPClient ¶ added in v0.1.5
func (o *CreateCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create credentials params
func (*CreateCredentialsParams) SetTimeout ¶ added in v0.1.5
func (o *CreateCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create credentials params
func (*CreateCredentialsParams) WithBody ¶ added in v0.1.5
func (o *CreateCredentialsParams) WithBody(body garm_params.CreateGithubCredentialsParams) *CreateCredentialsParams
WithBody adds the body to the create credentials params
func (*CreateCredentialsParams) WithContext ¶ added in v0.1.5
func (o *CreateCredentialsParams) WithContext(ctx context.Context) *CreateCredentialsParams
WithContext adds the context to the create credentials params
func (*CreateCredentialsParams) WithDefaults ¶ added in v0.1.5
func (o *CreateCredentialsParams) WithDefaults() *CreateCredentialsParams
WithDefaults hydrates default values in the create credentials params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCredentialsParams) WithHTTPClient ¶ added in v0.1.5
func (o *CreateCredentialsParams) WithHTTPClient(client *http.Client) *CreateCredentialsParams
WithHTTPClient adds the HTTPClient to the create credentials params
func (*CreateCredentialsParams) WithTimeout ¶ added in v0.1.5
func (o *CreateCredentialsParams) WithTimeout(timeout time.Duration) *CreateCredentialsParams
WithTimeout adds the timeout to the create credentials params
func (*CreateCredentialsParams) WriteToRequest ¶ added in v0.1.5
func (o *CreateCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCredentialsReader ¶ added in v0.1.5
type CreateCredentialsReader struct {
// contains filtered or unexported fields
}
CreateCredentialsReader is a Reader for the CreateCredentials structure.
func (*CreateCredentialsReader) ReadResponse ¶ added in v0.1.5
func (o *CreateCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCredentialsDefault ¶ added in v0.1.5
type DeleteCredentialsDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
DeleteCredentialsDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeleteCredentialsDefault ¶ added in v0.1.5
func NewDeleteCredentialsDefault(code int) *DeleteCredentialsDefault
NewDeleteCredentialsDefault creates a DeleteCredentialsDefault with default headers values
func (*DeleteCredentialsDefault) Code ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) Code() int
Code gets the status code for the delete credentials default response
func (*DeleteCredentialsDefault) Error ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) Error() string
func (*DeleteCredentialsDefault) GetPayload ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeleteCredentialsDefault) IsClientError ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) IsClientError() bool
IsClientError returns true when this delete credentials default response has a 4xx status code
func (*DeleteCredentialsDefault) IsCode ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) IsCode(code int) bool
IsCode returns true when this delete credentials default response a status code equal to that given
func (*DeleteCredentialsDefault) IsRedirect ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) IsRedirect() bool
IsRedirect returns true when this delete credentials default response has a 3xx status code
func (*DeleteCredentialsDefault) IsServerError ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) IsServerError() bool
IsServerError returns true when this delete credentials default response has a 5xx status code
func (*DeleteCredentialsDefault) IsSuccess ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) IsSuccess() bool
IsSuccess returns true when this delete credentials default response has a 2xx status code
func (*DeleteCredentialsDefault) String ¶ added in v0.1.5
func (o *DeleteCredentialsDefault) String() string
type DeleteCredentialsParams ¶ added in v0.1.5
type DeleteCredentialsParams struct { /* ID. ID of the GitHub credential. */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCredentialsParams contains all the parameters to send to the API endpoint
for the delete credentials operation. Typically these are written to a http.Request.
func NewDeleteCredentialsParams ¶ added in v0.1.5
func NewDeleteCredentialsParams() *DeleteCredentialsParams
NewDeleteCredentialsParams creates a new DeleteCredentialsParams 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 NewDeleteCredentialsParamsWithContext ¶ added in v0.1.5
func NewDeleteCredentialsParamsWithContext(ctx context.Context) *DeleteCredentialsParams
NewDeleteCredentialsParamsWithContext creates a new DeleteCredentialsParams object with the ability to set a context for a request.
func NewDeleteCredentialsParamsWithHTTPClient ¶ added in v0.1.5
func NewDeleteCredentialsParamsWithHTTPClient(client *http.Client) *DeleteCredentialsParams
NewDeleteCredentialsParamsWithHTTPClient creates a new DeleteCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteCredentialsParamsWithTimeout ¶ added in v0.1.5
func NewDeleteCredentialsParamsWithTimeout(timeout time.Duration) *DeleteCredentialsParams
NewDeleteCredentialsParamsWithTimeout creates a new DeleteCredentialsParams object with the ability to set a timeout on a request.
func (*DeleteCredentialsParams) SetContext ¶ added in v0.1.5
func (o *DeleteCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete credentials params
func (*DeleteCredentialsParams) SetDefaults ¶ added in v0.1.5
func (o *DeleteCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the delete credentials params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCredentialsParams) SetHTTPClient ¶ added in v0.1.5
func (o *DeleteCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete credentials params
func (*DeleteCredentialsParams) SetID ¶ added in v0.1.5
func (o *DeleteCredentialsParams) SetID(id int64)
SetID adds the id to the delete credentials params
func (*DeleteCredentialsParams) SetTimeout ¶ added in v0.1.5
func (o *DeleteCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete credentials params
func (*DeleteCredentialsParams) WithContext ¶ added in v0.1.5
func (o *DeleteCredentialsParams) WithContext(ctx context.Context) *DeleteCredentialsParams
WithContext adds the context to the delete credentials params
func (*DeleteCredentialsParams) WithDefaults ¶ added in v0.1.5
func (o *DeleteCredentialsParams) WithDefaults() *DeleteCredentialsParams
WithDefaults hydrates default values in the delete credentials params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCredentialsParams) WithHTTPClient ¶ added in v0.1.5
func (o *DeleteCredentialsParams) WithHTTPClient(client *http.Client) *DeleteCredentialsParams
WithHTTPClient adds the HTTPClient to the delete credentials params
func (*DeleteCredentialsParams) WithID ¶ added in v0.1.5
func (o *DeleteCredentialsParams) WithID(id int64) *DeleteCredentialsParams
WithID adds the id to the delete credentials params
func (*DeleteCredentialsParams) WithTimeout ¶ added in v0.1.5
func (o *DeleteCredentialsParams) WithTimeout(timeout time.Duration) *DeleteCredentialsParams
WithTimeout adds the timeout to the delete credentials params
func (*DeleteCredentialsParams) WriteToRequest ¶ added in v0.1.5
func (o *DeleteCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCredentialsReader ¶ added in v0.1.5
type DeleteCredentialsReader struct {
// contains filtered or unexported fields
}
DeleteCredentialsReader is a Reader for the DeleteCredentials structure.
func (*DeleteCredentialsReader) ReadResponse ¶ added in v0.1.5
func (o *DeleteCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCredentialsBadRequest ¶ added in v0.1.5
type GetCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
GetCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewGetCredentialsBadRequest ¶ added in v0.1.5
func NewGetCredentialsBadRequest() *GetCredentialsBadRequest
NewGetCredentialsBadRequest creates a GetCredentialsBadRequest with default headers values
func (*GetCredentialsBadRequest) Code ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) Code() int
Code gets the status code for the get credentials bad request response
func (*GetCredentialsBadRequest) Error ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) Error() string
func (*GetCredentialsBadRequest) GetPayload ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*GetCredentialsBadRequest) IsClientError ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this get credentials bad request response has a 4xx status code
func (*GetCredentialsBadRequest) IsCode ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this get credentials bad request response a status code equal to that given
func (*GetCredentialsBadRequest) IsRedirect ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this get credentials bad request response has a 3xx status code
func (*GetCredentialsBadRequest) IsServerError ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this get credentials bad request response has a 5xx status code
func (*GetCredentialsBadRequest) IsSuccess ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this get credentials bad request response has a 2xx status code
func (*GetCredentialsBadRequest) String ¶ added in v0.1.5
func (o *GetCredentialsBadRequest) String() string
type GetCredentialsOK ¶ added in v0.1.5
type GetCredentialsOK struct {
Payload garm_params.GithubCredentials
}
GetCredentialsOK describes a response with status code 200, with default header values.
GithubCredentials
func NewGetCredentialsOK ¶ added in v0.1.5
func NewGetCredentialsOK() *GetCredentialsOK
NewGetCredentialsOK creates a GetCredentialsOK with default headers values
func (*GetCredentialsOK) Code ¶ added in v0.1.5
func (o *GetCredentialsOK) Code() int
Code gets the status code for the get credentials o k response
func (*GetCredentialsOK) Error ¶ added in v0.1.5
func (o *GetCredentialsOK) Error() string
func (*GetCredentialsOK) GetPayload ¶ added in v0.1.5
func (o *GetCredentialsOK) GetPayload() garm_params.GithubCredentials
func (*GetCredentialsOK) IsClientError ¶ added in v0.1.5
func (o *GetCredentialsOK) IsClientError() bool
IsClientError returns true when this get credentials o k response has a 4xx status code
func (*GetCredentialsOK) IsCode ¶ added in v0.1.5
func (o *GetCredentialsOK) IsCode(code int) bool
IsCode returns true when this get credentials o k response a status code equal to that given
func (*GetCredentialsOK) IsRedirect ¶ added in v0.1.5
func (o *GetCredentialsOK) IsRedirect() bool
IsRedirect returns true when this get credentials o k response has a 3xx status code
func (*GetCredentialsOK) IsServerError ¶ added in v0.1.5
func (o *GetCredentialsOK) IsServerError() bool
IsServerError returns true when this get credentials o k response has a 5xx status code
func (*GetCredentialsOK) IsSuccess ¶ added in v0.1.5
func (o *GetCredentialsOK) IsSuccess() bool
IsSuccess returns true when this get credentials o k response has a 2xx status code
func (*GetCredentialsOK) String ¶ added in v0.1.5
func (o *GetCredentialsOK) String() string
type GetCredentialsParams ¶ added in v0.1.5
type GetCredentialsParams struct { /* ID. ID of the GitHub credential. */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCredentialsParams contains all the parameters to send to the API endpoint
for the get credentials operation. Typically these are written to a http.Request.
func NewGetCredentialsParams ¶ added in v0.1.5
func NewGetCredentialsParams() *GetCredentialsParams
NewGetCredentialsParams creates a new GetCredentialsParams 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 NewGetCredentialsParamsWithContext ¶ added in v0.1.5
func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams
NewGetCredentialsParamsWithContext creates a new GetCredentialsParams object with the ability to set a context for a request.
func NewGetCredentialsParamsWithHTTPClient ¶ added in v0.1.5
func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams
NewGetCredentialsParamsWithHTTPClient creates a new GetCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewGetCredentialsParamsWithTimeout ¶ added in v0.1.5
func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams
NewGetCredentialsParamsWithTimeout creates a new GetCredentialsParams object with the ability to set a timeout on a request.
func (*GetCredentialsParams) SetContext ¶ added in v0.1.5
func (o *GetCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the get credentials params
func (*GetCredentialsParams) SetDefaults ¶ added in v0.1.5
func (o *GetCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the get credentials params (not the query body).
All values with no default are reset to their zero value.
func (*GetCredentialsParams) SetHTTPClient ¶ added in v0.1.5
func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get credentials params
func (*GetCredentialsParams) SetID ¶ added in v0.1.5
func (o *GetCredentialsParams) SetID(id int64)
SetID adds the id to the get credentials params
func (*GetCredentialsParams) SetTimeout ¶ added in v0.1.5
func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get credentials params
func (*GetCredentialsParams) WithContext ¶ added in v0.1.5
func (o *GetCredentialsParams) WithContext(ctx context.Context) *GetCredentialsParams
WithContext adds the context to the get credentials params
func (*GetCredentialsParams) WithDefaults ¶ added in v0.1.5
func (o *GetCredentialsParams) WithDefaults() *GetCredentialsParams
WithDefaults hydrates default values in the get credentials params (not the query body).
All values with no default are reset to their zero value.
func (*GetCredentialsParams) WithHTTPClient ¶ added in v0.1.5
func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams
WithHTTPClient adds the HTTPClient to the get credentials params
func (*GetCredentialsParams) WithID ¶ added in v0.1.5
func (o *GetCredentialsParams) WithID(id int64) *GetCredentialsParams
WithID adds the id to the get credentials params
func (*GetCredentialsParams) WithTimeout ¶ added in v0.1.5
func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams
WithTimeout adds the timeout to the get credentials params
func (*GetCredentialsParams) WriteToRequest ¶ added in v0.1.5
func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCredentialsReader ¶ added in v0.1.5
type GetCredentialsReader struct {
// contains filtered or unexported fields
}
GetCredentialsReader is a Reader for the GetCredentials structure.
func (*GetCredentialsReader) ReadResponse ¶ added in v0.1.5
func (o *GetCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListCredentialsBadRequest ¶
type ListCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
ListCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewListCredentialsBadRequest ¶
func NewListCredentialsBadRequest() *ListCredentialsBadRequest
NewListCredentialsBadRequest creates a ListCredentialsBadRequest with default headers values
func (*ListCredentialsBadRequest) Code ¶
func (o *ListCredentialsBadRequest) Code() int
Code gets the status code for the list credentials bad request response
func (*ListCredentialsBadRequest) Error ¶
func (o *ListCredentialsBadRequest) Error() string
func (*ListCredentialsBadRequest) GetPayload ¶
func (o *ListCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*ListCredentialsBadRequest) IsClientError ¶
func (o *ListCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this list credentials bad request response has a 4xx status code
func (*ListCredentialsBadRequest) IsCode ¶
func (o *ListCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this list credentials bad request response a status code equal to that given
func (*ListCredentialsBadRequest) IsRedirect ¶
func (o *ListCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this list credentials bad request response has a 3xx status code
func (*ListCredentialsBadRequest) IsServerError ¶
func (o *ListCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this list credentials bad request response has a 5xx status code
func (*ListCredentialsBadRequest) IsSuccess ¶
func (o *ListCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this list credentials bad request response has a 2xx status code
func (*ListCredentialsBadRequest) String ¶
func (o *ListCredentialsBadRequest) String() string
type ListCredentialsOK ¶
type ListCredentialsOK struct {
Payload garm_params.Credentials
}
ListCredentialsOK describes a response with status code 200, with default header values.
Credentials
func NewListCredentialsOK ¶
func NewListCredentialsOK() *ListCredentialsOK
NewListCredentialsOK creates a ListCredentialsOK with default headers values
func (*ListCredentialsOK) Code ¶
func (o *ListCredentialsOK) Code() int
Code gets the status code for the list credentials o k response
func (*ListCredentialsOK) Error ¶
func (o *ListCredentialsOK) Error() string
func (*ListCredentialsOK) GetPayload ¶
func (o *ListCredentialsOK) GetPayload() garm_params.Credentials
func (*ListCredentialsOK) IsClientError ¶
func (o *ListCredentialsOK) IsClientError() bool
IsClientError returns true when this list credentials o k response has a 4xx status code
func (*ListCredentialsOK) IsCode ¶
func (o *ListCredentialsOK) IsCode(code int) bool
IsCode returns true when this list credentials o k response a status code equal to that given
func (*ListCredentialsOK) IsRedirect ¶
func (o *ListCredentialsOK) IsRedirect() bool
IsRedirect returns true when this list credentials o k response has a 3xx status code
func (*ListCredentialsOK) IsServerError ¶
func (o *ListCredentialsOK) IsServerError() bool
IsServerError returns true when this list credentials o k response has a 5xx status code
func (*ListCredentialsOK) IsSuccess ¶
func (o *ListCredentialsOK) IsSuccess() bool
IsSuccess returns true when this list credentials o k response has a 2xx status code
func (*ListCredentialsOK) String ¶
func (o *ListCredentialsOK) String() string
type ListCredentialsParams ¶
type ListCredentialsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListCredentialsParams contains all the parameters to send to the API endpoint
for the list credentials operation. Typically these are written to a http.Request.
func NewListCredentialsParams ¶
func NewListCredentialsParams() *ListCredentialsParams
NewListCredentialsParams creates a new ListCredentialsParams 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 NewListCredentialsParamsWithContext ¶
func NewListCredentialsParamsWithContext(ctx context.Context) *ListCredentialsParams
NewListCredentialsParamsWithContext creates a new ListCredentialsParams object with the ability to set a context for a request.
func NewListCredentialsParamsWithHTTPClient ¶
func NewListCredentialsParamsWithHTTPClient(client *http.Client) *ListCredentialsParams
NewListCredentialsParamsWithHTTPClient creates a new ListCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewListCredentialsParamsWithTimeout ¶
func NewListCredentialsParamsWithTimeout(timeout time.Duration) *ListCredentialsParams
NewListCredentialsParamsWithTimeout creates a new ListCredentialsParams object with the ability to set a timeout on a request.
func (*ListCredentialsParams) SetContext ¶
func (o *ListCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the list credentials params
func (*ListCredentialsParams) SetDefaults ¶
func (o *ListCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the list credentials params (not the query body).
All values with no default are reset to their zero value.
func (*ListCredentialsParams) SetHTTPClient ¶
func (o *ListCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list credentials params
func (*ListCredentialsParams) SetTimeout ¶
func (o *ListCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list credentials params
func (*ListCredentialsParams) WithContext ¶
func (o *ListCredentialsParams) WithContext(ctx context.Context) *ListCredentialsParams
WithContext adds the context to the list credentials params
func (*ListCredentialsParams) WithDefaults ¶
func (o *ListCredentialsParams) WithDefaults() *ListCredentialsParams
WithDefaults hydrates default values in the list credentials params (not the query body).
All values with no default are reset to their zero value.
func (*ListCredentialsParams) WithHTTPClient ¶
func (o *ListCredentialsParams) WithHTTPClient(client *http.Client) *ListCredentialsParams
WithHTTPClient adds the HTTPClient to the list credentials params
func (*ListCredentialsParams) WithTimeout ¶
func (o *ListCredentialsParams) WithTimeout(timeout time.Duration) *ListCredentialsParams
WithTimeout adds the timeout to the list credentials params
func (*ListCredentialsParams) WriteToRequest ¶
func (o *ListCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListCredentialsReader ¶
type ListCredentialsReader struct {
// contains filtered or unexported fields
}
ListCredentialsReader is a Reader for the ListCredentials structure.
func (*ListCredentialsReader) ReadResponse ¶
func (o *ListCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCredentialsBadRequest ¶ added in v0.1.5
type UpdateCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
UpdateCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewUpdateCredentialsBadRequest ¶ added in v0.1.5
func NewUpdateCredentialsBadRequest() *UpdateCredentialsBadRequest
NewUpdateCredentialsBadRequest creates a UpdateCredentialsBadRequest with default headers values
func (*UpdateCredentialsBadRequest) Code ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) Code() int
Code gets the status code for the update credentials bad request response
func (*UpdateCredentialsBadRequest) Error ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) Error() string
func (*UpdateCredentialsBadRequest) GetPayload ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*UpdateCredentialsBadRequest) IsClientError ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this update credentials bad request response has a 4xx status code
func (*UpdateCredentialsBadRequest) IsCode ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this update credentials bad request response a status code equal to that given
func (*UpdateCredentialsBadRequest) IsRedirect ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this update credentials bad request response has a 3xx status code
func (*UpdateCredentialsBadRequest) IsServerError ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this update credentials bad request response has a 5xx status code
func (*UpdateCredentialsBadRequest) IsSuccess ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this update credentials bad request response has a 2xx status code
func (*UpdateCredentialsBadRequest) String ¶ added in v0.1.5
func (o *UpdateCredentialsBadRequest) String() string
type UpdateCredentialsOK ¶ added in v0.1.5
type UpdateCredentialsOK struct {
Payload garm_params.GithubCredentials
}
UpdateCredentialsOK describes a response with status code 200, with default header values.
GithubCredentials
func NewUpdateCredentialsOK ¶ added in v0.1.5
func NewUpdateCredentialsOK() *UpdateCredentialsOK
NewUpdateCredentialsOK creates a UpdateCredentialsOK with default headers values
func (*UpdateCredentialsOK) Code ¶ added in v0.1.5
func (o *UpdateCredentialsOK) Code() int
Code gets the status code for the update credentials o k response
func (*UpdateCredentialsOK) Error ¶ added in v0.1.5
func (o *UpdateCredentialsOK) Error() string
func (*UpdateCredentialsOK) GetPayload ¶ added in v0.1.5
func (o *UpdateCredentialsOK) GetPayload() garm_params.GithubCredentials
func (*UpdateCredentialsOK) IsClientError ¶ added in v0.1.5
func (o *UpdateCredentialsOK) IsClientError() bool
IsClientError returns true when this update credentials o k response has a 4xx status code
func (*UpdateCredentialsOK) IsCode ¶ added in v0.1.5
func (o *UpdateCredentialsOK) IsCode(code int) bool
IsCode returns true when this update credentials o k response a status code equal to that given
func (*UpdateCredentialsOK) IsRedirect ¶ added in v0.1.5
func (o *UpdateCredentialsOK) IsRedirect() bool
IsRedirect returns true when this update credentials o k response has a 3xx status code
func (*UpdateCredentialsOK) IsServerError ¶ added in v0.1.5
func (o *UpdateCredentialsOK) IsServerError() bool
IsServerError returns true when this update credentials o k response has a 5xx status code
func (*UpdateCredentialsOK) IsSuccess ¶ added in v0.1.5
func (o *UpdateCredentialsOK) IsSuccess() bool
IsSuccess returns true when this update credentials o k response has a 2xx status code
func (*UpdateCredentialsOK) String ¶ added in v0.1.5
func (o *UpdateCredentialsOK) String() string
type UpdateCredentialsParams ¶ added in v0.1.5
type UpdateCredentialsParams struct { /* Body. Parameters used when updating a GitHub credential. */ Body garm_params.UpdateGithubCredentialsParams /* ID. ID of the GitHub credential. */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCredentialsParams contains all the parameters to send to the API endpoint
for the update credentials operation. Typically these are written to a http.Request.
func NewUpdateCredentialsParams ¶ added in v0.1.5
func NewUpdateCredentialsParams() *UpdateCredentialsParams
NewUpdateCredentialsParams creates a new UpdateCredentialsParams 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 NewUpdateCredentialsParamsWithContext ¶ added in v0.1.5
func NewUpdateCredentialsParamsWithContext(ctx context.Context) *UpdateCredentialsParams
NewUpdateCredentialsParamsWithContext creates a new UpdateCredentialsParams object with the ability to set a context for a request.
func NewUpdateCredentialsParamsWithHTTPClient ¶ added in v0.1.5
func NewUpdateCredentialsParamsWithHTTPClient(client *http.Client) *UpdateCredentialsParams
NewUpdateCredentialsParamsWithHTTPClient creates a new UpdateCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCredentialsParamsWithTimeout ¶ added in v0.1.5
func NewUpdateCredentialsParamsWithTimeout(timeout time.Duration) *UpdateCredentialsParams
NewUpdateCredentialsParamsWithTimeout creates a new UpdateCredentialsParams object with the ability to set a timeout on a request.
func (*UpdateCredentialsParams) SetBody ¶ added in v0.1.5
func (o *UpdateCredentialsParams) SetBody(body garm_params.UpdateGithubCredentialsParams)
SetBody adds the body to the update credentials params
func (*UpdateCredentialsParams) SetContext ¶ added in v0.1.5
func (o *UpdateCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the update credentials params
func (*UpdateCredentialsParams) SetDefaults ¶ added in v0.1.5
func (o *UpdateCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the update credentials params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCredentialsParams) SetHTTPClient ¶ added in v0.1.5
func (o *UpdateCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update credentials params
func (*UpdateCredentialsParams) SetID ¶ added in v0.1.5
func (o *UpdateCredentialsParams) SetID(id int64)
SetID adds the id to the update credentials params
func (*UpdateCredentialsParams) SetTimeout ¶ added in v0.1.5
func (o *UpdateCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update credentials params
func (*UpdateCredentialsParams) WithBody ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WithBody(body garm_params.UpdateGithubCredentialsParams) *UpdateCredentialsParams
WithBody adds the body to the update credentials params
func (*UpdateCredentialsParams) WithContext ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WithContext(ctx context.Context) *UpdateCredentialsParams
WithContext adds the context to the update credentials params
func (*UpdateCredentialsParams) WithDefaults ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WithDefaults() *UpdateCredentialsParams
WithDefaults hydrates default values in the update credentials params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCredentialsParams) WithHTTPClient ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WithHTTPClient(client *http.Client) *UpdateCredentialsParams
WithHTTPClient adds the HTTPClient to the update credentials params
func (*UpdateCredentialsParams) WithID ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WithID(id int64) *UpdateCredentialsParams
WithID adds the id to the update credentials params
func (*UpdateCredentialsParams) WithTimeout ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WithTimeout(timeout time.Duration) *UpdateCredentialsParams
WithTimeout adds the timeout to the update credentials params
func (*UpdateCredentialsParams) WriteToRequest ¶ added in v0.1.5
func (o *UpdateCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCredentialsReader ¶ added in v0.1.5
type UpdateCredentialsReader struct {
// contains filtered or unexported fields
}
UpdateCredentialsReader is a Reader for the UpdateCredentials structure.
func (*UpdateCredentialsReader) ReadResponse ¶ added in v0.1.5
func (o *UpdateCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_credentials_parameters.go
- create_credentials_responses.go
- credentials_client.go
- delete_credentials_parameters.go
- delete_credentials_responses.go
- get_credentials_parameters.go
- get_credentials_responses.go
- list_credentials_parameters.go
- list_credentials_responses.go
- update_credentials_parameters.go
- update_credentials_responses.go