credentials

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for credentials API

func (*Client) CreateCredentials added in v0.1.5

func (a *Client) CreateCredentials(params *CreateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCredentialsOK, error)

CreateCredentials creates a git hub credential

func (*Client) DeleteCredentials added in v0.1.5

func (a *Client) DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

DeleteCredentials deletes a git hub credential

func (*Client) GetCredentials added in v0.1.5

func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, error)

GetCredentials gets a git hub credential

func (*Client) ListCredentials

func (a *Client) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error)

ListCredentials lists all credentials

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateCredentials added in v0.1.5

func (a *Client) UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCredentialsOK, error)

UpdateCredentials updates a git hub credential

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateCredentials(params *CreateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCredentialsOK, error)

	DeleteCredentials(params *DeleteCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

	GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, error)

	ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error)

	UpdateCredentials(params *UpdateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCredentialsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new credentials API client.

func NewClientWithBasicAuth added in v0.1.5

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new credentials API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken added in v0.1.5

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new credentials API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateCredentialsBadRequest added in v0.1.5

type CreateCredentialsBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

CreateCredentialsBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewCreateCredentialsBadRequest added in v0.1.5

func NewCreateCredentialsBadRequest() *CreateCredentialsBadRequest

NewCreateCredentialsBadRequest creates a CreateCredentialsBadRequest with default headers values

func (*CreateCredentialsBadRequest) Code added in v0.1.5

func (o *CreateCredentialsBadRequest) Code() int

Code gets the status code for the create credentials bad request response

func (*CreateCredentialsBadRequest) Error added in v0.1.5

func (*CreateCredentialsBadRequest) GetPayload added in v0.1.5

func (*CreateCredentialsBadRequest) IsClientError added in v0.1.5

func (o *CreateCredentialsBadRequest) IsClientError() bool

IsClientError returns true when this create credentials bad request response has a 4xx status code

func (*CreateCredentialsBadRequest) IsCode added in v0.1.5

func (o *CreateCredentialsBadRequest) IsCode(code int) bool

IsCode returns true when this create credentials bad request response a status code equal to that given

func (*CreateCredentialsBadRequest) IsRedirect added in v0.1.5

func (o *CreateCredentialsBadRequest) IsRedirect() bool

IsRedirect returns true when this create credentials bad request response has a 3xx status code

func (*CreateCredentialsBadRequest) IsServerError added in v0.1.5

func (o *CreateCredentialsBadRequest) IsServerError() bool

IsServerError returns true when this create credentials bad request response has a 5xx status code

func (*CreateCredentialsBadRequest) IsSuccess added in v0.1.5

func (o *CreateCredentialsBadRequest) IsSuccess() bool

IsSuccess returns true when this create credentials bad request response has a 2xx status code

func (*CreateCredentialsBadRequest) String added in v0.1.5

func (o *CreateCredentialsBadRequest) String() string

type CreateCredentialsOK added in v0.1.5

type CreateCredentialsOK struct {
	Payload garm_params.GithubCredentials
}

CreateCredentialsOK describes a response with status code 200, with default header values.

GithubCredentials

func NewCreateCredentialsOK added in v0.1.5

func NewCreateCredentialsOK() *CreateCredentialsOK

NewCreateCredentialsOK creates a CreateCredentialsOK with default headers values

func (*CreateCredentialsOK) Code added in v0.1.5

func (o *CreateCredentialsOK) Code() int

Code gets the status code for the create credentials o k response

func (*CreateCredentialsOK) Error added in v0.1.5

func (o *CreateCredentialsOK) Error() string

func (*CreateCredentialsOK) GetPayload added in v0.1.5

func (*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

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

WithBody adds the body to the create credentials params

func (*CreateCredentialsParams) WithContext added in v0.1.5

WithContext adds the context to the create credentials params

func (*CreateCredentialsParams) WithDefaults added in v0.1.5

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

WithTimeout adds the timeout to the create credentials params

func (*CreateCredentialsParams) WriteToRequest added in v0.1.5

WriteToRequest writes these params to a swagger request

type CreateCredentialsReader added in v0.1.5

type CreateCredentialsReader struct {
	// contains filtered or unexported fields
}

CreateCredentialsReader is a Reader for the CreateCredentials structure.

func (*CreateCredentialsReader) ReadResponse added in v0.1.5

func (o *CreateCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteCredentialsDefault added in v0.1.5

type DeleteCredentialsDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

DeleteCredentialsDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewDeleteCredentialsDefault added in v0.1.5

func NewDeleteCredentialsDefault(code int) *DeleteCredentialsDefault

NewDeleteCredentialsDefault creates a DeleteCredentialsDefault with default headers values

func (*DeleteCredentialsDefault) Code added in v0.1.5

func (o *DeleteCredentialsDefault) Code() int

Code gets the status code for the delete credentials default response

func (*DeleteCredentialsDefault) Error added in v0.1.5

func (o *DeleteCredentialsDefault) Error() string

func (*DeleteCredentialsDefault) GetPayload added in v0.1.5

func (*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

WithContext adds the context to the delete credentials params

func (*DeleteCredentialsParams) WithDefaults added in v0.1.5

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

WithID adds the id to the delete credentials params

func (*DeleteCredentialsParams) WithTimeout added in v0.1.5

WithTimeout adds the timeout to the delete credentials params

func (*DeleteCredentialsParams) WriteToRequest added in v0.1.5

WriteToRequest writes these params to a swagger request

type DeleteCredentialsReader added in v0.1.5

type DeleteCredentialsReader struct {
	// contains filtered or unexported fields
}

DeleteCredentialsReader is a Reader for the DeleteCredentials structure.

func (*DeleteCredentialsReader) ReadResponse added in v0.1.5

func (o *DeleteCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCredentialsBadRequest added in v0.1.5

type GetCredentialsBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

GetCredentialsBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewGetCredentialsBadRequest added in v0.1.5

func NewGetCredentialsBadRequest() *GetCredentialsBadRequest

NewGetCredentialsBadRequest creates a GetCredentialsBadRequest with default headers values

func (*GetCredentialsBadRequest) Code added in v0.1.5

func (o *GetCredentialsBadRequest) Code() int

Code gets the status code for the get credentials bad request response

func (*GetCredentialsBadRequest) Error added in v0.1.5

func (o *GetCredentialsBadRequest) Error() string

func (*GetCredentialsBadRequest) GetPayload added in v0.1.5

func (*GetCredentialsBadRequest) IsClientError added in v0.1.5

func (o *GetCredentialsBadRequest) IsClientError() bool

IsClientError returns true when this get credentials bad request response has a 4xx status code

func (*GetCredentialsBadRequest) IsCode added in v0.1.5

func (o *GetCredentialsBadRequest) IsCode(code int) bool

IsCode returns true when this get credentials bad request response a status code equal to that given

func (*GetCredentialsBadRequest) IsRedirect added in v0.1.5

func (o *GetCredentialsBadRequest) IsRedirect() bool

IsRedirect returns true when this get credentials bad request response has a 3xx status code

func (*GetCredentialsBadRequest) IsServerError added in v0.1.5

func (o *GetCredentialsBadRequest) IsServerError() bool

IsServerError returns true when this get credentials bad request response has a 5xx status code

func (*GetCredentialsBadRequest) IsSuccess added in v0.1.5

func (o *GetCredentialsBadRequest) IsSuccess() bool

IsSuccess returns true when this get credentials bad request response has a 2xx status code

func (*GetCredentialsBadRequest) String added in v0.1.5

func (o *GetCredentialsBadRequest) String() string

type GetCredentialsOK added in v0.1.5

type GetCredentialsOK struct {
	Payload garm_params.GithubCredentials
}

GetCredentialsOK describes a response with status code 200, with default header values.

GithubCredentials

func NewGetCredentialsOK added in v0.1.5

func NewGetCredentialsOK() *GetCredentialsOK

NewGetCredentialsOK creates a GetCredentialsOK with default headers values

func (*GetCredentialsOK) Code added in v0.1.5

func (o *GetCredentialsOK) Code() int

Code gets the status code for the get credentials o k response

func (*GetCredentialsOK) Error added in v0.1.5

func (o *GetCredentialsOK) Error() string

func (*GetCredentialsOK) GetPayload added in v0.1.5

func (*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

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

WithID adds the id to the get credentials params

func (*GetCredentialsParams) WithTimeout added in v0.1.5

func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams

WithTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) WriteToRequest added in v0.1.5

func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCredentialsReader added in v0.1.5

type GetCredentialsReader struct {
	// contains filtered or unexported fields
}

GetCredentialsReader is a Reader for the GetCredentials structure.

func (*GetCredentialsReader) ReadResponse added in v0.1.5

func (o *GetCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListCredentialsBadRequest

type ListCredentialsBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

ListCredentialsBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewListCredentialsBadRequest

func NewListCredentialsBadRequest() *ListCredentialsBadRequest

NewListCredentialsBadRequest creates a ListCredentialsBadRequest with default headers values

func (*ListCredentialsBadRequest) Code

func (o *ListCredentialsBadRequest) Code() int

Code gets the status code for the list credentials bad request response

func (*ListCredentialsBadRequest) Error

func (o *ListCredentialsBadRequest) Error() string

func (*ListCredentialsBadRequest) GetPayload

func (*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

WithContext adds the context to the list credentials params

func (*ListCredentialsParams) WithDefaults

func (o *ListCredentialsParams) WithDefaults() *ListCredentialsParams

WithDefaults hydrates default values in the list credentials params (not the query body).

All values with no default are reset to their zero value.

func (*ListCredentialsParams) WithHTTPClient

func (o *ListCredentialsParams) WithHTTPClient(client *http.Client) *ListCredentialsParams

WithHTTPClient adds the HTTPClient to the list credentials params

func (*ListCredentialsParams) WithTimeout

func (o *ListCredentialsParams) WithTimeout(timeout time.Duration) *ListCredentialsParams

WithTimeout adds the timeout to the list credentials params

func (*ListCredentialsParams) WriteToRequest

func (o *ListCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListCredentialsReader

type ListCredentialsReader struct {
	// contains filtered or unexported fields
}

ListCredentialsReader is a Reader for the ListCredentials structure.

func (*ListCredentialsReader) ReadResponse

func (o *ListCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCredentialsBadRequest added in v0.1.5

type UpdateCredentialsBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

UpdateCredentialsBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewUpdateCredentialsBadRequest added in v0.1.5

func NewUpdateCredentialsBadRequest() *UpdateCredentialsBadRequest

NewUpdateCredentialsBadRequest creates a UpdateCredentialsBadRequest with default headers values

func (*UpdateCredentialsBadRequest) Code added in v0.1.5

func (o *UpdateCredentialsBadRequest) Code() int

Code gets the status code for the update credentials bad request response

func (*UpdateCredentialsBadRequest) Error added in v0.1.5

func (*UpdateCredentialsBadRequest) GetPayload added in v0.1.5

func (*UpdateCredentialsBadRequest) IsClientError added in v0.1.5

func (o *UpdateCredentialsBadRequest) IsClientError() bool

IsClientError returns true when this update credentials bad request response has a 4xx status code

func (*UpdateCredentialsBadRequest) IsCode added in v0.1.5

func (o *UpdateCredentialsBadRequest) IsCode(code int) bool

IsCode returns true when this update credentials bad request response a status code equal to that given

func (*UpdateCredentialsBadRequest) IsRedirect added in v0.1.5

func (o *UpdateCredentialsBadRequest) IsRedirect() bool

IsRedirect returns true when this update credentials bad request response has a 3xx status code

func (*UpdateCredentialsBadRequest) IsServerError added in v0.1.5

func (o *UpdateCredentialsBadRequest) IsServerError() bool

IsServerError returns true when this update credentials bad request response has a 5xx status code

func (*UpdateCredentialsBadRequest) IsSuccess added in v0.1.5

func (o *UpdateCredentialsBadRequest) IsSuccess() bool

IsSuccess returns true when this update credentials bad request response has a 2xx status code

func (*UpdateCredentialsBadRequest) String added in v0.1.5

func (o *UpdateCredentialsBadRequest) String() string

type UpdateCredentialsOK added in v0.1.5

type UpdateCredentialsOK struct {
	Payload garm_params.GithubCredentials
}

UpdateCredentialsOK describes a response with status code 200, with default header values.

GithubCredentials

func NewUpdateCredentialsOK added in v0.1.5

func NewUpdateCredentialsOK() *UpdateCredentialsOK

NewUpdateCredentialsOK creates a UpdateCredentialsOK with default headers values

func (*UpdateCredentialsOK) Code added in v0.1.5

func (o *UpdateCredentialsOK) Code() int

Code gets the status code for the update credentials o k response

func (*UpdateCredentialsOK) Error added in v0.1.5

func (o *UpdateCredentialsOK) Error() string

func (*UpdateCredentialsOK) GetPayload added in v0.1.5

func (*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

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

WithBody adds the body to the update credentials params

func (*UpdateCredentialsParams) WithContext added in v0.1.5

WithContext adds the context to the update credentials params

func (*UpdateCredentialsParams) WithDefaults added in v0.1.5

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

WithID adds the id to the update credentials params

func (*UpdateCredentialsParams) WithTimeout added in v0.1.5

WithTimeout adds the timeout to the update credentials params

func (*UpdateCredentialsParams) WriteToRequest added in v0.1.5

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL