github

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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 github API

func (*Client) GetGithubCallback

func (a *Client) GetGithubCallback(params *GetGithubCallbackParams, opts ...ClientOption) error

GetGithubCallback githubs callback logs in a user with github

GithubCallback logs in a user with Github

func (*Client) GetGithubLogin

func (a *Client) GetGithubLogin(params *GetGithubLoginParams, opts ...ClientOption) error

GetGithubLogin githubs login logs in a user with github

GithubLogin logs in a user with Github

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetGithubCallback(params *GetGithubCallbackParams, opts ...ClientOption) error

	GetGithubLogin(params *GetGithubLoginParams, opts ...ClientOption) 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 github API client.

type GetGithubCallbackForbidden

type GetGithubCallbackForbidden struct {
	Payload string
}

GetGithubCallbackForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetGithubCallbackForbidden

func NewGetGithubCallbackForbidden() *GetGithubCallbackForbidden

NewGetGithubCallbackForbidden creates a GetGithubCallbackForbidden with default headers values

func (*GetGithubCallbackForbidden) Code

func (o *GetGithubCallbackForbidden) Code() int

Code gets the status code for the get github callback forbidden response

func (*GetGithubCallbackForbidden) Error

func (*GetGithubCallbackForbidden) GetPayload

func (o *GetGithubCallbackForbidden) GetPayload() string

func (*GetGithubCallbackForbidden) IsClientError

func (o *GetGithubCallbackForbidden) IsClientError() bool

IsClientError returns true when this get github callback forbidden response has a 4xx status code

func (*GetGithubCallbackForbidden) IsCode

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

IsCode returns true when this get github callback forbidden response a status code equal to that given

func (*GetGithubCallbackForbidden) IsRedirect

func (o *GetGithubCallbackForbidden) IsRedirect() bool

IsRedirect returns true when this get github callback forbidden response has a 3xx status code

func (*GetGithubCallbackForbidden) IsServerError

func (o *GetGithubCallbackForbidden) IsServerError() bool

IsServerError returns true when this get github callback forbidden response has a 5xx status code

func (*GetGithubCallbackForbidden) IsSuccess

func (o *GetGithubCallbackForbidden) IsSuccess() bool

IsSuccess returns true when this get github callback forbidden response has a 2xx status code

func (*GetGithubCallbackForbidden) String

func (o *GetGithubCallbackForbidden) String() string

type GetGithubCallbackInternalServerError

type GetGithubCallbackInternalServerError struct {
	Payload string
}

GetGithubCallbackInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetGithubCallbackInternalServerError

func NewGetGithubCallbackInternalServerError() *GetGithubCallbackInternalServerError

NewGetGithubCallbackInternalServerError creates a GetGithubCallbackInternalServerError with default headers values

func (*GetGithubCallbackInternalServerError) Code

Code gets the status code for the get github callback internal server error response

func (*GetGithubCallbackInternalServerError) Error

func (*GetGithubCallbackInternalServerError) GetPayload

func (*GetGithubCallbackInternalServerError) IsClientError

func (o *GetGithubCallbackInternalServerError) IsClientError() bool

IsClientError returns true when this get github callback internal server error response has a 4xx status code

func (*GetGithubCallbackInternalServerError) IsCode

IsCode returns true when this get github callback internal server error response a status code equal to that given

func (*GetGithubCallbackInternalServerError) IsRedirect

IsRedirect returns true when this get github callback internal server error response has a 3xx status code

func (*GetGithubCallbackInternalServerError) IsServerError

func (o *GetGithubCallbackInternalServerError) IsServerError() bool

IsServerError returns true when this get github callback internal server error response has a 5xx status code

func (*GetGithubCallbackInternalServerError) IsSuccess

IsSuccess returns true when this get github callback internal server error response has a 2xx status code

func (*GetGithubCallbackInternalServerError) String

type GetGithubCallbackNotFound

type GetGithubCallbackNotFound struct {
	Payload string
}

GetGithubCallbackNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetGithubCallbackNotFound

func NewGetGithubCallbackNotFound() *GetGithubCallbackNotFound

