Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateCredentials(params *CreateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateCredentialsOK, error)
- func (a *Client) CreateGiteaCredentials(params *CreateGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateGiteaCredentialsOK, error)
- func (a *Client) DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) DeleteGiteaCredentials(params *DeleteGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCredentialsOK, error)
- func (a *Client) GetGiteaCredentials(params *GetGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetGiteaCredentialsOK, error)
- func (a *Client) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListCredentialsOK, error)
- func (a *Client) ListGiteaCredentials(params *ListGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListGiteaCredentialsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCredentialsOK, error)
- func (a *Client) UpdateGiteaCredentials(params *UpdateGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateGiteaCredentialsOK, 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.ForgeCredentials
- 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 CreateGiteaCredentialsBadRequest
- func (o *CreateGiteaCredentialsBadRequest) Code() int
- func (o *CreateGiteaCredentialsBadRequest) Error() string
- func (o *CreateGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *CreateGiteaCredentialsBadRequest) IsClientError() bool
- func (o *CreateGiteaCredentialsBadRequest) IsCode(code int) bool
- func (o *CreateGiteaCredentialsBadRequest) IsRedirect() bool
- func (o *CreateGiteaCredentialsBadRequest) IsServerError() bool
- func (o *CreateGiteaCredentialsBadRequest) IsSuccess() bool
- func (o *CreateGiteaCredentialsBadRequest) String() string
- type CreateGiteaCredentialsOK
- func (o *CreateGiteaCredentialsOK) Code() int
- func (o *CreateGiteaCredentialsOK) Error() string
- func (o *CreateGiteaCredentialsOK) GetPayload() garm_params.ForgeCredentials
- func (o *CreateGiteaCredentialsOK) IsClientError() bool
- func (o *CreateGiteaCredentialsOK) IsCode(code int) bool
- func (o *CreateGiteaCredentialsOK) IsRedirect() bool
- func (o *CreateGiteaCredentialsOK) IsServerError() bool
- func (o *CreateGiteaCredentialsOK) IsSuccess() bool
- func (o *CreateGiteaCredentialsOK) String() string
- type CreateGiteaCredentialsParams
- func NewCreateGiteaCredentialsParams() *CreateGiteaCredentialsParams
- func NewCreateGiteaCredentialsParamsWithContext(ctx context.Context) *CreateGiteaCredentialsParams
- func NewCreateGiteaCredentialsParamsWithHTTPClient(client *http.Client) *CreateGiteaCredentialsParams
- func NewCreateGiteaCredentialsParamsWithTimeout(timeout time.Duration) *CreateGiteaCredentialsParams
- func (o *CreateGiteaCredentialsParams) SetBody(body garm_params.CreateGiteaCredentialsParams)
- func (o *CreateGiteaCredentialsParams) SetContext(ctx context.Context)
- func (o *CreateGiteaCredentialsParams) SetDefaults()
- func (o *CreateGiteaCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *CreateGiteaCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *CreateGiteaCredentialsParams) WithBody(body garm_params.CreateGiteaCredentialsParams) *CreateGiteaCredentialsParams
- func (o *CreateGiteaCredentialsParams) WithContext(ctx context.Context) *CreateGiteaCredentialsParams
- func (o *CreateGiteaCredentialsParams) WithDefaults() *CreateGiteaCredentialsParams
- func (o *CreateGiteaCredentialsParams) WithHTTPClient(client *http.Client) *CreateGiteaCredentialsParams
- func (o *CreateGiteaCredentialsParams) WithTimeout(timeout time.Duration) *CreateGiteaCredentialsParams
- func (o *CreateGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateGiteaCredentialsReader
- 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 DeleteGiteaCredentialsDefault
- func (o *DeleteGiteaCredentialsDefault) Code() int
- func (o *DeleteGiteaCredentialsDefault) Error() string
- func (o *DeleteGiteaCredentialsDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeleteGiteaCredentialsDefault) IsClientError() bool
- func (o *DeleteGiteaCredentialsDefault) IsCode(code int) bool
- func (o *DeleteGiteaCredentialsDefault) IsRedirect() bool
- func (o *DeleteGiteaCredentialsDefault) IsServerError() bool
- func (o *DeleteGiteaCredentialsDefault) IsSuccess() bool
- func (o *DeleteGiteaCredentialsDefault) String() string
- type DeleteGiteaCredentialsParams
- func NewDeleteGiteaCredentialsParams() *DeleteGiteaCredentialsParams
- func NewDeleteGiteaCredentialsParamsWithContext(ctx context.Context) *DeleteGiteaCredentialsParams
- func NewDeleteGiteaCredentialsParamsWithHTTPClient(client *http.Client) *DeleteGiteaCredentialsParams
- func NewDeleteGiteaCredentialsParamsWithTimeout(timeout time.Duration) *DeleteGiteaCredentialsParams
- func (o *DeleteGiteaCredentialsParams) SetContext(ctx context.Context)
- func (o *DeleteGiteaCredentialsParams) SetDefaults()
- func (o *DeleteGiteaCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *DeleteGiteaCredentialsParams) SetID(id int64)
- func (o *DeleteGiteaCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *DeleteGiteaCredentialsParams) WithContext(ctx context.Context) *DeleteGiteaCredentialsParams
- func (o *DeleteGiteaCredentialsParams) WithDefaults() *DeleteGiteaCredentialsParams
- func (o *DeleteGiteaCredentialsParams) WithHTTPClient(client *http.Client) *DeleteGiteaCredentialsParams
- func (o *DeleteGiteaCredentialsParams) WithID(id int64) *DeleteGiteaCredentialsParams
- func (o *DeleteGiteaCredentialsParams) WithTimeout(timeout time.Duration) *DeleteGiteaCredentialsParams
- func (o *DeleteGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteGiteaCredentialsReader
- 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.ForgeCredentials
- 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 GetGiteaCredentialsBadRequest
- func (o *GetGiteaCredentialsBadRequest) Code() int
- func (o *GetGiteaCredentialsBadRequest) Error() string
- func (o *GetGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetGiteaCredentialsBadRequest) IsClientError() bool
- func (o *GetGiteaCredentialsBadRequest) IsCode(code int) bool
- func (o *GetGiteaCredentialsBadRequest) IsRedirect() bool
- func (o *GetGiteaCredentialsBadRequest) IsServerError() bool
- func (o *GetGiteaCredentialsBadRequest) IsSuccess() bool
- func (o *GetGiteaCredentialsBadRequest) String() string
- type GetGiteaCredentialsOK
- func (o *GetGiteaCredentialsOK) Code() int
- func (o *GetGiteaCredentialsOK) Error() string
- func (o *GetGiteaCredentialsOK) GetPayload() garm_params.ForgeCredentials
- func (o *GetGiteaCredentialsOK) IsClientError() bool
- func (o *GetGiteaCredentialsOK) IsCode(code int) bool
- func (o *GetGiteaCredentialsOK) IsRedirect() bool
- func (o *GetGiteaCredentialsOK) IsServerError() bool
- func (o *GetGiteaCredentialsOK) IsSuccess() bool
- func (o *GetGiteaCredentialsOK) String() string
- type GetGiteaCredentialsParams
- func NewGetGiteaCredentialsParams() *GetGiteaCredentialsParams
- func NewGetGiteaCredentialsParamsWithContext(ctx context.Context) *GetGiteaCredentialsParams
- func NewGetGiteaCredentialsParamsWithHTTPClient(client *http.Client) *GetGiteaCredentialsParams
- func NewGetGiteaCredentialsParamsWithTimeout(timeout time.Duration) *GetGiteaCredentialsParams
- func (o *GetGiteaCredentialsParams) SetContext(ctx context.Context)
- func (o *GetGiteaCredentialsParams) SetDefaults()
- func (o *GetGiteaCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *GetGiteaCredentialsParams) SetID(id int64)
- func (o *GetGiteaCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *GetGiteaCredentialsParams) WithContext(ctx context.Context) *GetGiteaCredentialsParams
- func (o *GetGiteaCredentialsParams) WithDefaults() *GetGiteaCredentialsParams
- func (o *GetGiteaCredentialsParams) WithHTTPClient(client *http.Client) *GetGiteaCredentialsParams
- func (o *GetGiteaCredentialsParams) WithID(id int64) *GetGiteaCredentialsParams
- func (o *GetGiteaCredentialsParams) WithTimeout(timeout time.Duration) *GetGiteaCredentialsParams
- func (o *GetGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGiteaCredentialsReader
- 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 ListGiteaCredentialsBadRequest
- func (o *ListGiteaCredentialsBadRequest) Code() int
- func (o *ListGiteaCredentialsBadRequest) Error() string
- func (o *ListGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListGiteaCredentialsBadRequest) IsClientError() bool
- func (o *ListGiteaCredentialsBadRequest) IsCode(code int) bool
- func (o *ListGiteaCredentialsBadRequest) IsRedirect() bool
- func (o *ListGiteaCredentialsBadRequest) IsServerError() bool
- func (o *ListGiteaCredentialsBadRequest) IsSuccess() bool
- func (o *ListGiteaCredentialsBadRequest) String() string
- type ListGiteaCredentialsOK
- func (o *ListGiteaCredentialsOK) Code() int
- func (o *ListGiteaCredentialsOK) Error() string
- func (o *ListGiteaCredentialsOK) GetPayload() garm_params.Credentials
- func (o *ListGiteaCredentialsOK) IsClientError() bool
- func (o *ListGiteaCredentialsOK) IsCode(code int) bool
- func (o *ListGiteaCredentialsOK) IsRedirect() bool
- func (o *ListGiteaCredentialsOK) IsServerError() bool
- func (o *ListGiteaCredentialsOK) IsSuccess() bool
- func (o *ListGiteaCredentialsOK) String() string
- type ListGiteaCredentialsParams
- func NewListGiteaCredentialsParams() *ListGiteaCredentialsParams
- func NewListGiteaCredentialsParamsWithContext(ctx context.Context) *ListGiteaCredentialsParams
- func NewListGiteaCredentialsParamsWithHTTPClient(client *http.Client) *ListGiteaCredentialsParams
- func NewListGiteaCredentialsParamsWithTimeout(timeout time.Duration) *ListGiteaCredentialsParams
- func (o *ListGiteaCredentialsParams) SetContext(ctx context.Context)
- func (o *ListGiteaCredentialsParams) SetDefaults()
- func (o *ListGiteaCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *ListGiteaCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *ListGiteaCredentialsParams) WithContext(ctx context.Context) *ListGiteaCredentialsParams
- func (o *ListGiteaCredentialsParams) WithDefaults() *ListGiteaCredentialsParams
- func (o *ListGiteaCredentialsParams) WithHTTPClient(client *http.Client) *ListGiteaCredentialsParams
- func (o *ListGiteaCredentialsParams) WithTimeout(timeout time.Duration) *ListGiteaCredentialsParams
- func (o *ListGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListGiteaCredentialsReader
- 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.ForgeCredentials
- 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
- type UpdateGiteaCredentialsBadRequest
- func (o *UpdateGiteaCredentialsBadRequest) Code() int
- func (o *UpdateGiteaCredentialsBadRequest) Error() string
- func (o *UpdateGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdateGiteaCredentialsBadRequest) IsClientError() bool
- func (o *UpdateGiteaCredentialsBadRequest) IsCode(code int) bool
- func (o *UpdateGiteaCredentialsBadRequest) IsRedirect() bool
- func (o *UpdateGiteaCredentialsBadRequest) IsServerError() bool
- func (o *UpdateGiteaCredentialsBadRequest) IsSuccess() bool
- func (o *UpdateGiteaCredentialsBadRequest) String() string
- type UpdateGiteaCredentialsOK
- func (o *UpdateGiteaCredentialsOK) Code() int
- func (o *UpdateGiteaCredentialsOK) Error() string
- func (o *UpdateGiteaCredentialsOK) GetPayload() garm_params.ForgeCredentials
- func (o *UpdateGiteaCredentialsOK) IsClientError() bool
- func (o *UpdateGiteaCredentialsOK) IsCode(code int) bool
- func (o *UpdateGiteaCredentialsOK) IsRedirect() bool
- func (o *UpdateGiteaCredentialsOK) IsServerError() bool
- func (o *UpdateGiteaCredentialsOK) IsSuccess() bool
- func (o *UpdateGiteaCredentialsOK) String() string
- type UpdateGiteaCredentialsParams
- func NewUpdateGiteaCredentialsParams() *UpdateGiteaCredentialsParams
- func NewUpdateGiteaCredentialsParamsWithContext(ctx context.Context) *UpdateGiteaCredentialsParams
- func NewUpdateGiteaCredentialsParamsWithHTTPClient(client *http.Client) *UpdateGiteaCredentialsParams
- func NewUpdateGiteaCredentialsParamsWithTimeout(timeout time.Duration) *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) SetBody(body garm_params.UpdateGiteaCredentialsParams)
- func (o *UpdateGiteaCredentialsParams) SetContext(ctx context.Context)
- func (o *UpdateGiteaCredentialsParams) SetDefaults()
- func (o *UpdateGiteaCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *UpdateGiteaCredentialsParams) SetID(id int64)
- func (o *UpdateGiteaCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *UpdateGiteaCredentialsParams) WithBody(body garm_params.UpdateGiteaCredentialsParams) *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) WithContext(ctx context.Context) *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) WithDefaults() *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) WithHTTPClient(client *http.Client) *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) WithID(id int64) *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) WithTimeout(timeout time.Duration) *UpdateGiteaCredentialsParams
- func (o *UpdateGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateGiteaCredentialsReader
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) CreateGiteaCredentials ¶
func (a *Client) CreateGiteaCredentials(params *CreateGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGiteaCredentialsOK, error)
CreateGiteaCredentials creates a gitea 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) DeleteGiteaCredentials ¶
func (a *Client) DeleteGiteaCredentials(params *DeleteGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteGiteaCredentials deletes a gitea 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) GetGiteaCredentials ¶
func (a *Client) GetGiteaCredentials(params *GetGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGiteaCredentialsOK, error)
GetGiteaCredentials gets a gitea credential
func (*Client) ListCredentials ¶
func (a *Client) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error)
ListCredentials lists all credentials
func (*Client) ListGiteaCredentials ¶
func (a *Client) ListGiteaCredentials(params *ListGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGiteaCredentialsOK, error)
ListGiteaCredentials 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
func (*Client) UpdateGiteaCredentials ¶
func (a *Client) UpdateGiteaCredentials(params *UpdateGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGiteaCredentialsOK, error)
UpdateGiteaCredentials updates a gitea 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)
CreateGiteaCredentials(params *CreateGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGiteaCredentialsOK, error)
DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteGiteaCredentials(params *DeleteGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, error)
GetGiteaCredentials(params *GetGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGiteaCredentialsOK, error)
ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error)
ListGiteaCredentials(params *ListGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGiteaCredentialsOK, error)
UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCredentialsOK, error)
UpdateGiteaCredentials(params *UpdateGiteaCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGiteaCredentialsOK, 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.ForgeCredentials
}
CreateCredentialsOK describes a response with status code 200, with default header values.
ForgeCredentials
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.ForgeCredentials
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 CreateGiteaCredentialsBadRequest ¶
type CreateGiteaCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
CreateGiteaCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewCreateGiteaCredentialsBadRequest ¶
func NewCreateGiteaCredentialsBadRequest() *CreateGiteaCredentialsBadRequest
NewCreateGiteaCredentialsBadRequest creates a CreateGiteaCredentialsBadRequest with default headers values
func (*CreateGiteaCredentialsBadRequest) Code ¶
func (o *CreateGiteaCredentialsBadRequest) Code() int
Code gets the status code for the create gitea credentials bad request response
func (*CreateGiteaCredentialsBadRequest) Error ¶
func (o *CreateGiteaCredentialsBadRequest) Error() string
func (*CreateGiteaCredentialsBadRequest) GetPayload ¶
func (o *CreateGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*CreateGiteaCredentialsBadRequest) IsClientError ¶
func (o *CreateGiteaCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this create gitea credentials bad request response has a 4xx status code
func (*CreateGiteaCredentialsBadRequest) IsCode ¶
func (o *CreateGiteaCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this create gitea credentials bad request response a status code equal to that given
func (*CreateGiteaCredentialsBadRequest) IsRedirect ¶
func (o *CreateGiteaCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this create gitea credentials bad request response has a 3xx status code
func (*CreateGiteaCredentialsBadRequest) IsServerError ¶
func (o *CreateGiteaCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this create gitea credentials bad request response has a 5xx status code
func (*CreateGiteaCredentialsBadRequest) IsSuccess ¶
func (o *CreateGiteaCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this create gitea credentials bad request response has a 2xx status code
func (*CreateGiteaCredentialsBadRequest) String ¶
func (o *CreateGiteaCredentialsBadRequest) String() string
type CreateGiteaCredentialsOK ¶
type CreateGiteaCredentialsOK struct {
Payload garm_params.ForgeCredentials
}
CreateGiteaCredentialsOK describes a response with status code 200, with default header values.
ForgeCredentials
func NewCreateGiteaCredentialsOK ¶
func NewCreateGiteaCredentialsOK() *CreateGiteaCredentialsOK
NewCreateGiteaCredentialsOK creates a CreateGiteaCredentialsOK with default headers values
func (*CreateGiteaCredentialsOK) Code ¶
func (o *CreateGiteaCredentialsOK) Code() int
Code gets the status code for the create gitea credentials o k response
func (*CreateGiteaCredentialsOK) Error ¶
func (o *CreateGiteaCredentialsOK) Error() string
func (*CreateGiteaCredentialsOK) GetPayload ¶
func (o *CreateGiteaCredentialsOK) GetPayload() garm_params.ForgeCredentials
func (*CreateGiteaCredentialsOK) IsClientError ¶
func (o *CreateGiteaCredentialsOK) IsClientError() bool
IsClientError returns true when this create gitea credentials o k response has a 4xx status code
func (*CreateGiteaCredentialsOK) IsCode ¶
func (o *CreateGiteaCredentialsOK) IsCode(code int) bool
IsCode returns true when this create gitea credentials o k response a status code equal to that given
func (*CreateGiteaCredentialsOK) IsRedirect ¶
func (o *CreateGiteaCredentialsOK) IsRedirect() bool
IsRedirect returns true when this create gitea credentials o k response has a 3xx status code
func (*CreateGiteaCredentialsOK) IsServerError ¶
func (o *CreateGiteaCredentialsOK) IsServerError() bool
IsServerError returns true when this create gitea credentials o k response has a 5xx status code
func (*CreateGiteaCredentialsOK) IsSuccess ¶
func (o *CreateGiteaCredentialsOK) IsSuccess() bool
IsSuccess returns true when this create gitea credentials o k response has a 2xx status code
func (*CreateGiteaCredentialsOK) String ¶
func (o *CreateGiteaCredentialsOK) String() string
type CreateGiteaCredentialsParams ¶
type CreateGiteaCredentialsParams struct {
/* Body.
Parameters used when creating a Gitea credential.
*/
Body garm_params.CreateGiteaCredentialsParams
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateGiteaCredentialsParams contains all the parameters to send to the API endpoint
for the create gitea credentials operation. Typically these are written to a http.Request.
func NewCreateGiteaCredentialsParams ¶
func NewCreateGiteaCredentialsParams() *CreateGiteaCredentialsParams
NewCreateGiteaCredentialsParams creates a new CreateGiteaCredentialsParams 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 NewCreateGiteaCredentialsParamsWithContext ¶
func NewCreateGiteaCredentialsParamsWithContext(ctx context.Context) *CreateGiteaCredentialsParams
NewCreateGiteaCredentialsParamsWithContext creates a new CreateGiteaCredentialsParams object with the ability to set a context for a request.
func NewCreateGiteaCredentialsParamsWithHTTPClient ¶
func NewCreateGiteaCredentialsParamsWithHTTPClient(client *http.Client) *CreateGiteaCredentialsParams
NewCreateGiteaCredentialsParamsWithHTTPClient creates a new CreateGiteaCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewCreateGiteaCredentialsParamsWithTimeout ¶
func NewCreateGiteaCredentialsParamsWithTimeout(timeout time.Duration) *CreateGiteaCredentialsParams
NewCreateGiteaCredentialsParamsWithTimeout creates a new CreateGiteaCredentialsParams object with the ability to set a timeout on a request.
func (*CreateGiteaCredentialsParams) SetBody ¶
func (o *CreateGiteaCredentialsParams) SetBody(body garm_params.CreateGiteaCredentialsParams)
SetBody adds the body to the create gitea credentials params
func (*CreateGiteaCredentialsParams) SetContext ¶
func (o *CreateGiteaCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the create gitea credentials params
func (*CreateGiteaCredentialsParams) SetDefaults ¶
func (o *CreateGiteaCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the create gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*CreateGiteaCredentialsParams) SetHTTPClient ¶
func (o *CreateGiteaCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create gitea credentials params
func (*CreateGiteaCredentialsParams) SetTimeout ¶
func (o *CreateGiteaCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create gitea credentials params
func (*CreateGiteaCredentialsParams) WithBody ¶
func (o *CreateGiteaCredentialsParams) WithBody(body garm_params.CreateGiteaCredentialsParams) *CreateGiteaCredentialsParams
WithBody adds the body to the create gitea credentials params
func (*CreateGiteaCredentialsParams) WithContext ¶
func (o *CreateGiteaCredentialsParams) WithContext(ctx context.Context) *CreateGiteaCredentialsParams
WithContext adds the context to the create gitea credentials params
func (*CreateGiteaCredentialsParams) WithDefaults ¶
func (o *CreateGiteaCredentialsParams) WithDefaults() *CreateGiteaCredentialsParams
WithDefaults hydrates default values in the create gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*CreateGiteaCredentialsParams) WithHTTPClient ¶
func (o *CreateGiteaCredentialsParams) WithHTTPClient(client *http.Client) *CreateGiteaCredentialsParams
WithHTTPClient adds the HTTPClient to the create gitea credentials params
func (*CreateGiteaCredentialsParams) WithTimeout ¶
func (o *CreateGiteaCredentialsParams) WithTimeout(timeout time.Duration) *CreateGiteaCredentialsParams
WithTimeout adds the timeout to the create gitea credentials params
func (*CreateGiteaCredentialsParams) WriteToRequest ¶
func (o *CreateGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateGiteaCredentialsReader ¶
type CreateGiteaCredentialsReader struct {
// contains filtered or unexported fields
}
CreateGiteaCredentialsReader is a Reader for the CreateGiteaCredentials structure.
func (*CreateGiteaCredentialsReader) ReadResponse ¶
func (o *CreateGiteaCredentialsReader) 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 DeleteGiteaCredentialsDefault ¶
type DeleteGiteaCredentialsDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
DeleteGiteaCredentialsDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeleteGiteaCredentialsDefault ¶
func NewDeleteGiteaCredentialsDefault(code int) *DeleteGiteaCredentialsDefault
NewDeleteGiteaCredentialsDefault creates a DeleteGiteaCredentialsDefault with default headers values
func (*DeleteGiteaCredentialsDefault) Code ¶
func (o *DeleteGiteaCredentialsDefault) Code() int
Code gets the status code for the delete gitea credentials default response
func (*DeleteGiteaCredentialsDefault) Error ¶
func (o *DeleteGiteaCredentialsDefault) Error() string
func (*DeleteGiteaCredentialsDefault) GetPayload ¶
func (o *DeleteGiteaCredentialsDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeleteGiteaCredentialsDefault) IsClientError ¶
func (o *DeleteGiteaCredentialsDefault) IsClientError() bool
IsClientError returns true when this delete gitea credentials default response has a 4xx status code
func (*DeleteGiteaCredentialsDefault) IsCode ¶
func (o *DeleteGiteaCredentialsDefault) IsCode(code int) bool
IsCode returns true when this delete gitea credentials default response a status code equal to that given
func (*DeleteGiteaCredentialsDefault) IsRedirect ¶
func (o *DeleteGiteaCredentialsDefault) IsRedirect() bool
IsRedirect returns true when this delete gitea credentials default response has a 3xx status code
func (*DeleteGiteaCredentialsDefault) IsServerError ¶
func (o *DeleteGiteaCredentialsDefault) IsServerError() bool
IsServerError returns true when this delete gitea credentials default response has a 5xx status code
func (*DeleteGiteaCredentialsDefault) IsSuccess ¶
func (o *DeleteGiteaCredentialsDefault) IsSuccess() bool
IsSuccess returns true when this delete gitea credentials default response has a 2xx status code
func (*DeleteGiteaCredentialsDefault) String ¶
func (o *DeleteGiteaCredentialsDefault) String() string
type DeleteGiteaCredentialsParams ¶
type DeleteGiteaCredentialsParams struct {
/* ID.
ID of the Gitea credential.
*/
ID int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteGiteaCredentialsParams contains all the parameters to send to the API endpoint
for the delete gitea credentials operation. Typically these are written to a http.Request.
func NewDeleteGiteaCredentialsParams ¶
func NewDeleteGiteaCredentialsParams() *DeleteGiteaCredentialsParams
NewDeleteGiteaCredentialsParams creates a new DeleteGiteaCredentialsParams 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 NewDeleteGiteaCredentialsParamsWithContext ¶
func NewDeleteGiteaCredentialsParamsWithContext(ctx context.Context) *DeleteGiteaCredentialsParams
NewDeleteGiteaCredentialsParamsWithContext creates a new DeleteGiteaCredentialsParams object with the ability to set a context for a request.
func NewDeleteGiteaCredentialsParamsWithHTTPClient ¶
func NewDeleteGiteaCredentialsParamsWithHTTPClient(client *http.Client) *DeleteGiteaCredentialsParams
NewDeleteGiteaCredentialsParamsWithHTTPClient creates a new DeleteGiteaCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteGiteaCredentialsParamsWithTimeout ¶
func NewDeleteGiteaCredentialsParamsWithTimeout(timeout time.Duration) *DeleteGiteaCredentialsParams
NewDeleteGiteaCredentialsParamsWithTimeout creates a new DeleteGiteaCredentialsParams object with the ability to set a timeout on a request.
func (*DeleteGiteaCredentialsParams) SetContext ¶
func (o *DeleteGiteaCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) SetDefaults ¶
func (o *DeleteGiteaCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the delete gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteGiteaCredentialsParams) SetHTTPClient ¶
func (o *DeleteGiteaCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) SetID ¶
func (o *DeleteGiteaCredentialsParams) SetID(id int64)
SetID adds the id to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) SetTimeout ¶
func (o *DeleteGiteaCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) WithContext ¶
func (o *DeleteGiteaCredentialsParams) WithContext(ctx context.Context) *DeleteGiteaCredentialsParams
WithContext adds the context to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) WithDefaults ¶
func (o *DeleteGiteaCredentialsParams) WithDefaults() *DeleteGiteaCredentialsParams
WithDefaults hydrates default values in the delete gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteGiteaCredentialsParams) WithHTTPClient ¶
func (o *DeleteGiteaCredentialsParams) WithHTTPClient(client *http.Client) *DeleteGiteaCredentialsParams
WithHTTPClient adds the HTTPClient to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) WithID ¶
func (o *DeleteGiteaCredentialsParams) WithID(id int64) *DeleteGiteaCredentialsParams
WithID adds the id to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) WithTimeout ¶
func (o *DeleteGiteaCredentialsParams) WithTimeout(timeout time.Duration) *DeleteGiteaCredentialsParams
WithTimeout adds the timeout to the delete gitea credentials params
func (*DeleteGiteaCredentialsParams) WriteToRequest ¶
func (o *DeleteGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteGiteaCredentialsReader ¶
type DeleteGiteaCredentialsReader struct {
// contains filtered or unexported fields
}
DeleteGiteaCredentialsReader is a Reader for the DeleteGiteaCredentials structure.
func (*DeleteGiteaCredentialsReader) ReadResponse ¶
func (o *DeleteGiteaCredentialsReader) 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.ForgeCredentials
}
GetCredentialsOK describes a response with status code 200, with default header values.
ForgeCredentials
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.ForgeCredentials
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 GetGiteaCredentialsBadRequest ¶
type GetGiteaCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
GetGiteaCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewGetGiteaCredentialsBadRequest ¶
func NewGetGiteaCredentialsBadRequest() *GetGiteaCredentialsBadRequest
NewGetGiteaCredentialsBadRequest creates a GetGiteaCredentialsBadRequest with default headers values
func (*GetGiteaCredentialsBadRequest) Code ¶
func (o *GetGiteaCredentialsBadRequest) Code() int
Code gets the status code for the get gitea credentials bad request response
func (*GetGiteaCredentialsBadRequest) Error ¶
func (o *GetGiteaCredentialsBadRequest) Error() string
func (*GetGiteaCredentialsBadRequest) GetPayload ¶
func (o *GetGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*GetGiteaCredentialsBadRequest) IsClientError ¶
func (o *GetGiteaCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this get gitea credentials bad request response has a 4xx status code
func (*GetGiteaCredentialsBadRequest) IsCode ¶
func (o *GetGiteaCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this get gitea credentials bad request response a status code equal to that given
func (*GetGiteaCredentialsBadRequest) IsRedirect ¶
func (o *GetGiteaCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this get gitea credentials bad request response has a 3xx status code
func (*GetGiteaCredentialsBadRequest) IsServerError ¶
func (o *GetGiteaCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this get gitea credentials bad request response has a 5xx status code
func (*GetGiteaCredentialsBadRequest) IsSuccess ¶
func (o *GetGiteaCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this get gitea credentials bad request response has a 2xx status code
func (*GetGiteaCredentialsBadRequest) String ¶
func (o *GetGiteaCredentialsBadRequest) String() string
type GetGiteaCredentialsOK ¶
type GetGiteaCredentialsOK struct {
Payload garm_params.ForgeCredentials
}
GetGiteaCredentialsOK describes a response with status code 200, with default header values.
ForgeCredentials
func NewGetGiteaCredentialsOK ¶
func NewGetGiteaCredentialsOK() *GetGiteaCredentialsOK
NewGetGiteaCredentialsOK creates a GetGiteaCredentialsOK with default headers values
func (*GetGiteaCredentialsOK) Code ¶
func (o *GetGiteaCredentialsOK) Code() int
Code gets the status code for the get gitea credentials o k response
func (*GetGiteaCredentialsOK) Error ¶
func (o *GetGiteaCredentialsOK) Error() string
func (*GetGiteaCredentialsOK) GetPayload ¶
func (o *GetGiteaCredentialsOK) GetPayload() garm_params.ForgeCredentials
func (*GetGiteaCredentialsOK) IsClientError ¶
func (o *GetGiteaCredentialsOK) IsClientError() bool
IsClientError returns true when this get gitea credentials o k response has a 4xx status code
func (*GetGiteaCredentialsOK) IsCode ¶
func (o *GetGiteaCredentialsOK) IsCode(code int) bool
IsCode returns true when this get gitea credentials o k response a status code equal to that given
func (*GetGiteaCredentialsOK) IsRedirect ¶
func (o *GetGiteaCredentialsOK) IsRedirect() bool
IsRedirect returns true when this get gitea credentials o k response has a 3xx status code
func (*GetGiteaCredentialsOK) IsServerError ¶
func (o *GetGiteaCredentialsOK) IsServerError() bool
IsServerError returns true when this get gitea credentials o k response has a 5xx status code
func (*GetGiteaCredentialsOK) IsSuccess ¶
func (o *GetGiteaCredentialsOK) IsSuccess() bool
IsSuccess returns true when this get gitea credentials o k response has a 2xx status code
func (*GetGiteaCredentialsOK) String ¶
func (o *GetGiteaCredentialsOK) String() string
type GetGiteaCredentialsParams ¶
type GetGiteaCredentialsParams struct {
/* ID.
ID of the Gitea credential.
*/
ID int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetGiteaCredentialsParams contains all the parameters to send to the API endpoint
for the get gitea credentials operation. Typically these are written to a http.Request.
func NewGetGiteaCredentialsParams ¶
func NewGetGiteaCredentialsParams() *GetGiteaCredentialsParams
NewGetGiteaCredentialsParams creates a new GetGiteaCredentialsParams 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 NewGetGiteaCredentialsParamsWithContext ¶
func NewGetGiteaCredentialsParamsWithContext(ctx context.Context) *GetGiteaCredentialsParams
NewGetGiteaCredentialsParamsWithContext creates a new GetGiteaCredentialsParams object with the ability to set a context for a request.
func NewGetGiteaCredentialsParamsWithHTTPClient ¶
func NewGetGiteaCredentialsParamsWithHTTPClient(client *http.Client) *GetGiteaCredentialsParams
NewGetGiteaCredentialsParamsWithHTTPClient creates a new GetGiteaCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewGetGiteaCredentialsParamsWithTimeout ¶
func NewGetGiteaCredentialsParamsWithTimeout(timeout time.Duration) *GetGiteaCredentialsParams
NewGetGiteaCredentialsParamsWithTimeout creates a new GetGiteaCredentialsParams object with the ability to set a timeout on a request.
func (*GetGiteaCredentialsParams) SetContext ¶
func (o *GetGiteaCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the get gitea credentials params
func (*GetGiteaCredentialsParams) SetDefaults ¶
func (o *GetGiteaCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the get gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*GetGiteaCredentialsParams) SetHTTPClient ¶
func (o *GetGiteaCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get gitea credentials params
func (*GetGiteaCredentialsParams) SetID ¶
func (o *GetGiteaCredentialsParams) SetID(id int64)
SetID adds the id to the get gitea credentials params
func (*GetGiteaCredentialsParams) SetTimeout ¶
func (o *GetGiteaCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get gitea credentials params
func (*GetGiteaCredentialsParams) WithContext ¶
func (o *GetGiteaCredentialsParams) WithContext(ctx context.Context) *GetGiteaCredentialsParams
WithContext adds the context to the get gitea credentials params
func (*GetGiteaCredentialsParams) WithDefaults ¶
func (o *GetGiteaCredentialsParams) WithDefaults() *GetGiteaCredentialsParams
WithDefaults hydrates default values in the get gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*GetGiteaCredentialsParams) WithHTTPClient ¶
func (o *GetGiteaCredentialsParams) WithHTTPClient(client *http.Client) *GetGiteaCredentialsParams
WithHTTPClient adds the HTTPClient to the get gitea credentials params
func (*GetGiteaCredentialsParams) WithID ¶
func (o *GetGiteaCredentialsParams) WithID(id int64) *GetGiteaCredentialsParams
WithID adds the id to the get gitea credentials params
func (*GetGiteaCredentialsParams) WithTimeout ¶
func (o *GetGiteaCredentialsParams) WithTimeout(timeout time.Duration) *GetGiteaCredentialsParams
WithTimeout adds the timeout to the get gitea credentials params
func (*GetGiteaCredentialsParams) WriteToRequest ¶
func (o *GetGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGiteaCredentialsReader ¶
type GetGiteaCredentialsReader struct {
// contains filtered or unexported fields
}
GetGiteaCredentialsReader is a Reader for the GetGiteaCredentials structure.
func (*GetGiteaCredentialsReader) ReadResponse ¶
func (o *GetGiteaCredentialsReader) 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 ListGiteaCredentialsBadRequest ¶
type ListGiteaCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
ListGiteaCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewListGiteaCredentialsBadRequest ¶
func NewListGiteaCredentialsBadRequest() *ListGiteaCredentialsBadRequest
NewListGiteaCredentialsBadRequest creates a ListGiteaCredentialsBadRequest with default headers values
func (*ListGiteaCredentialsBadRequest) Code ¶
func (o *ListGiteaCredentialsBadRequest) Code() int
Code gets the status code for the list gitea credentials bad request response
func (*ListGiteaCredentialsBadRequest) Error ¶
func (o *ListGiteaCredentialsBadRequest) Error() string
func (*ListGiteaCredentialsBadRequest) GetPayload ¶
func (o *ListGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*ListGiteaCredentialsBadRequest) IsClientError ¶
func (o *ListGiteaCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this list gitea credentials bad request response has a 4xx status code
func (*ListGiteaCredentialsBadRequest) IsCode ¶
func (o *ListGiteaCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this list gitea credentials bad request response a status code equal to that given
func (*ListGiteaCredentialsBadRequest) IsRedirect ¶
func (o *ListGiteaCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this list gitea credentials bad request response has a 3xx status code
func (*ListGiteaCredentialsBadRequest) IsServerError ¶
func (o *ListGiteaCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this list gitea credentials bad request response has a 5xx status code
func (*ListGiteaCredentialsBadRequest) IsSuccess ¶
func (o *ListGiteaCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this list gitea credentials bad request response has a 2xx status code
func (*ListGiteaCredentialsBadRequest) String ¶
func (o *ListGiteaCredentialsBadRequest) String() string
type ListGiteaCredentialsOK ¶
type ListGiteaCredentialsOK struct {
Payload garm_params.Credentials
}
ListGiteaCredentialsOK describes a response with status code 200, with default header values.
Credentials
func NewListGiteaCredentialsOK ¶
func NewListGiteaCredentialsOK() *ListGiteaCredentialsOK
NewListGiteaCredentialsOK creates a ListGiteaCredentialsOK with default headers values
func (*ListGiteaCredentialsOK) Code ¶
func (o *ListGiteaCredentialsOK) Code() int
Code gets the status code for the list gitea credentials o k response
func (*ListGiteaCredentialsOK) Error ¶
func (o *ListGiteaCredentialsOK) Error() string
func (*ListGiteaCredentialsOK) GetPayload ¶
func (o *ListGiteaCredentialsOK) GetPayload() garm_params.Credentials
func (*ListGiteaCredentialsOK) IsClientError ¶
func (o *ListGiteaCredentialsOK) IsClientError() bool
IsClientError returns true when this list gitea credentials o k response has a 4xx status code
func (*ListGiteaCredentialsOK) IsCode ¶
func (o *ListGiteaCredentialsOK) IsCode(code int) bool
IsCode returns true when this list gitea credentials o k response a status code equal to that given
func (*ListGiteaCredentialsOK) IsRedirect ¶
func (o *ListGiteaCredentialsOK) IsRedirect() bool
IsRedirect returns true when this list gitea credentials o k response has a 3xx status code
func (*ListGiteaCredentialsOK) IsServerError ¶
func (o *ListGiteaCredentialsOK) IsServerError() bool
IsServerError returns true when this list gitea credentials o k response has a 5xx status code
func (*ListGiteaCredentialsOK) IsSuccess ¶
func (o *ListGiteaCredentialsOK) IsSuccess() bool
IsSuccess returns true when this list gitea credentials o k response has a 2xx status code
func (*ListGiteaCredentialsOK) String ¶
func (o *ListGiteaCredentialsOK) String() string
type ListGiteaCredentialsParams ¶
type ListGiteaCredentialsParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListGiteaCredentialsParams contains all the parameters to send to the API endpoint
for the list gitea credentials operation. Typically these are written to a http.Request.
func NewListGiteaCredentialsParams ¶
func NewListGiteaCredentialsParams() *ListGiteaCredentialsParams
NewListGiteaCredentialsParams creates a new ListGiteaCredentialsParams 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 NewListGiteaCredentialsParamsWithContext ¶
func NewListGiteaCredentialsParamsWithContext(ctx context.Context) *ListGiteaCredentialsParams
NewListGiteaCredentialsParamsWithContext creates a new ListGiteaCredentialsParams object with the ability to set a context for a request.
func NewListGiteaCredentialsParamsWithHTTPClient ¶
func NewListGiteaCredentialsParamsWithHTTPClient(client *http.Client) *ListGiteaCredentialsParams
NewListGiteaCredentialsParamsWithHTTPClient creates a new ListGiteaCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewListGiteaCredentialsParamsWithTimeout ¶
func NewListGiteaCredentialsParamsWithTimeout(timeout time.Duration) *ListGiteaCredentialsParams
NewListGiteaCredentialsParamsWithTimeout creates a new ListGiteaCredentialsParams object with the ability to set a timeout on a request.
func (*ListGiteaCredentialsParams) SetContext ¶
func (o *ListGiteaCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the list gitea credentials params
func (*ListGiteaCredentialsParams) SetDefaults ¶
func (o *ListGiteaCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the list gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*ListGiteaCredentialsParams) SetHTTPClient ¶
func (o *ListGiteaCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list gitea credentials params
func (*ListGiteaCredentialsParams) SetTimeout ¶
func (o *ListGiteaCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list gitea credentials params
func (*ListGiteaCredentialsParams) WithContext ¶
func (o *ListGiteaCredentialsParams) WithContext(ctx context.Context) *ListGiteaCredentialsParams
WithContext adds the context to the list gitea credentials params
func (*ListGiteaCredentialsParams) WithDefaults ¶
func (o *ListGiteaCredentialsParams) WithDefaults() *ListGiteaCredentialsParams
WithDefaults hydrates default values in the list gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*ListGiteaCredentialsParams) WithHTTPClient ¶
func (o *ListGiteaCredentialsParams) WithHTTPClient(client *http.Client) *ListGiteaCredentialsParams
WithHTTPClient adds the HTTPClient to the list gitea credentials params
func (*ListGiteaCredentialsParams) WithTimeout ¶
func (o *ListGiteaCredentialsParams) WithTimeout(timeout time.Duration) *ListGiteaCredentialsParams
WithTimeout adds the timeout to the list gitea credentials params
func (*ListGiteaCredentialsParams) WriteToRequest ¶
func (o *ListGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListGiteaCredentialsReader ¶
type ListGiteaCredentialsReader struct {
// contains filtered or unexported fields
}
ListGiteaCredentialsReader is a Reader for the ListGiteaCredentials structure.
func (*ListGiteaCredentialsReader) ReadResponse ¶
func (o *ListGiteaCredentialsReader) 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.ForgeCredentials
}
UpdateCredentialsOK describes a response with status code 200, with default header values.
ForgeCredentials
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.ForgeCredentials
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.
type UpdateGiteaCredentialsBadRequest ¶
type UpdateGiteaCredentialsBadRequest struct {
Payload apiserver_params.APIErrorResponse
}
UpdateGiteaCredentialsBadRequest describes a response with status code 400, with default header values.
APIErrorResponse
func NewUpdateGiteaCredentialsBadRequest ¶
func NewUpdateGiteaCredentialsBadRequest() *UpdateGiteaCredentialsBadRequest
NewUpdateGiteaCredentialsBadRequest creates a UpdateGiteaCredentialsBadRequest with default headers values
func (*UpdateGiteaCredentialsBadRequest) Code ¶
func (o *UpdateGiteaCredentialsBadRequest) Code() int
Code gets the status code for the update gitea credentials bad request response
func (*UpdateGiteaCredentialsBadRequest) Error ¶
func (o *UpdateGiteaCredentialsBadRequest) Error() string
func (*UpdateGiteaCredentialsBadRequest) GetPayload ¶
func (o *UpdateGiteaCredentialsBadRequest) GetPayload() apiserver_params.APIErrorResponse
func (*UpdateGiteaCredentialsBadRequest) IsClientError ¶
func (o *UpdateGiteaCredentialsBadRequest) IsClientError() bool
IsClientError returns true when this update gitea credentials bad request response has a 4xx status code
func (*UpdateGiteaCredentialsBadRequest) IsCode ¶
func (o *UpdateGiteaCredentialsBadRequest) IsCode(code int) bool
IsCode returns true when this update gitea credentials bad request response a status code equal to that given
func (*UpdateGiteaCredentialsBadRequest) IsRedirect ¶
func (o *UpdateGiteaCredentialsBadRequest) IsRedirect() bool
IsRedirect returns true when this update gitea credentials bad request response has a 3xx status code
func (*UpdateGiteaCredentialsBadRequest) IsServerError ¶
func (o *UpdateGiteaCredentialsBadRequest) IsServerError() bool
IsServerError returns true when this update gitea credentials bad request response has a 5xx status code
func (*UpdateGiteaCredentialsBadRequest) IsSuccess ¶
func (o *UpdateGiteaCredentialsBadRequest) IsSuccess() bool
IsSuccess returns true when this update gitea credentials bad request response has a 2xx status code
func (*UpdateGiteaCredentialsBadRequest) String ¶
func (o *UpdateGiteaCredentialsBadRequest) String() string
type UpdateGiteaCredentialsOK ¶
type UpdateGiteaCredentialsOK struct {
Payload garm_params.ForgeCredentials
}
UpdateGiteaCredentialsOK describes a response with status code 200, with default header values.
ForgeCredentials
func NewUpdateGiteaCredentialsOK ¶
func NewUpdateGiteaCredentialsOK() *UpdateGiteaCredentialsOK
NewUpdateGiteaCredentialsOK creates a UpdateGiteaCredentialsOK with default headers values
func (*UpdateGiteaCredentialsOK) Code ¶
func (o *UpdateGiteaCredentialsOK) Code() int
Code gets the status code for the update gitea credentials o k response
func (*UpdateGiteaCredentialsOK) Error ¶
func (o *UpdateGiteaCredentialsOK) Error() string
func (*UpdateGiteaCredentialsOK) GetPayload ¶
func (o *UpdateGiteaCredentialsOK) GetPayload() garm_params.ForgeCredentials
func (*UpdateGiteaCredentialsOK) IsClientError ¶
func (o *UpdateGiteaCredentialsOK) IsClientError() bool
IsClientError returns true when this update gitea credentials o k response has a 4xx status code
func (*UpdateGiteaCredentialsOK) IsCode ¶
func (o *UpdateGiteaCredentialsOK) IsCode(code int) bool
IsCode returns true when this update gitea credentials o k response a status code equal to that given
func (*UpdateGiteaCredentialsOK) IsRedirect ¶
func (o *UpdateGiteaCredentialsOK) IsRedirect() bool
IsRedirect returns true when this update gitea credentials o k response has a 3xx status code
func (*UpdateGiteaCredentialsOK) IsServerError ¶
func (o *UpdateGiteaCredentialsOK) IsServerError() bool
IsServerError returns true when this update gitea credentials o k response has a 5xx status code
func (*UpdateGiteaCredentialsOK) IsSuccess ¶
func (o *UpdateGiteaCredentialsOK) IsSuccess() bool
IsSuccess returns true when this update gitea credentials o k response has a 2xx status code
func (*UpdateGiteaCredentialsOK) String ¶
func (o *UpdateGiteaCredentialsOK) String() string
type UpdateGiteaCredentialsParams ¶
type UpdateGiteaCredentialsParams struct {
/* Body.
Parameters used when updating a Gitea credential.
*/
Body garm_params.UpdateGiteaCredentialsParams
/* ID.
ID of the Gitea credential.
*/
ID int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateGiteaCredentialsParams contains all the parameters to send to the API endpoint
for the update gitea credentials operation. Typically these are written to a http.Request.
func NewUpdateGiteaCredentialsParams ¶
func NewUpdateGiteaCredentialsParams() *UpdateGiteaCredentialsParams
NewUpdateGiteaCredentialsParams creates a new UpdateGiteaCredentialsParams 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 NewUpdateGiteaCredentialsParamsWithContext ¶
func NewUpdateGiteaCredentialsParamsWithContext(ctx context.Context) *UpdateGiteaCredentialsParams
NewUpdateGiteaCredentialsParamsWithContext creates a new UpdateGiteaCredentialsParams object with the ability to set a context for a request.
func NewUpdateGiteaCredentialsParamsWithHTTPClient ¶
func NewUpdateGiteaCredentialsParamsWithHTTPClient(client *http.Client) *UpdateGiteaCredentialsParams
NewUpdateGiteaCredentialsParamsWithHTTPClient creates a new UpdateGiteaCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateGiteaCredentialsParamsWithTimeout ¶
func NewUpdateGiteaCredentialsParamsWithTimeout(timeout time.Duration) *UpdateGiteaCredentialsParams
NewUpdateGiteaCredentialsParamsWithTimeout creates a new UpdateGiteaCredentialsParams object with the ability to set a timeout on a request.
func (*UpdateGiteaCredentialsParams) SetBody ¶
func (o *UpdateGiteaCredentialsParams) SetBody(body garm_params.UpdateGiteaCredentialsParams)
SetBody adds the body to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) SetContext ¶
func (o *UpdateGiteaCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) SetDefaults ¶
func (o *UpdateGiteaCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the update gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateGiteaCredentialsParams) SetHTTPClient ¶
func (o *UpdateGiteaCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) SetID ¶
func (o *UpdateGiteaCredentialsParams) SetID(id int64)
SetID adds the id to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) SetTimeout ¶
func (o *UpdateGiteaCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) WithBody ¶
func (o *UpdateGiteaCredentialsParams) WithBody(body garm_params.UpdateGiteaCredentialsParams) *UpdateGiteaCredentialsParams
WithBody adds the body to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) WithContext ¶
func (o *UpdateGiteaCredentialsParams) WithContext(ctx context.Context) *UpdateGiteaCredentialsParams
WithContext adds the context to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) WithDefaults ¶
func (o *UpdateGiteaCredentialsParams) WithDefaults() *UpdateGiteaCredentialsParams
WithDefaults hydrates default values in the update gitea credentials params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateGiteaCredentialsParams) WithHTTPClient ¶
func (o *UpdateGiteaCredentialsParams) WithHTTPClient(client *http.Client) *UpdateGiteaCredentialsParams
WithHTTPClient adds the HTTPClient to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) WithID ¶
func (o *UpdateGiteaCredentialsParams) WithID(id int64) *UpdateGiteaCredentialsParams
WithID adds the id to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) WithTimeout ¶
func (o *UpdateGiteaCredentialsParams) WithTimeout(timeout time.Duration) *UpdateGiteaCredentialsParams
WithTimeout adds the timeout to the update gitea credentials params
func (*UpdateGiteaCredentialsParams) WriteToRequest ¶
func (o *UpdateGiteaCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateGiteaCredentialsReader ¶
type UpdateGiteaCredentialsReader struct {
// contains filtered or unexported fields
}
UpdateGiteaCredentialsReader is a Reader for the UpdateGiteaCredentials structure.
func (*UpdateGiteaCredentialsReader) ReadResponse ¶
func (o *UpdateGiteaCredentialsReader) 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
- create_gitea_credentials_parameters.go
- create_gitea_credentials_responses.go
- credentials_client.go
- delete_credentials_parameters.go
- delete_credentials_responses.go
- delete_gitea_credentials_parameters.go
- delete_gitea_credentials_responses.go
- get_credentials_parameters.go
- get_credentials_responses.go
- get_gitea_credentials_parameters.go
- get_gitea_credentials_responses.go
- list_credentials_parameters.go
- list_credentials_responses.go
- list_gitea_credentials_parameters.go
- list_gitea_credentials_responses.go
- update_credentials_parameters.go
- update_credentials_responses.go
- update_gitea_credentials_parameters.go
- update_gitea_credentials_responses.go