user

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 12 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 user API

func New

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

New creates a new user API client.

func (*Client) Commits

func (a *Client) Commits(params *CommitsParams, authInfo runtime.ClientAuthInfoWriter) (*CommitsOK, error)

Commits List of commits for a WakaTime project showing the time spent coding in each commit.

func (*Client) Duration

func (a *Client) Duration(params *DurationParams, authInfo runtime.ClientAuthInfoWriter) (*DurationOK, error)

Duration A user's coding activity for the given day as an array of durations.

func (*Client) Goals

func (a *Client) Goals(params *GoalsParams, authInfo runtime.ClientAuthInfoWriter) (*GoalsOK, error)

Goals List of WakaTime goals for the user.

func (*Client) Projects

func (a *Client) Projects(params *ProjectsParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectsOK, error)

Projects List of WakaTime projects for the user.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Stats

func (a *Client) Stats(params *StatsParams, authInfo runtime.ClientAuthInfoWriter) (*StatsOK, *StatsAccepted, error)

Stats A user's coding activity for the given time range. range can be one of last_7_days, last_30_days, last_6_months, or last_year.

func (*Client) Summaries

func (a *Client) Summaries(params *SummariesParams, authInfo runtime.ClientAuthInfoWriter) (*SummariesOK, error)

Summaries A user's coding activity for the given time range as an array of summaries segmented by day.

func (*Client) User

func (a *Client) User(params *UserParams, authInfo runtime.ClientAuthInfoWriter) (*UserOK, error)

User Get the user specified in path

func (*Client) UserAgents

func (a *Client) UserAgents(params *UserAgentsParams, authInfo runtime.ClientAuthInfoWriter) (*UserAgentsOK, error)

UserAgents List of plugins which have sent data for this user.

type CommitsNotFound

type CommitsNotFound struct {
	Payload *models.Error
}

CommitsNotFound handles this case with default header values.

The resource does not exist.

func NewCommitsNotFound

func NewCommitsNotFound() *CommitsNotFound

NewCommitsNotFound creates a CommitsNotFound with default headers values

func (*CommitsNotFound) Error

func (o *CommitsNotFound) Error() string

type CommitsOK

type CommitsOK struct {
	Payload *models.Commits
}

CommitsOK handles this case with default header values.

The request has succeeded.

func NewCommitsOK

func NewCommitsOK() *CommitsOK

NewCommitsOK creates a CommitsOK with default headers values

func (*CommitsOK) Error

func (o *CommitsOK) Error() string

type CommitsParams