NewGetGithubCallbackNotFound creates a GetGithubCallbackNotFound with default headers values

func (*GetGithubCallbackNotFound) Code

func (o *GetGithubCallbackNotFound) Code() int

Code gets the status code for the get github callback not found response

func (*GetGithubCallbackNotFound) Error

func (o *GetGithubCallbackNotFound) Error() string

func (*GetGithubCallbackNotFound) GetPayload

func (o *GetGithubCallbackNotFound) GetPayload() string

func (*GetGithubCallbackNotFound) IsClientError

func (o *GetGithubCallbackNotFound) IsClientError() bool

IsClientError returns true when this get github callback not found response has a 4xx status code

func (*GetGithubCallbackNotFound) IsCode

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

IsCode returns true when this get github callback not found response a status code equal to that given

func (*GetGithubCallbackNotFound) IsRedirect

func (o *GetGithubCallbackNotFound) IsRedirect() bool

IsRedirect returns true when this get github callback not found response has a 3xx status code

func (*GetGithubCallbackNotFound) IsServerError

func (o *GetGithubCallbackNotFound) IsServerError() bool

IsServerError returns true when this get github callback not found response has a 5xx status code

func (*GetGithubCallbackNotFound) IsSuccess

func (o *GetGithubCallbackNotFound) IsSuccess() bool

IsSuccess returns true when this get github callback not found response has a 2xx status code

func (*GetGithubCallbackNotFound) String

func (o *GetGithubCallbackNotFound) String() string

type GetGithubCallbackParams

type GetGithubCallbackParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGithubCallbackParams contains all the parameters to send to the API endpoint

for the get github callback operation.

Typically these are written to a http.Request.

func NewGetGithubCallbackParams

func NewGetGithubCallbackParams() *GetGithubCallbackParams

NewGetGithubCallbackParams creates a new GetGithubCallbackParams 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 NewGetGithubCallbackParamsWithContext

func NewGetGithubCallbackParamsWithContext(ctx context.Context) *GetGithubCallbackParams

NewGetGithubCallbackParamsWithContext creates a new GetGithubCallbackParams object with the ability to set a context for a request.

func NewGetGithubCallbackParamsWithHTTPClient

func NewGetGithubCallbackParamsWithHTTPClient(client *http.Client) *GetGithubCallbackParams

NewGetGithubCallbackParamsWithHTTPClient creates a new GetGithubCallbackParams object with the ability to set a custom HTTPClient for a request.

func NewGetGithubCallbackParamsWithTimeout

func NewGetGithubCallbackParamsWithTimeout(timeout time.Duration) *GetGithubCallbackParams

NewGetGithubCallbackParamsWithTimeout creates a new GetGithubCallbackParams object with the ability to set a timeout on a request.

func (*GetGithubCallbackParams) SetContext

func (o *GetGithubCallbackParams) SetContext(ctx context.Context)

SetContext adds the context to the get github callback params

func (*GetGithubCallbackParams) SetDefaults

func (o *GetGithubCallbackParams) SetDefaults()

SetDefaults hydrates default values in the get github callback params (not the query body).

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

func (*GetGithubCallbackParams) SetHTTPClient

