Documentation ¶
Index ¶
- type Client
- func (a *Client) GetLoginsAndRepos(params *GetLoginsAndReposParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetLoginsAndReposOK, error)
- func (a *Client) GetRepoRequirements(params *GetRepoRequirementsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRepoRequirementsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetLoginsAndReposBadRequest
- type GetLoginsAndReposForbidden
- type GetLoginsAndReposInternalServerError
- type GetLoginsAndReposOK
- type GetLoginsAndReposParams
- func NewGetLoginsAndReposParams() *GetLoginsAndReposParams
- func NewGetLoginsAndReposParamsWithContext(ctx context.Context) *GetLoginsAndReposParams
- func NewGetLoginsAndReposParamsWithHTTPClient(client *http.Client) *GetLoginsAndReposParams
- func NewGetLoginsAndReposParamsWithTimeout(timeout time.Duration) *GetLoginsAndReposParams
- func (o *GetLoginsAndReposParams) SetContext(ctx context.Context)
- func (o *GetLoginsAndReposParams) SetDefaults()
- func (o *GetLoginsAndReposParams) SetHTTPClient(client *http.Client)
- func (o *GetLoginsAndReposParams) SetTimeout(timeout time.Duration)
- func (o *GetLoginsAndReposParams) WithContext(ctx context.Context) *GetLoginsAndReposParams
- func (o *GetLoginsAndReposParams) WithDefaults() *GetLoginsAndReposParams
- func (o *GetLoginsAndReposParams) WithHTTPClient(client *http.Client) *GetLoginsAndReposParams
- func (o *GetLoginsAndReposParams) WithTimeout(timeout time.Duration) *GetLoginsAndReposParams
- func (o *GetLoginsAndReposParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLoginsAndReposReader
- type GetRepoRequirementsBadRequest
- type GetRepoRequirementsForbidden
- type GetRepoRequirementsInternalServerError
- type GetRepoRequirementsOK
- type GetRepoRequirementsParams
- func NewGetRepoRequirementsParams() *GetRepoRequirementsParams
- func NewGetRepoRequirementsParamsWithContext(ctx context.Context) *GetRepoRequirementsParams
- func NewGetRepoRequirementsParamsWithHTTPClient(client *http.Client) *GetRepoRequirementsParams
- func NewGetRepoRequirementsParamsWithTimeout(timeout time.Duration) *GetRepoRequirementsParams
- func (o *GetRepoRequirementsParams) SetContext(ctx context.Context)
- func (o *GetRepoRequirementsParams) SetDefaults()
- func (o *GetRepoRequirementsParams) SetHTTPClient(client *http.Client)
- func (o *GetRepoRequirementsParams) SetRepoURL(repoURL string)
- func (o *GetRepoRequirementsParams) SetTimeout(timeout time.Duration)
- func (o *GetRepoRequirementsParams) WithContext(ctx context.Context) *GetRepoRequirementsParams
- func (o *GetRepoRequirementsParams) WithDefaults() *GetRepoRequirementsParams
- func (o *GetRepoRequirementsParams) WithHTTPClient(client *http.Client) *GetRepoRequirementsParams
- func (o *GetRepoRequirementsParams) WithRepoURL(repoURL string) *GetRepoRequirementsParams
- func (o *GetRepoRequirementsParams) WithTimeout(timeout time.Duration) *GetRepoRequirementsParams
- func (o *GetRepoRequirementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRepoRequirementsReader
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 (o *GetLoginsAndReposBadRequest) Error() string
func (*GetLoginsAndReposBadRequest) GetPayload ¶
func (o *GetLoginsAndReposBadRequest) GetPayload() *mono_models.Message
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 (o *GetLoginsAndReposForbidden) Error() string
func (*GetLoginsAndReposForbidden) GetPayload ¶
func (o *GetLoginsAndReposForbidden) GetPayload() *mono_models.Message
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 (o *GetLoginsAndReposInternalServerError) Error() string
func (*GetLoginsAndReposInternalServerError) GetPayload ¶
func (o *GetLoginsAndReposInternalServerError) GetPayload() *mono_models.Message
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 ¶
func (o *GetLoginsAndReposParams) WithContext(ctx context.Context) *GetLoginsAndReposParams
WithContext adds the context to the get logins and repos params
func (*GetLoginsAndReposParams) WithDefaults ¶
func (o *GetLoginsAndReposParams) WithDefaults() *GetLoginsAndReposParams
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 ¶
func (o *GetLoginsAndReposParams) WithTimeout(timeout time.Duration) *GetLoginsAndReposParams
WithTimeout adds the timeout to the get logins and repos params
func (*GetLoginsAndReposParams) WriteToRequest ¶
func (o *GetLoginsAndReposParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetRepoRequirementsBadRequest) Error() string
func (*GetRepoRequirementsBadRequest) GetPayload ¶
func (o *GetRepoRequirementsBadRequest) GetPayload() *mono_models.Message
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 (o *GetRepoRequirementsForbidden) Error() string
func (*GetRepoRequirementsForbidden) GetPayload ¶
func (o *GetRepoRequirementsForbidden) GetPayload() *mono_models.Message
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 (o *GetRepoRequirementsInternalServerError) Error() string
func (*GetRepoRequirementsInternalServerError) GetPayload ¶
func (o *GetRepoRequirementsInternalServerError) GetPayload() *mono_models.Message
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 ¶
func (o *GetRepoRequirementsOK) GetPayload() []*mono_models.GitRepoRequirements
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 ¶
func (o *GetRepoRequirementsParams) WithContext(ctx context.Context) *GetRepoRequirementsParams
WithContext adds the context to the get repo requirements params
func (*GetRepoRequirementsParams) WithDefaults ¶
func (o *GetRepoRequirementsParams) WithDefaults() *GetRepoRequirementsParams
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 ¶
func (o *GetRepoRequirementsParams) WithRepoURL(repoURL string) *GetRepoRequirementsParams
WithRepoURL adds the repoURL to the get repo requirements params
func (*GetRepoRequirementsParams) WithTimeout ¶
func (o *GetRepoRequirementsParams) WithTimeout(timeout time.Duration) *GetRepoRequirementsParams
WithTimeout adds the timeout to the get repo requirements params
func (*GetRepoRequirementsParams) WriteToRequest ¶
func (o *GetRepoRequirementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.