type CommitsParams struct {

	/*Author
	  Filter commits to only those authored by the given username.

	*/
	Author *string
	/*Page
	  Page number of commit.

	*/
	Page *int64
	/*Project
	  Project Nam

	*/
	Project string
	/*User
	  ID of the user to obtain

	*/
	User string

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

CommitsParams contains all the parameters to send to the API endpoint for the commits operation typically these are written to a http.Request

func NewCommitsParams

func NewCommitsParams() *CommitsParams

NewCommitsParams creates a new CommitsParams object with the default values initialized.

func NewCommitsParamsWithContext

func NewCommitsParamsWithContext(ctx context.Context) *CommitsParams

NewCommitsParamsWithContext creates a new CommitsParams object with the default values initialized, and the ability to set a context for a request

func NewCommitsParamsWithHTTPClient

func NewCommitsParamsWithHTTPClient(client *http.Client) *CommitsParams

NewCommitsParamsWithHTTPClient creates a new CommitsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCommitsParamsWithTimeout

func NewCommitsParamsWithTimeout(timeout time.Duration) *CommitsParams

NewCommitsParamsWithTimeout creates a new CommitsParams object with the default values initialized, and the ability to set a timeout on a request

func (*CommitsParams) SetAuthor

func (o *CommitsParams) SetAuthor(author *string)

SetAuthor adds the author to the commits params

func (*CommitsParams) SetContext

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

SetContext adds the context to the commits params

func (*CommitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the commits params

func (*CommitsParams) SetPage

func (o *CommitsParams) SetPage(page *int64)

SetPage adds the page to the commits params

func (*CommitsParams) SetProject

func (o *CommitsParams) SetProject(project string)

SetProject adds the project to the commits params

func (*CommitsParams) SetTimeout

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

SetTimeout adds the timeout to the commits params

func (*CommitsParams) SetUser

func (o *CommitsParams) SetUser(user string)

SetUser adds the user to the commits params

func (*CommitsParams) WithAuthor

func (o *CommitsParams) WithAuthor(author *string) *CommitsParams

WithAuthor adds the author to the commits params

func (*CommitsParams) WithContext

func (o *CommitsParams) WithContext(ctx context.Context) *CommitsParams

WithContext adds the context to the commits params

func (*CommitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the commits params

func (*CommitsParams) WithPage

func (o *CommitsParams) WithPage(page *int64) *CommitsParams

WithPage adds the page to the commits params

func (*CommitsParams) WithProject

func (o *CommitsParams) WithProject(project string) *CommitsParams

WithProject adds the project to the commits params

func (*CommitsParams) WithTimeout

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

WithTimeout adds the timeout to the commits params

func (*CommitsParams) WithUser

func (o *CommitsParams) WithUser(user string) *CommitsParams

WithUser adds the user to the commits params

func (*CommitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CommitsReader

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

CommitsReader is a Reader for the Commits structure.

func (*CommitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CommitsUnauthorized

type CommitsUnauthorized struct {
	Payload *models.Error
}

CommitsUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewCommitsUnauthorized

func NewCommitsUnauthorized() *CommitsUnauthorized

NewCommitsUnauthorized creates a CommitsUnauthorized with default headers values

func (*CommitsUnauthorized) Error

func (o *CommitsUnauthorized) Error() string

type DurationNotFound

type DurationNotFound struct {
	Payload *models.Error
}

DurationNotFound handles this case with default header values.

The resource does not exist.

func NewDurationNotFound

func NewDurationNotFound() *DurationNotFound

NewDurationNotFound creates a DurationNotFound with default headers values

func (*DurationNotFound) Error

func (o *DurationNotFound) Error() string

type DurationOK

type DurationOK struct {
	Payload *models.Durations
}

DurationOK handles this case with default header values.

The request has succeeded.

func NewDurationOK

func NewDurationOK() *DurationOK

NewDurationOK creates a DurationOK with default headers values

func (*DurationOK) Error

func (o *DurationOK) Error() string

type DurationParams

type DurationParams struct {

	/*Branches
	  Only show durations for these branches; comma separated list of branch names.

	*/
	Branches *string
	/*Date
	  Requested day; Durations will be returned from 12am until 11:59pm in user's timezone for this day.

	*/
	Date strfmt.Date
	/*Project
	  Only show durations for this project.

	*/
	Project *string
	/*User
	  ID of the user to obtain

	*/
	User string

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

DurationParams contains all the parameters to send to the API endpoint for the duration operation typically these are written to a http.Request

func NewDurationParams

func NewDurationParams() *DurationParams

NewDurationParams creates a new DurationParams object with the default values initialized.

func NewDurationParamsWithContext

func NewDurationParamsWithContext(ctx context.Context) *DurationParams

NewDurationParamsWithContext creates a new DurationParams object with the default values initialized, and the ability to set a context for a request

func NewDurationParamsWithHTTPClient

func NewDurationParamsWithHTTPClient(client *http.Client) *DurationParams

NewDurationParamsWithHTTPClient creates a new DurationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDurationParamsWithTimeout

func NewDurationParamsWithTimeout(timeout time.Duration) *DurationParams

NewDurationParamsWithTimeout creates a new DurationParams object with the default values initialized, and the ability to set a timeout on a request

func (*DurationParams) SetBranches

func (o *DurationParams) SetBranches(branches *string)

SetBranches adds the branches to the duration params

func (*DurationParams) SetContext

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

SetContext adds the context to the duration params

func (*DurationParams) SetDate

func (o *DurationParams) SetDate(date strfmt.Date)

SetDate adds the date to the duration params

func (*DurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the duration params

func (*DurationParams) SetProject

func (o *DurationParams) SetProject(project *string)

SetProject adds the project to the duration params

func (*DurationParams) SetTimeout

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

SetTimeout adds the timeout to the duration params

func (*DurationParams) SetUser

func (o *DurationParams) SetUser(user string)

SetUser adds the user to the duration params

func (*DurationParams) WithBranches

func (o *DurationParams) WithBranches(branches *string) *DurationParams

WithBranches adds the branches to the duration params

func (*DurationParams) WithContext

func (o *DurationParams) WithContext(ctx context.Context) *DurationParams

WithContext adds the context to the duration params

func (*DurationParams) WithDate

func (o *DurationParams) WithDate(date strfmt.Date) *DurationParams

WithDate adds the date to the duration params

func (*DurationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the duration params

func (*DurationParams) WithProject

func (o *DurationParams) WithProject(project *string) *DurationParams

WithProject adds the project to the duration params

func (*DurationParams) WithTimeout

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

WithTimeout adds the timeout to the duration params

func (*DurationParams) WithUser

func (o *DurationParams) WithUser(user string) *DurationParams

WithUser adds the user to the duration params

func (*DurationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DurationReader

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

DurationReader is a Reader for the Duration structure.

func (*DurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DurationUnauthorized

type DurationUnauthorized struct {
	Payload *models.Error
}

DurationUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewDurationUnauthorized

func NewDurationUnauthorized() *DurationUnauthorized

NewDurationUnauthorized creates a DurationUnauthorized with default headers values

func (*DurationUnauthorized) Error

func (o *DurationUnauthorized) Error() string

type GoalsNotFound

type GoalsNotFound struct {
	Payload *models.Error
}

GoalsNotFound handles this case with default header values.

The resource does not exist.

func NewGoalsNotFound

func NewGoalsNotFound() *GoalsNotFound

NewGoalsNotFound creates a GoalsNotFound with default headers values

func (*GoalsNotFound) Error

func (o *GoalsNotFound) Error() string

type GoalsOK

type GoalsOK struct {
	Payload *models.Goals
}

GoalsOK handles this case with default header values.

The request has succeeded.

func NewGoalsOK

func NewGoalsOK() *GoalsOK

NewGoalsOK creates a GoalsOK with default headers values

func (*GoalsOK) Error

func (o *GoalsOK) Error() string

type GoalsParams

type GoalsParams struct {

	/*User
	  ID of the user to obtain

	*/
	User string

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

GoalsParams contains all the parameters to send to the API endpoint for the goals operation typically these are written to a http.Request

func NewGoalsParams

func NewGoalsParams() *GoalsParams

NewGoalsParams creates a new GoalsParams object with the default values initialized.

func NewGoalsParamsWithContext

func NewGoalsParamsWithContext(ctx context.Context) *GoalsParams

NewGoalsParamsWithContext creates a new GoalsParams object with the default values initialized, and the ability to set a context for a request

func NewGoalsParamsWithHTTPClient

func NewGoalsParamsWithHTTPClient(client *http.Client) *GoalsParams

NewGoalsParamsWithHTTPClient creates a new GoalsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGoalsParamsWithTimeout

func NewGoalsParamsWithTimeout(timeout time.Duration) *GoalsParams

NewGoalsParamsWithTimeout creates a new GoalsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GoalsParams) SetContext

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

SetContext adds the context to the goals params

func (*GoalsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the goals params

func (*GoalsParams) SetTimeout

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

SetTimeout adds the timeout to the goals params

func (*GoalsParams) SetUser

func (o *GoalsParams) SetUser(user string)

SetUser adds the user to the goals params

func (*GoalsParams) WithContext

func (o *GoalsParams) WithContext(ctx context.Context) *GoalsParams

WithContext adds the context to the goals params

func (*GoalsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the goals params

func (*GoalsParams) WithTimeout

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

WithTimeout adds the timeout to the goals params

func (*GoalsParams) WithUser

func (o *GoalsParams) WithUser(user string) *GoalsParams

WithUser adds the user to the goals params

func (*GoalsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GoalsReader

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

GoalsReader is a Reader for the Goals structure.

func (*GoalsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GoalsUnauthorized

type GoalsUnauthorized struct {
	Payload *models.Error
}

GoalsUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewGoalsUnauthorized

func NewGoalsUnauthorized() *GoalsUnauthorized

NewGoalsUnauthorized creates a GoalsUnauthorized with default headers values

func (*GoalsUnauthorized) Error

func (o *GoalsUnauthorized) Error() string

type ProjectsNotFound

type ProjectsNotFound struct {
	Payload *models.Error
}

ProjectsNotFound handles this case with default header values.

The resource does not exist.

func NewProjectsNotFound

func NewProjectsNotFound() *ProjectsNotFound

NewProjectsNotFound creates a ProjectsNotFound with default headers values

func (*ProjectsNotFound) Error

func (o *ProjectsNotFound) Error() string

type ProjectsOK

type ProjectsOK struct {
	Payload *models.Projects
}

ProjectsOK handles this case with default header values.

The request has succeeded.

func NewProjectsOK

func NewProjectsOK() *ProjectsOK

NewProjectsOK creates a ProjectsOK with default headers values

func (*ProjectsOK) Error

func (o *ProjectsOK) Error() string

type ProjectsParams

type ProjectsParams struct {

	/*User
	  ID of the user to obtain

	*/
	User string

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

ProjectsParams contains all the parameters to send to the API endpoint for the projects operation typically these are written to a http.Request

func NewProjectsParams

func NewProjectsParams() *ProjectsParams

NewProjectsParams creates a new ProjectsParams object with the default values initialized.

func NewProjectsParamsWithContext

func NewProjectsParamsWithContext(ctx context.Context) *ProjectsParams

NewProjectsParamsWithContext creates a new ProjectsParams object with the default values initialized, and the ability to set a context for a request

func NewProjectsParamsWithHTTPClient

func NewProjectsParamsWithHTTPClient(client *http.Client) *ProjectsParams

NewProjectsParamsWithHTTPClient creates a new ProjectsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewProjectsParamsWithTimeout

func NewProjectsParamsWithTimeout(timeout time.Duration) *ProjectsParams

NewProjectsParamsWithTimeout creates a new ProjectsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ProjectsParams) SetContext

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

SetContext adds the context to the projects params

func (*ProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the projects params

func (*ProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the projects params

func (*ProjectsParams) SetUser

func (o *ProjectsParams) SetUser(user string)

SetUser adds the user to the projects params

func (*ProjectsParams) WithContext

func (o *ProjectsParams) WithContext(ctx context.Context) *ProjectsParams

WithContext adds the context to the projects params

func (*ProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the projects params

func (*ProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the projects params

func (*ProjectsParams) WithUser

func (o *ProjectsParams) WithUser(user string) *ProjectsParams

WithUser adds the user to the projects params

func (*ProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProjectsReader

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

ProjectsReader is a Reader for the Projects structure.

func (*ProjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProjectsUnauthorized

type ProjectsUnauthorized struct {
	Payload *models.Error
}

ProjectsUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewProjectsUnauthorized

func NewProjectsUnauthorized() *ProjectsUnauthorized

NewProjectsUnauthorized creates a ProjectsUnauthorized with default headers values

func (*ProjectsUnauthorized) Error

func (o *ProjectsUnauthorized) Error() string

type StatsAccepted

type StatsAccepted struct {
	Payload *StatsAcceptedBody
}

StatsAccepted handles this case with default header values.

Stats Accepted to Compute

func NewStatsAccepted

func NewStatsAccepted() *StatsAccepted

NewStatsAccepted creates a StatsAccepted with default headers values

func (*StatsAccepted) Error

func (o *StatsAccepted) Error() string

type StatsAcceptedBody

type StatsAcceptedBody struct {

	// data
	Data *models.StatsPending `json:"data,omitempty"`
}

StatsAcceptedBody stats accepted body swagger:model StatsAcceptedBody

func (*StatsAcceptedBody) MarshalBinary

func (o *StatsAcceptedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatsAcceptedBody) UnmarshalBinary

func (o *StatsAcceptedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatsAcceptedBody) Validate

func (o *StatsAcceptedBody) Validate(formats strfmt.Registry) error

Validate validates this stats accepted body

type StatsNotFound

type StatsNotFound struct {
	Payload *models.Error
}

StatsNotFound handles this case with default header values.

The resource does not exist.

func NewStatsNotFound

func NewStatsNotFound() *StatsNotFound

NewStatsNotFound creates a StatsNotFound with default headers values

func (*StatsNotFound) Error

func (o *StatsNotFound) Error() string

type StatsOK

type StatsOK struct {
	Payload *StatsOKBody
}

StatsOK handles this case with default header values.

Statistical Coding Activity

func NewStatsOK

func NewStatsOK() *StatsOK

NewStatsOK creates a StatsOK with default headers values

func (*StatsOK) Error

func (o *StatsOK) Error() string

type StatsOKBody

type StatsOKBody struct {

	// data
	Data *models.Stats `json:"data,omitempty"`
}

StatsOKBody stats o k body swagger:model StatsOKBody

func (*StatsOKBody) MarshalBinary

func (o *StatsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatsOKBody) UnmarshalBinary

func (o *StatsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatsOKBody) Validate

func (o *StatsOKBody) Validate(formats strfmt.Registry) error

Validate validates this stats o k body

type StatsParams

type StatsParams struct {

	/*Range
	  Range activity

	*/
	Range string
	/*User
	  ID of the user to obtain

	*/
	User string

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

StatsParams contains all the parameters to send to the API endpoint for the stats operation typically these are written to a http.Request

func NewStatsParams

func NewStatsParams() *StatsParams

NewStatsParams creates a new StatsParams object with the default values initialized.

func NewStatsParamsWithContext

func NewStatsParamsWithContext(ctx context.Context) *StatsParams

NewStatsParamsWithContext creates a new StatsParams object with the default values initialized, and the ability to set a context for a request

func NewStatsParamsWithHTTPClient

func NewStatsParamsWithHTTPClient(client *http.Client) *StatsParams

NewStatsParamsWithHTTPClient creates a new StatsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewStatsParamsWithTimeout

func NewStatsParamsWithTimeout(timeout time.Duration) *StatsParams

NewStatsParamsWithTimeout creates a new StatsParams object with the default values initialized, and the ability to set a timeout on a request

func (*StatsParams) SetContext

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

SetContext adds the context to the stats params

func (*StatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stats params

func (*StatsParams) SetRange

func (o *StatsParams) SetRange(rangeVar string)

SetRange adds the range to the stats params

func (*StatsParams) SetTimeout

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

SetTimeout adds the timeout to the stats params

func (*StatsParams) SetUser

func (o *StatsParams) SetUser(user string)

SetUser adds the user to the stats params

func (*StatsParams) WithContext

func (o *StatsParams) WithContext(ctx context.Context) *StatsParams

WithContext adds the context to the stats params

func (*StatsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stats params

func (*StatsParams) WithRange

func (o *StatsParams) WithRange(rangeVar string) *StatsParams

WithRange adds the rangeVar to the stats params

func (*StatsParams) WithTimeout

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

WithTimeout adds the timeout to the stats params

func (*StatsParams) WithUser

func (o *StatsParams) WithUser(user string) *StatsParams

WithUser adds the user to the stats params

func (*StatsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatsReader

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

StatsReader is a Reader for the Stats structure.

func (*StatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StatsUnauthorized

type StatsUnauthorized struct {
	Payload *models.Error
}

StatsUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewStatsUnauthorized

func NewStatsUnauthorized() *StatsUnauthorized

NewStatsUnauthorized creates a StatsUnauthorized with default headers values

func (*StatsUnauthorized) Error

func (o *StatsUnauthorized) Error() string

type SummariesNotFound

type SummariesNotFound struct {
	Payload *models.Error
}

SummariesNotFound handles this case with default header values.

The resource does not exist.

func NewSummariesNotFound

func NewSummariesNotFound() *SummariesNotFound

NewSummariesNotFound creates a SummariesNotFound with default headers values

func (*SummariesNotFound) Error

func (o *SummariesNotFound) Error() string

type SummariesOK

type SummariesOK struct {
	Payload *models.Summaries
}

SummariesOK handles this case with default header values.

The request has succeeded.

func NewSummariesOK

func NewSummariesOK() *SummariesOK

NewSummariesOK creates a SummariesOK with default headers values

func (*SummariesOK) Error

func (o *SummariesOK) Error() string

type SummariesParams

type SummariesParams struct {

	/*Branches
	  Only show durations for these branches; comma separated list of branch names.

	*/
	Branches *string
	/*End
	  End date of the time range.

	*/
	End strfmt.Date
	/*Project
	  Only show durations for this project.

	*/
	Project *string
	/*Start
	  End date of the time range.

	*/
	Start strfmt.Date
	/*User
	  ID of the user to obtain

	*/
	User string

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

SummariesParams contains all the parameters to send to the API endpoint for the summaries operation typically these are written to a http.Request

func NewSummariesParams

func NewSummariesParams() *SummariesParams

NewSummariesParams creates a new SummariesParams object with the default values initialized.

func NewSummariesParamsWithContext

func NewSummariesParamsWithContext(ctx context.Context) *SummariesParams

NewSummariesParamsWithContext creates a new SummariesParams object with the default values initialized, and the ability to set a context for a request

func NewSummariesParamsWithHTTPClient

func NewSummariesParamsWithHTTPClient(client *http.Client) *SummariesParams

NewSummariesParamsWithHTTPClient creates a new SummariesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSummariesParamsWithTimeout

func NewSummariesParamsWithTimeout(timeout time.Duration) *SummariesParams

NewSummariesParamsWithTimeout creates a new SummariesParams object with the default values initialized, and the ability to set a timeout on a request

func (*SummariesParams) SetBranches

func (o *SummariesParams) SetBranches(branches *string)

SetBranches adds the branches to the summaries params

func (*SummariesParams) SetContext

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

SetContext adds the context to the summaries params

func (*SummariesParams) SetEnd

func (o *SummariesParams) SetEnd(end strfmt.Date)

SetEnd adds the end to the summaries params

func (*SummariesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the summaries params

func (*SummariesParams) SetProject

func (o *SummariesParams) SetProject(project *string)

SetProject adds the project to the summaries params

func (*SummariesParams) SetStart

func (o *SummariesParams) SetStart(start strfmt.Date)

SetStart adds the start to the summaries params

func (*SummariesParams) SetTimeout

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

SetTimeout adds the timeout to the summaries params

func (*SummariesParams) SetUser

func (o *SummariesParams) SetUser(user string)

SetUser adds the user to the summaries params

func (*SummariesParams) WithBranches

func (o *SummariesParams) WithBranches(branches *string) *SummariesParams

WithBranches adds the branches to the summaries params

func (*SummariesParams) WithContext

func (o *SummariesParams) WithContext(ctx context.Context) *SummariesParams

WithContext adds the context to the summaries params

func (*SummariesParams) WithEnd

func (o *SummariesParams) WithEnd(end strfmt.Date) *SummariesParams

WithEnd adds the end to the summaries params

func (*SummariesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the summaries params

func (*SummariesParams) WithProject

func (o *SummariesParams) WithProject(project *string) *SummariesParams

WithProject adds the project to the summaries params

func (*SummariesParams) WithStart

func (o *SummariesParams) WithStart(start strfmt.Date) *SummariesParams

WithStart adds the start to the summaries params

func (*SummariesParams) WithTimeout

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

WithTimeout adds the timeout to the summaries params

func (*SummariesParams) WithUser

func (o *SummariesParams) WithUser(user string) *SummariesParams

WithUser adds the user to the summaries params

func (*SummariesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SummariesReader

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

SummariesReader is a Reader for the Summaries structure.

func (*SummariesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SummariesUnauthorized

type SummariesUnauthorized struct {
	Payload *models.Error
}

SummariesUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewSummariesUnauthorized

func NewSummariesUnauthorized() *SummariesUnauthorized

NewSummariesUnauthorized creates a SummariesUnauthorized with default headers values

func (*SummariesUnauthorized) Error

func (o *SummariesUnauthorized) Error() string

type UserAgentsNotFound

type UserAgentsNotFound struct {
	Payload *models.Error
}

UserAgentsNotFound handles this case with default header values.

The resource does not exist.

func NewUserAgentsNotFound

func NewUserAgentsNotFound() *UserAgentsNotFound

NewUserAgentsNotFound creates a UserAgentsNotFound with default headers values

func (*UserAgentsNotFound) Error

func (o *UserAgentsNotFound) Error() string

type UserAgentsOK

type UserAgentsOK struct {
	Payload *UserAgentsOKBody
}

UserAgentsOK handles this case with default header values.

List of plugins.

func NewUserAgentsOK

func NewUserAgentsOK() *UserAgentsOK

NewUserAgentsOK creates a UserAgentsOK with default headers values

func (*UserAgentsOK) Error

func (o *UserAgentsOK) Error() string

type UserAgentsOKBody

type UserAgentsOKBody struct {

	// data
	Data []*models.UserAgents `json:"data"`
}

UserAgentsOKBody user agents o k body swagger:model UserAgentsOKBody

func (*UserAgentsOKBody) MarshalBinary

func (o *UserAgentsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserAgentsOKBody) UnmarshalBinary

func (o *UserAgentsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserAgentsOKBody) Validate

func (o *UserAgentsOKBody) Validate(formats strfmt.Registry) error

Validate validates this user agents o k body

type UserAgentsParams

type UserAgentsParams struct {

	/*User
	  ID of the user to obtain

	*/
	User string

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

UserAgentsParams contains all the parameters to send to the API endpoint for the user agents operation typically these are written to a http.Request

func NewUserAgentsParams

func NewUserAgentsParams() *UserAgentsParams

NewUserAgentsParams creates a new UserAgentsParams object with the default values initialized.

func NewUserAgentsParamsWithContext

func NewUserAgentsParamsWithContext(ctx context.Context) *UserAgentsParams

NewUserAgentsParamsWithContext creates a new UserAgentsParams object with the default values initialized, and the ability to set a context for a request

func NewUserAgentsParamsWithHTTPClient

func NewUserAgentsParamsWithHTTPClient(client *http.Client) *UserAgentsParams

NewUserAgentsParamsWithHTTPClient creates a new UserAgentsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUserAgentsParamsWithTimeout

func NewUserAgentsParamsWithTimeout(timeout time.Duration) *UserAgentsParams

NewUserAgentsParamsWithTimeout creates a new UserAgentsParams object with the default values initialized, and the ability to set a timeout on a request

func (*UserAgentsParams) SetContext

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

SetContext adds the context to the user agents params

func (*UserAgentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user agents params

func (*UserAgentsParams) SetTimeout

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

SetTimeout adds the timeout to the user agents params

func (*UserAgentsParams) SetUser

func (o *UserAgentsParams) SetUser(user string)

SetUser adds the user to the user agents params

func (*UserAgentsParams) WithContext

func (o *UserAgentsParams) WithContext(ctx context.Context) *UserAgentsParams

WithContext adds the context to the user agents params

func (*UserAgentsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user agents params

func (*UserAgentsParams) WithTimeout

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

WithTimeout adds the timeout to the user agents params

func (*UserAgentsParams) WithUser

func (o *UserAgentsParams) WithUser(user string) *UserAgentsParams

WithUser adds the user to the user agents params

func (*UserAgentsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserAgentsReader

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

UserAgentsReader is a Reader for the UserAgents structure.

func (*UserAgentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserAgentsUnauthorized

type UserAgentsUnauthorized struct {
	Payload *models.Error
}

UserAgentsUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewUserAgentsUnauthorized

func NewUserAgentsUnauthorized() *UserAgentsUnauthorized

NewUserAgentsUnauthorized creates a UserAgentsUnauthorized with default headers values

func (*UserAgentsUnauthorized) Error

func (o *UserAgentsUnauthorized) Error() string

type UserNotFound

type UserNotFound struct {
	Payload *models.Error
}

UserNotFound handles this case with default header values.

The resource does not exist.

func NewUserNotFound

func NewUserNotFound() *UserNotFound

NewUserNotFound creates a UserNotFound with default headers values

func (*UserNotFound) Error

func (o *UserNotFound) Error() string

type UserOK

type UserOK struct {
	Payload *UserOKBody
}

UserOK handles this case with default header values.

The request has succeeded.

func NewUserOK

func NewUserOK() *UserOK

NewUserOK creates a UserOK with default headers values

func (*UserOK) Error

func (o *UserOK) Error() string

type UserOKBody

type UserOKBody struct {

	// data
	Data *models.User `json:"data,omitempty"`
}

UserOKBody user o k body swagger:model UserOKBody

func (*UserOKBody) MarshalBinary

func (o *UserOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserOKBody) UnmarshalBinary

func (o *UserOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserOKBody) Validate

func (o *UserOKBody) Validate(formats strfmt.Registry) error

Validate validates this user o k body

type UserParams

type UserParams struct {

	/*User
	  ID of the user to obtain

	*/
	User string

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

UserParams contains all the parameters to send to the API endpoint for the user operation typically these are written to a http.Request

func NewUserParams

func NewUserParams() *UserParams

NewUserParams creates a new UserParams object with the default values initialized.

func NewUserParamsWithContext

func NewUserParamsWithContext(ctx context.Context) *UserParams

NewUserParamsWithContext creates a new UserParams object with the default values initialized, and the ability to set a context for a request

func NewUserParamsWithHTTPClient

func NewUserParamsWithHTTPClient(client *http.Client) *UserParams

NewUserParamsWithHTTPClient creates a new UserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUserParamsWithTimeout

func NewUserParamsWithTimeout(timeout time.Duration) *UserParams

NewUserParamsWithTimeout creates a new UserParams object with the default values initialized, and the ability to set a timeout on a request

func (*UserParams) SetContext

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

SetContext adds the context to the user params

func (*UserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user params

func (*UserParams) SetTimeout

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

SetTimeout adds the timeout to the user params

func (*UserParams) SetUser

func (o *UserParams) SetUser(user string)

SetUser adds the user to the user params

func (*UserParams) WithContext

func (o *UserParams) WithContext(ctx context.Context) *UserParams

WithContext adds the context to the user params

func (*UserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user params

func (*UserParams) WithTimeout

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

WithTimeout adds the timeout to the user params

func (*UserParams) WithUser

func (o *UserParams) WithUser(user string) *UserParams

WithUser adds the user to the user params

func (*UserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserReader

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

UserReader is a Reader for the User structure.

func (*UserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserUnauthorized

type UserUnauthorized struct {
	Payload *models.Error
}

UserUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewUserUnauthorized

func NewUserUnauthorized() *UserUnauthorized

NewUserUnauthorized creates a UserUnauthorized with default headers values

func (*UserUnauthorized) Error

func (o *UserUnauthorized) Error() string

Jump to

Keyboard shortcuts

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