github

package
v0.0.0-...-b6fc690 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 10 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) GetLoginsAndRepos

func (a *Client) GetLoginsAndRepos(params *GetLoginsAndReposParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoginsAndReposOK, error)

GetLoginsAndRepos retrieves available repos from github for authenticated user m u s t have git authentication enabled in the platform

func (*Client) GetRepoRequirements

func (a *Client) GetRepoRequirements(params *GetRepoRequirementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRepoRequirementsOK, error)

GetRepoRequirements gets list of supported languages and their required packages parsed from the repo

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 {
	GetLoginsAndRepos(params *GetLoginsAndReposParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLoginsAndReposOK, error)

	GetRepoRequirements(params *GetRepoRequirementsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRepoRequirementsOK, 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 GetLoginsAndReposBadRequest

type GetLoginsAndReposBadRequest struct {
	Payload *mono_models.Message
}
GetLoginsAndReposBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetLoginsAndReposBadRequest

func NewGetLoginsAndReposBadRequest() *GetLoginsAndReposBadRequest

NewGetLoginsAndReposBadRequest creates a GetLoginsAndReposBadRequest with default headers values

func (*GetLoginsAndReposBadRequest) Error

func (*GetLoginsAndReposBadRequest) GetPayload

type GetLoginsAndReposForbidden

type GetLoginsAndReposForbidden struct {
	Payload *mono_models.Message
}
GetLoginsAndReposForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetLoginsAndReposForbidden

func NewGetLoginsAndReposForbidden() *GetLoginsAndReposForbidden

NewGetLoginsAndReposForbidden creates a GetLoginsAndReposForbidden with default headers values

func (*GetLoginsAndReposForbidden) Error

func (*GetLoginsAndReposForbidden) GetPayload

type GetLoginsAndReposInternalServerError

type GetLoginsAndReposInternalServerError struct {
	Payload *mono_models.Message
}
GetLoginsAndReposInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewGetLoginsAndReposInternalServerError

func NewGetLoginsAndReposInternalServerError() *GetLoginsAndReposInternalServerError

NewGetLoginsAndReposInternalServerError creates a GetLoginsAndReposInternalServerError with default headers values

func (*GetLoginsAndReposInternalServerError) Error

func (*GetLoginsAndReposInternalServerError) GetPayload

type GetLoginsAndReposOK

type GetLoginsAndReposOK struct {
	Payload []*mono_models.GithubLogin
}
GetLoginsAndReposOK describes a response with status code 200, with default header values.

Success

func NewGetLoginsAndReposOK

func NewGetLoginsAndReposOK() *GetLoginsAndReposOK

NewGetLoginsAndReposOK creates a GetLoginsAndReposOK with default headers values

func (*GetLoginsAndReposOK) Error

func (o *GetLoginsAndReposOK) Error() string

func (*GetLoginsAndReposOK) GetPayload

func (o *GetLoginsAndReposOK) GetPayload() []*mono_models.GithubLogin

type GetLoginsAndReposParams

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

GetLoginsAndReposParams contains all the parameters to send to the API endpoint

for the get logins and repos operation.

Typically these are written to a http.Request.

func NewGetLoginsAndReposParams

func NewGetLoginsAndReposParams() *GetLoginsAndReposParams

NewGetLoginsAndReposParams creates a new GetLoginsAndReposParams 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 NewGetLoginsAndReposParamsWithContext

func NewGetLoginsAndReposParamsWithContext(ctx context.Context) *GetLoginsAndReposParams

NewGetLoginsAndReposParamsWithContext creates a new GetLoginsAndReposParams object with the ability to set a context for a request.

func NewGetLoginsAndReposParamsWithHTTPClient

func NewGetLoginsAndReposParamsWithHTTPClient(client *http.Client) *GetLoginsAndReposParams

NewGetLoginsAndReposParamsWithHTTPClient creates a new GetLoginsAndReposParams object with the ability to set a custom HTTPClient for a request.

func NewGetLoginsAndReposParamsWithTimeout

func NewGetLoginsAndReposParamsWithTimeout(timeout time.Duration) *GetLoginsAndReposParams

NewGetLoginsAndReposParamsWithTimeout creates a new GetLoginsAndReposParams object with the ability to set a timeout on a request.

func (*GetLoginsAndReposParams) SetContext

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

SetContext adds the context to the get logins and repos params

func (*GetLoginsAndReposParams) SetDefaults

func (o *GetLoginsAndReposParams) SetDefaults()

SetDefaults hydrates default values in the get logins and repos params (not the query body).

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

func (*GetLoginsAndReposParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get logins and repos params

func (*GetLoginsAndReposParams) SetTimeout

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

SetTimeout adds the timeout to the get logins and repos params

func (*GetLoginsAndReposParams) WithContext

WithContext adds the context to the get logins and repos params

func (*GetLoginsAndReposParams) WithDefaults

WithDefaults hydrates default values in the get logins and repos params (not the query body).

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

func (*GetLoginsAndReposParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get logins and repos params

func (*GetLoginsAndReposParams) WithTimeout

WithTimeout adds the timeout to the get logins and repos params

func (*GetLoginsAndReposParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLoginsAndReposReader

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

GetLoginsAndReposReader is a Reader for the GetLoginsAndRepos structure.

func (*GetLoginsAndReposReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRepoRequirementsBadRequest

type GetRepoRequirementsBadRequest struct {
	Payload *mono_models.Message
}
GetRepoRequirementsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetRepoRequirementsBadRequest

func NewGetRepoRequirementsBadRequest() *GetRepoRequirementsBadRequest

NewGetRepoRequirementsBadRequest creates a GetRepoRequirementsBadRequest with default headers values

func (*GetRepoRequirementsBadRequest) Error

func (*GetRepoRequirementsBadRequest) GetPayload

type GetRepoRequirementsForbidden

type GetRepoRequirementsForbidden struct {
	Payload *mono_models.Message
}
GetRepoRequirementsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetRepoRequirementsForbidden

func NewGetRepoRequirementsForbidden() *GetRepoRequirementsForbidden

NewGetRepoRequirementsForbidden creates a GetRepoRequirementsForbidden with default headers values

func (*GetRepoRequirementsForbidden) Error

func (*GetRepoRequirementsForbidden) GetPayload

type GetRepoRequirementsInternalServerError

type GetRepoRequirementsInternalServerError struct {
	Payload *mono_models.Message
}
GetRepoRequirementsInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewGetRepoRequirementsInternalServerError

func NewGetRepoRequirementsInternalServerError() *GetRepoRequirementsInternalServerError

NewGetRepoRequirementsInternalServerError creates a GetRepoRequirementsInternalServerError with default headers values

func (*GetRepoRequirementsInternalServerError) Error

func (*GetRepoRequirementsInternalServerError) GetPayload

type GetRepoRequirementsOK

type GetRepoRequirementsOK struct {
	Payload []*mono_models.GitRepoRequirements
}
GetRepoRequirementsOK describes a response with status code 200, with default header values.

Success

func NewGetRepoRequirementsOK

func NewGetRepoRequirementsOK() *GetRepoRequirementsOK

NewGetRepoRequirementsOK creates a GetRepoRequirementsOK with default headers values

func (*GetRepoRequirementsOK) Error

func (o *GetRepoRequirementsOK) Error() string

func (*GetRepoRequirementsOK) GetPayload

type GetRepoRequirementsParams

type GetRepoRequirementsParams struct {

	// RepoURL.
	RepoURL string

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

GetRepoRequirementsParams contains all the parameters to send to the API endpoint

for the get repo requirements operation.

Typically these are written to a http.Request.

func NewGetRepoRequirementsParams

func NewGetRepoRequirementsParams() *GetRepoRequirementsParams

NewGetRepoRequirementsParams creates a new GetRepoRequirementsParams 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 NewGetRepoRequirementsParamsWithContext

func NewGetRepoRequirementsParamsWithContext(ctx context.Context) *GetRepoRequirementsParams

NewGetRepoRequirementsParamsWithContext creates a new GetRepoRequirementsParams object with the ability to set a context for a request.

func NewGetRepoRequirementsParamsWithHTTPClient

func NewGetRepoRequirementsParamsWithHTTPClient(client *http.Client) *GetRepoRequirementsParams

NewGetRepoRequirementsParamsWithHTTPClient creates a new GetRepoRequirementsParams object with the ability to set a custom HTTPClient for a request.

func NewGetRepoRequirementsParamsWithTimeout

func NewGetRepoRequirementsParamsWithTimeout(timeout time.Duration) *GetRepoRequirementsParams

NewGetRepoRequirementsParamsWithTimeout creates a new GetRepoRequirementsParams object with the ability to set a timeout on a request.

func (*GetRepoRequirementsParams) SetContext

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

SetContext adds the context to the get repo requirements params

func (*GetRepoRequirementsParams) SetDefaults

func (o *GetRepoRequirementsParams) SetDefaults()

SetDefaults hydrates default values in the get repo requirements params (not the query body).

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

func (*GetRepoRequirementsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get repo requirements params

func (*GetRepoRequirementsParams) SetRepoURL

func (o *GetRepoRequirementsParams) SetRepoURL(repoURL string)

SetRepoURL adds the repoUrl to the get repo requirements params

func (*GetRepoRequirementsParams) SetTimeout

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

SetTimeout adds the timeout to the get repo requirements params

func (*GetRepoRequirementsParams) WithContext

WithContext adds the context to the get repo requirements params

func (*GetRepoRequirementsParams) WithDefaults

WithDefaults hydrates default values in the get repo requirements params (not the query body).

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

func (*GetRepoRequirementsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get repo requirements params

func (*GetRepoRequirementsParams) WithRepoURL

WithRepoURL adds the repoURL to the get repo requirements params

func (*GetRepoRequirementsParams) WithTimeout

WithTimeout adds the timeout to the get repo requirements params

func (*GetRepoRequirementsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepoRequirementsReader

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

GetRepoRequirementsReader is a Reader for the GetRepoRequirements structure.

func (*GetRepoRequirementsReader) ReadResponse

func (o *GetRepoRequirementsReader) 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