Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type FollowProjectBadRequest
- func (o *FollowProjectBadRequest) Error() string
- func (o *FollowProjectBadRequest) GetPayload() *models.Errored
- func (o *FollowProjectBadRequest) IsClientError() bool
- func (o *FollowProjectBadRequest) IsCode(code int) bool
- func (o *FollowProjectBadRequest) IsRedirect() bool
- func (o *FollowProjectBadRequest) IsServerError() bool
- func (o *FollowProjectBadRequest) IsSuccess() bool
- func (o *FollowProjectBadRequest) String() string
- type FollowProjectNotFound
- func (o *FollowProjectNotFound) Error() string
- func (o *FollowProjectNotFound) GetPayload() *models.Errored
- func (o *FollowProjectNotFound) IsClientError() bool
- func (o *FollowProjectNotFound) IsCode(code int) bool
- func (o *FollowProjectNotFound) IsRedirect() bool
- func (o *FollowProjectNotFound) IsServerError() bool
- func (o *FollowProjectNotFound) IsSuccess() bool
- func (o *FollowProjectNotFound) String() string
- type FollowProjectOK
- func (o *FollowProjectOK) Error() string
- func (o *FollowProjectOK) GetPayload() *models.ProjectFollowInfo
- func (o *FollowProjectOK) IsClientError() bool
- func (o *FollowProjectOK) IsCode(code int) bool
- func (o *FollowProjectOK) IsRedirect() bool
- func (o *FollowProjectOK) IsServerError() bool
- func (o *FollowProjectOK) IsSuccess() bool
- func (o *FollowProjectOK) String() string
- type FollowProjectParams
- func (o *FollowProjectParams) SetContext(ctx context.Context)
- func (o *FollowProjectParams) SetDefaults()
- func (o *FollowProjectParams) SetHTTPClient(client *http.Client)
- func (o *FollowProjectParams) SetProjectSlug(projectSlug string)
- func (o *FollowProjectParams) SetTimeout(timeout time.Duration)
- func (o *FollowProjectParams) WithContext(ctx context.Context) *FollowProjectParams
- func (o *FollowProjectParams) WithDefaults() *FollowProjectParams
- func (o *FollowProjectParams) WithHTTPClient(client *http.Client) *FollowProjectParams
- func (o *FollowProjectParams) WithProjectSlug(projectSlug string) *FollowProjectParams
- func (o *FollowProjectParams) WithTimeout(timeout time.Duration) *FollowProjectParams
- func (o *FollowProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FollowProjectReader
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 project API
func (*Client) FollowProject ¶ added in v0.2.0
func (a *Client) FollowProject(params *FollowProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FollowProjectOK, error)
FollowProject follows a project
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 { FollowProject(params *FollowProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FollowProjectOK, 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 project API client.
type FollowProjectBadRequest ¶ added in v0.2.0
FollowProjectBadRequest describes a response with status code 400, with default header values.
Invalid input
func NewFollowProjectBadRequest ¶ added in v0.2.0
func NewFollowProjectBadRequest() *FollowProjectBadRequest
NewFollowProjectBadRequest creates a FollowProjectBadRequest with default headers values
func (*FollowProjectBadRequest) Error ¶ added in v0.2.0
func (o *FollowProjectBadRequest) Error() string
func (*FollowProjectBadRequest) GetPayload ¶ added in v0.2.0
func (o *FollowProjectBadRequest) GetPayload() *models.Errored
func (*FollowProjectBadRequest) IsClientError ¶ added in v0.2.0
func (o *FollowProjectBadRequest) IsClientError() bool
IsClientError returns true when this follow project bad request response has a 4xx status code
func (*FollowProjectBadRequest) IsCode ¶ added in v0.2.0
func (o *FollowProjectBadRequest) IsCode(code int) bool
IsCode returns true when this follow project bad request response a status code equal to that given
func (*FollowProjectBadRequest) IsRedirect ¶ added in v0.2.0
func (o *FollowProjectBadRequest) IsRedirect() bool
IsRedirect returns true when this follow project bad request response has a 3xx status code
func (*FollowProjectBadRequest) IsServerError ¶ added in v0.2.0
func (o *FollowProjectBadRequest) IsServerError() bool
IsServerError returns true when this follow project bad request response has a 5xx status code
func (*FollowProjectBadRequest) IsSuccess ¶ added in v0.2.0
func (o *FollowProjectBadRequest) IsSuccess() bool
IsSuccess returns true when this follow project bad request response has a 2xx status code
func (*FollowProjectBadRequest) String ¶ added in v0.2.0
func (o *FollowProjectBadRequest) String() string
type FollowProjectNotFound ¶ added in v0.2.0
FollowProjectNotFound describes a response with status code 404, with default header values.
Not Found
func NewFollowProjectNotFound ¶ added in v0.2.0
func NewFollowProjectNotFound() *FollowProjectNotFound
NewFollowProjectNotFound creates a FollowProjectNotFound with default headers values
func (*FollowProjectNotFound) Error ¶ added in v0.2.0
func (o *FollowProjectNotFound) Error() string
func (*FollowProjectNotFound) GetPayload ¶ added in v0.2.0
func (o *FollowProjectNotFound) GetPayload() *models.Errored
func (*FollowProjectNotFound) IsClientError ¶ added in v0.2.0
func (o *FollowProjectNotFound) IsClientError() bool
IsClientError returns true when this follow project not found response has a 4xx status code
func (*FollowProjectNotFound) IsCode ¶ added in v0.2.0
func (o *FollowProjectNotFound) IsCode(code int) bool
IsCode returns true when this follow project not found response a status code equal to that given
func (*FollowProjectNotFound) IsRedirect ¶ added in v0.2.0
func (o *FollowProjectNotFound) IsRedirect() bool
IsRedirect returns true when this follow project not found response has a 3xx status code
func (*FollowProjectNotFound) IsServerError ¶ added in v0.2.0
func (o *FollowProjectNotFound) IsServerError() bool
IsServerError returns true when this follow project not found response has a 5xx status code
func (*FollowProjectNotFound) IsSuccess ¶ added in v0.2.0
func (o *FollowProjectNotFound) IsSuccess() bool
IsSuccess returns true when this follow project not found response has a 2xx status code
func (*FollowProjectNotFound) String ¶ added in v0.2.0
func (o *FollowProjectNotFound) String() string
type FollowProjectOK ¶ added in v0.2.0
type FollowProjectOK struct {
Payload *models.ProjectFollowInfo
}
FollowProjectOK describes a response with status code 200, with default header values.
Project-follow information
func NewFollowProjectOK ¶ added in v0.2.0
func NewFollowProjectOK() *FollowProjectOK
NewFollowProjectOK creates a FollowProjectOK with default headers values
func (*FollowProjectOK) Error ¶ added in v0.2.0
func (o *FollowProjectOK) Error() string
func (*FollowProjectOK) GetPayload ¶ added in v0.2.0
func (o *FollowProjectOK) GetPayload() *models.ProjectFollowInfo
func (*FollowProjectOK) IsClientError ¶ added in v0.2.0
func (o *FollowProjectOK) IsClientError() bool
IsClientError returns true when this follow project o k response has a 4xx status code
func (*FollowProjectOK) IsCode ¶ added in v0.2.0
func (o *FollowProjectOK) IsCode(code int) bool
IsCode returns true when this follow project o k response a status code equal to that given
func (*FollowProjectOK) IsRedirect ¶ added in v0.2.0
func (o *FollowProjectOK) IsRedirect() bool
IsRedirect returns true when this follow project o k response has a 3xx status code
func (*FollowProjectOK) IsServerError ¶ added in v0.2.0
func (o *FollowProjectOK) IsServerError() bool
IsServerError returns true when this follow project o k response has a 5xx status code
func (*FollowProjectOK) IsSuccess ¶ added in v0.2.0
func (o *FollowProjectOK) IsSuccess() bool
IsSuccess returns true when this follow project o k response has a 2xx status code
func (*FollowProjectOK) String ¶ added in v0.2.0
func (o *FollowProjectOK) String() string
type FollowProjectParams ¶ added in v0.2.0
type FollowProjectParams struct { /* ProjectSlug. Project slug in the form vcs-slug/org-name/repo-name. The / characters may be URL-escaped. Example: gh/CircleCI-Public/api-preview-docs */ ProjectSlug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FollowProjectParams contains all the parameters to send to the API endpoint
for the follow project operation. Typically these are written to a http.Request.
func NewFollowProjectParams ¶ added in v0.2.0
func NewFollowProjectParams() *FollowProjectParams
NewFollowProjectParams creates a new FollowProjectParams 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 NewFollowProjectParamsWithContext ¶ added in v0.2.0
func NewFollowProjectParamsWithContext(ctx context.Context) *FollowProjectParams
NewFollowProjectParamsWithContext creates a new FollowProjectParams object with the ability to set a context for a request.
func NewFollowProjectParamsWithHTTPClient ¶ added in v0.2.0
func NewFollowProjectParamsWithHTTPClient(client *http.Client) *FollowProjectParams
NewFollowProjectParamsWithHTTPClient creates a new FollowProjectParams object with the ability to set a custom HTTPClient for a request.
func NewFollowProjectParamsWithTimeout ¶ added in v0.2.0
func NewFollowProjectParamsWithTimeout(timeout time.Duration) *FollowProjectParams
NewFollowProjectParamsWithTimeout creates a new FollowProjectParams object with the ability to set a timeout on a request.
func (*FollowProjectParams) SetContext ¶ added in v0.2.0
func (o *FollowProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the follow project params
func (*FollowProjectParams) SetDefaults ¶ added in v0.2.0
func (o *FollowProjectParams) SetDefaults()
SetDefaults hydrates default values in the follow project params (not the query body).
All values with no default are reset to their zero value.
func (*FollowProjectParams) SetHTTPClient ¶ added in v0.2.0
func (o *FollowProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the follow project params
func (*FollowProjectParams) SetProjectSlug ¶ added in v0.2.0
func (o *FollowProjectParams) SetProjectSlug(projectSlug string)
SetProjectSlug adds the projectSlug to the follow project params
func (*FollowProjectParams) SetTimeout ¶ added in v0.2.0
func (o *FollowProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the follow project params
func (*FollowProjectParams) WithContext ¶ added in v0.2.0
func (o *FollowProjectParams) WithContext(ctx context.Context) *FollowProjectParams
WithContext adds the context to the follow project params
func (*FollowProjectParams) WithDefaults ¶ added in v0.2.0
func (o *FollowProjectParams) WithDefaults() *FollowProjectParams
WithDefaults hydrates default values in the follow project params (not the query body).
All values with no default are reset to their zero value.
func (*FollowProjectParams) WithHTTPClient ¶ added in v0.2.0
func (o *FollowProjectParams) WithHTTPClient(client *http.Client) *FollowProjectParams
WithHTTPClient adds the HTTPClient to the follow project params
func (*FollowProjectParams) WithProjectSlug ¶ added in v0.2.0
func (o *FollowProjectParams) WithProjectSlug(projectSlug string) *FollowProjectParams
WithProjectSlug adds the projectSlug to the follow project params
func (*FollowProjectParams) WithTimeout ¶ added in v0.2.0
func (o *FollowProjectParams) WithTimeout(timeout time.Duration) *FollowProjectParams
WithTimeout adds the timeout to the follow project params
func (*FollowProjectParams) WriteToRequest ¶ added in v0.2.0
func (o *FollowProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FollowProjectReader ¶ added in v0.2.0
type FollowProjectReader struct {
// contains filtered or unexported fields
}
FollowProjectReader is a Reader for the FollowProject structure.
func (*FollowProjectReader) ReadResponse ¶ added in v0.2.0
func (o *FollowProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.