func (o *GetGithubCallbackParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get github callback params

func (*GetGithubCallbackParams) SetTimeout

func (o *GetGithubCallbackParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get github callback params

func (*GetGithubCallbackParams) WithContext

WithContext adds the context to the get github callback params

func (*GetGithubCallbackParams) WithDefaults

WithDefaults hydrates default values in the get github callback params (not the query body).

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

func (*GetGithubCallbackParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get github callback params

func (*GetGithubCallbackParams) WithTimeout

WithTimeout adds the timeout to the get github callback params

func (*GetGithubCallbackParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGithubCallbackReader

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

GetGithubCallbackReader is a Reader for the GetGithubCallback structure.

func (*GetGithubCallbackReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGithubCallbackTemporaryRedirect

type GetGithubCallbackTemporaryRedirect struct {

	/* Redirects to Next URL
	 */
	Location string
}

GetGithubCallbackTemporaryRedirect describes a response with status code 307, with default header values.

Temporary Redirect

func NewGetGithubCallbackTemporaryRedirect

func NewGetGithubCallbackTemporaryRedirect() *GetGithubCallbackTemporaryRedirect

NewGetGithubCallbackTemporaryRedirect creates a GetGithubCallbackTemporaryRedirect with default headers values

func (*GetGithubCallbackTemporaryRedirect) Code

Code gets the status code for the get github callback temporary redirect response

func (*GetGithubCallbackTemporaryRedirect) Error

func (*GetGithubCallbackTemporaryRedirect) IsClientError

func (o *GetGithubCallbackTemporaryRedirect) IsClientError() bool

IsClientError returns true when this get github callback temporary redirect response has a 4xx status code

func (*GetGithubCallbackTemporaryRedirect) IsCode

IsCode returns true when this get github callback temporary redirect response a status code equal to that given

func (*GetGithubCallbackTemporaryRedirect) IsRedirect

func (o *GetGithubCallbackTemporaryRedirect) IsRedirect() bool

IsRedirect returns true when this get github callback temporary redirect response has a 3xx status code

func (*GetGithubCallbackTemporaryRedirect) IsServerError

func (o *GetGithubCallbackTemporaryRedirect) IsServerError() bool

IsServerError returns true when this get github callback temporary redirect response has a 5xx status code

func (*GetGithubCallbackTemporaryRedirect) IsSuccess

IsSuccess returns true when this get github callback temporary redirect response has a 2xx status code

func (*GetGithubCallbackTemporaryRedirect) String

type GetGithubCallbackUnauthorized

type GetGithubCallbackUnauthorized struct {
	Payload string
}

GetGithubCallbackUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetGithubCallbackUnauthorized

func NewGetGithubCallbackUnauthorized() *GetGithubCallbackUnauthorized

NewGetGithubCallbackUnauthorized creates a GetGithubCallbackUnauthorized with default headers values

func (*GetGithubCallbackUnauthorized) Code

Code gets the status code for the get github callback unauthorized response

func (*GetGithubCallbackUnauthorized) Error

func (*GetGithubCallbackUnauthorized) GetPayload

func (o *GetGithubCallbackUnauthorized) GetPayload() string

func (*GetGithubCallbackUnauthorized) IsClientError

func (o *GetGithubCallbackUnauthorized) IsClientError() bool

IsClientError returns true when this get github callback unauthorized response has a 4xx status code

func (*GetGithubCallbackUnauthorized) IsCode

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

IsCode returns true when this get github callback unauthorized response a status code equal to that given

func (*GetGithubCallbackUnauthorized) IsRedirect

func (o *GetGithubCallbackUnauthorized) IsRedirect() bool

IsRedirect returns true when this get github callback unauthorized response has a 3xx status code

func (*GetGithubCallbackUnauthorized) IsServerError

func (o *GetGithubCallbackUnauthorized) IsServerError() bool

IsServerError returns true when this get github callback unauthorized response has a 5xx status code

func (*GetGithubCallbackUnauthorized) IsSuccess

func (o *GetGithubCallbackUnauthorized) IsSuccess() bool

IsSuccess returns true when this get github callback unauthorized response has a 2xx status code

func (*GetGithubCallbackUnauthorized) String

type GetGithubLoginInternalServerError

type GetGithubLoginInternalServerError struct {
	Payload string
}

GetGithubLoginInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetGithubLoginInternalServerError

func NewGetGithubLoginInternalServerError() *GetGithubLoginInternalServerError

NewGetGithubLoginInternalServerError creates a GetGithubLoginInternalServerError with default headers values

func (*GetGithubLoginInternalServerError) Code

Code gets the status code for the get github login internal server error response

func (*GetGithubLoginInternalServerError) Error

func (*GetGithubLoginInternalServerError) GetPayload

func (o *GetGithubLoginInternalServerError) GetPayload() string

func (*GetGithubLoginInternalServerError) IsClientError

func (o *GetGithubLoginInternalServerError) IsClientError() bool

IsClientError returns true when this get github login internal server error response has a 4xx status code

func (*GetGithubLoginInternalServerError) IsCode

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

IsCode returns true when this get github login internal server error response a status code equal to that given

func (*GetGithubLoginInternalServerError) IsRedirect

func (o *GetGithubLoginInternalServerError) IsRedirect() bool

IsRedirect returns true when this get github login internal server error response has a 3xx status code

func (*GetGithubLoginInternalServerError) IsServerError

func (o *GetGithubLoginInternalServerError) IsServerError() bool

IsServerError returns true when this get github login internal server error response has a 5xx status code

func (*GetGithubLoginInternalServerError) IsSuccess

func (o *GetGithubLoginInternalServerError) IsSuccess() bool

IsSuccess returns true when this get github login internal server error response has a 2xx status code

func (*GetGithubLoginInternalServerError) String

type GetGithubLoginParams

type GetGithubLoginParams struct {

	/* Identifier.

	   Device Flow Identifier
	*/
	Identifier *string

	/* Next.

	   Next Redirect URL
	*/
	Next *string

	/* Organization.

	   Organization
	*/
	Organization *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGithubLoginParams contains all the parameters to send to the API endpoint

for the get github login operation.

Typically these are written to a http.Request.

func NewGetGithubLoginParams

func NewGetGithubLoginParams() *GetGithubLoginParams

NewGetGithubLoginParams creates a new GetGithubLoginParams 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 NewGetGithubLoginParamsWithContext

func NewGetGithubLoginParamsWithContext(ctx context.Context) *GetGithubLoginParams

NewGetGithubLoginParamsWithContext creates a new GetGithubLoginParams object with the ability to set a context for a request.

func NewGetGithubLoginParamsWithHTTPClient

func NewGetGithubLoginParamsWithHTTPClient(client *http.Client) *GetGithubLoginParams

NewGetGithubLoginParamsWithHTTPClient creates a new GetGithubLoginParams object with the ability to set a custom HTTPClient for a request.

func NewGetGithubLoginParamsWithTimeout

func NewGetGithubLoginParamsWithTimeout(timeout time.Duration) *GetGithubLoginParams

NewGetGithubLoginParamsWithTimeout creates a new GetGithubLoginParams object with the ability to set a timeout on a request.

func (*GetGithubLoginParams) SetContext

func (o *GetGithubLoginParams) SetContext(ctx context.Context)

SetContext adds the context to the get github login params

func (*GetGithubLoginParams) SetDefaults

func (o *GetGithubLoginParams) SetDefaults()

SetDefaults hydrates default values in the get github login params (not the query body).

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

func (*GetGithubLoginParams) SetHTTPClient

func (o *GetGithubLoginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get github login params

func (*GetGithubLoginParams) SetIdentifier

func (o *GetGithubLoginParams) SetIdentifier(identifier *string)

SetIdentifier adds the identifier to the get github login params

func (*GetGithubLoginParams) SetNext

func (o *GetGithubLoginParams) SetNext(next *string)

SetNext adds the next to the get github login params

func (*GetGithubLoginParams) SetOrganization

func (o *GetGithubLoginParams) SetOrganization(organization *string)

SetOrganization adds the organization to the get github login params

func (*GetGithubLoginParams) SetTimeout

func (o *GetGithubLoginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get github login params

func (*GetGithubLoginParams) WithContext

WithContext adds the context to the get github login params

func (*GetGithubLoginParams) WithDefaults

func (o *GetGithubLoginParams) WithDefaults() *GetGithubLoginParams

WithDefaults hydrates default values in the get github login params (not the query body).

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

func (*GetGithubLoginParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get github login params

func (*GetGithubLoginParams) WithIdentifier

func (o *GetGithubLoginParams) WithIdentifier(identifier *string) *GetGithubLoginParams

WithIdentifier adds the identifier to the get github login params

func (*GetGithubLoginParams) WithNext

func (o *GetGithubLoginParams) WithNext(next *string) *GetGithubLoginParams

WithNext adds the next to the get github login params

func (*GetGithubLoginParams) WithOrganization

func (o *GetGithubLoginParams) WithOrganization(organization *string) *GetGithubLoginParams

WithOrganization adds the organization to the get github login params

func (*GetGithubLoginParams) WithTimeout

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

WithTimeout adds the timeout to the get github login params

func (*GetGithubLoginParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGithubLoginReader

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

GetGithubLoginReader is a Reader for the GetGithubLogin structure.

func (*GetGithubLoginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGithubLoginTemporaryRedirect

type GetGithubLoginTemporaryRedirect struct {

	/* Redirects to Github
	 */
	Location string
}

GetGithubLoginTemporaryRedirect describes a response with status code 307, with default header values.

Temporary Redirect

func NewGetGithubLoginTemporaryRedirect

func NewGetGithubLoginTemporaryRedirect() *GetGithubLoginTemporaryRedirect

NewGetGithubLoginTemporaryRedirect creates a GetGithubLoginTemporaryRedirect with default headers values

func (*GetGithubLoginTemporaryRedirect) Code

Code gets the status code for the get github login temporary redirect response

func (*GetGithubLoginTemporaryRedirect) Error

func (*GetGithubLoginTemporaryRedirect) IsClientError

func (o *GetGithubLoginTemporaryRedirect) IsClientError() bool

IsClientError returns true when this get github login temporary redirect response has a 4xx status code

func (*GetGithubLoginTemporaryRedirect) IsCode

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

IsCode returns true when this get github login temporary redirect response a status code equal to that given

func (*GetGithubLoginTemporaryRedirect) IsRedirect

func (o *GetGithubLoginTemporaryRedirect) IsRedirect() bool

IsRedirect returns true when this get github login temporary redirect response has a 3xx status code

func (*GetGithubLoginTemporaryRedirect) IsServerError

func (o *GetGithubLoginTemporaryRedirect) IsServerError() bool

IsServerError returns true when this get github login temporary redirect response has a 5xx status code

func (*GetGithubLoginTemporaryRedirect) IsSuccess

func (o *GetGithubLoginTemporaryRedirect) IsSuccess() bool

IsSuccess returns true when this get github login temporary redirect response has a 2xx status code

func (*GetGithubLoginTemporaryRedirect) String

type GetGithubLoginUnauthorized

type GetGithubLoginUnauthorized struct {
	Payload string
}

GetGithubLoginUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetGithubLoginUnauthorized

func NewGetGithubLoginUnauthorized() *GetGithubLoginUnauthorized

NewGetGithubLoginUnauthorized creates a GetGithubLoginUnauthorized with default headers values

func (*GetGithubLoginUnauthorized) Code

func (o *GetGithubLoginUnauthorized) Code() int

Code gets the status code for the get github login unauthorized response

func (*GetGithubLoginUnauthorized) Error

func (*GetGithubLoginUnauthorized) GetPayload

func (o *GetGithubLoginUnauthorized) GetPayload() string

func (*GetGithubLoginUnauthorized) IsClientError

func (o *GetGithubLoginUnauthorized) IsClientError() bool

IsClientError returns true when this get github login unauthorized response has a 4xx status code

func (*GetGithubLoginUnauthorized) IsCode

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

IsCode returns true when this get github login unauthorized response a status code equal to that given

func (*GetGithubLoginUnauthorized) IsRedirect

func (o *GetGithubLoginUnauthorized) IsRedirect() bool

IsRedirect returns true when this get github login unauthorized response has a 3xx status code

func (*GetGithubLoginUnauthorized) IsServerError

func (o *GetGithubLoginUnauthorized) IsServerError() bool

IsServerError returns true when this get github login unauthorized response has a 5xx status code

func (*GetGithubLoginUnauthorized) IsSuccess

func (o *GetGithubLoginUnauthorized) IsSuccess() bool

IsSuccess returns true when this get github login unauthorized response has a 2xx status code

func (*GetGithubLoginUnauthorized) String

func (o *GetGithubLoginUnauthorized) String() string

Jump to

Keyboard shortcuts

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