Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateTimeSource(params *CreateTimeSourceParams, opts ...ClientOption) (*CreateTimeSourceCreated, error)
- func (a *Client) DeleteTimeSource(params *DeleteTimeSourceParams, opts ...ClientOption) (*DeleteTimeSourceNoContent, error)
- func (a *Client) GetTimeCounter(params *GetTimeCounterParams, opts ...ClientOption) (*GetTimeCounterOK, error)
- func (a *Client) GetTimeKeeper(params *GetTimeKeeperParams, opts ...ClientOption) (*GetTimeKeeperOK, error)
- func (a *Client) GetTimeSource(params *GetTimeSourceParams, opts ...ClientOption) (*GetTimeSourceOK, error)
- func (a *Client) ListTimeCounters(params *ListTimeCountersParams, opts ...ClientOption) (*ListTimeCountersOK, error)
- func (a *Client) ListTimeSources(params *ListTimeSourcesParams, opts ...ClientOption) (*ListTimeSourcesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateTimeSourceCreated
- type CreateTimeSourceParams
- func NewCreateTimeSourceParams() *CreateTimeSourceParams
- func NewCreateTimeSourceParamsWithContext(ctx context.Context) *CreateTimeSourceParams
- func NewCreateTimeSourceParamsWithHTTPClient(client *http.Client) *CreateTimeSourceParams
- func NewCreateTimeSourceParamsWithTimeout(timeout time.Duration) *CreateTimeSourceParams
- func (o *CreateTimeSourceParams) SetContext(ctx context.Context)
- func (o *CreateTimeSourceParams) SetDefaults()
- func (o *CreateTimeSourceParams) SetHTTPClient(client *http.Client)
- func (o *CreateTimeSourceParams) SetTimeout(timeout time.Duration)
- func (o *CreateTimeSourceParams) SetTimesource(timesource *models.TimeSource)
- func (o *CreateTimeSourceParams) WithContext(ctx context.Context) *CreateTimeSourceParams
- func (o *CreateTimeSourceParams) WithDefaults() *CreateTimeSourceParams
- func (o *CreateTimeSourceParams) WithHTTPClient(client *http.Client) *CreateTimeSourceParams
- func (o *CreateTimeSourceParams) WithTimeout(timeout time.Duration) *CreateTimeSourceParams
- func (o *CreateTimeSourceParams) WithTimesource(timesource *models.TimeSource) *CreateTimeSourceParams
- func (o *CreateTimeSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTimeSourceReader
- type DeleteTimeSourceNoContent
- type DeleteTimeSourceParams
- func NewDeleteTimeSourceParams() *DeleteTimeSourceParams
- func NewDeleteTimeSourceParamsWithContext(ctx context.Context) *DeleteTimeSourceParams
- func NewDeleteTimeSourceParamsWithHTTPClient(client *http.Client) *DeleteTimeSourceParams
- func NewDeleteTimeSourceParamsWithTimeout(timeout time.Duration) *DeleteTimeSourceParams
- func (o *DeleteTimeSourceParams) SetContext(ctx context.Context)
- func (o *DeleteTimeSourceParams) SetDefaults()
- func (o *DeleteTimeSourceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTimeSourceParams) SetID(id string)
- func (o *DeleteTimeSourceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTimeSourceParams) WithContext(ctx context.Context) *DeleteTimeSourceParams
- func (o *DeleteTimeSourceParams) WithDefaults() *DeleteTimeSourceParams
- func (o *DeleteTimeSourceParams) WithHTTPClient(client *http.Client) *DeleteTimeSourceParams
- func (o *DeleteTimeSourceParams) WithID(id string) *DeleteTimeSourceParams
- func (o *DeleteTimeSourceParams) WithTimeout(timeout time.Duration) *DeleteTimeSourceParams
- func (o *DeleteTimeSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTimeSourceReader
- type GetTimeCounterOK
- type GetTimeCounterParams
- func NewGetTimeCounterParams() *GetTimeCounterParams
- func NewGetTimeCounterParamsWithContext(ctx context.Context) *GetTimeCounterParams
- func NewGetTimeCounterParamsWithHTTPClient(client *http.Client) *GetTimeCounterParams
- func NewGetTimeCounterParamsWithTimeout(timeout time.Duration) *GetTimeCounterParams
- func (o *GetTimeCounterParams) SetContext(ctx context.Context)
- func (o *GetTimeCounterParams) SetDefaults()
- func (o *GetTimeCounterParams) SetHTTPClient(client *http.Client)
- func (o *GetTimeCounterParams) SetID(id string)
- func (o *GetTimeCounterParams) SetTimeout(timeout time.Duration)
- func (o *GetTimeCounterParams) WithContext(ctx context.Context) *GetTimeCounterParams
- func (o *GetTimeCounterParams) WithDefaults() *GetTimeCounterParams
- func (o *GetTimeCounterParams) WithHTTPClient(client *http.Client) *GetTimeCounterParams
- func (o *GetTimeCounterParams) WithID(id string) *GetTimeCounterParams
- func (o *GetTimeCounterParams) WithTimeout(timeout time.Duration) *GetTimeCounterParams
- func (o *GetTimeCounterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTimeCounterReader
- type GetTimeKeeperOK
- type GetTimeKeeperParams
- func (o *GetTimeKeeperParams) SetContext(ctx context.Context)
- func (o *GetTimeKeeperParams) SetDefaults()
- func (o *GetTimeKeeperParams) SetHTTPClient(client *http.Client)
- func (o *GetTimeKeeperParams) SetTimeout(timeout time.Duration)
- func (o *GetTimeKeeperParams) WithContext(ctx context.Context) *GetTimeKeeperParams
- func (o *GetTimeKeeperParams) WithDefaults() *GetTimeKeeperParams
- func (o *GetTimeKeeperParams) WithHTTPClient(client *http.Client) *GetTimeKeeperParams
- func (o *GetTimeKeeperParams) WithTimeout(timeout time.Duration) *GetTimeKeeperParams
- func (o *GetTimeKeeperParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTimeKeeperReader
- type GetTimeSourceOK
- type GetTimeSourceParams
- func (o *GetTimeSourceParams) SetContext(ctx context.Context)
- func (o *GetTimeSourceParams) SetDefaults()
- func (o *GetTimeSourceParams) SetHTTPClient(client *http.Client)
- func (o *GetTimeSourceParams) SetID(id string)
- func (o *GetTimeSourceParams) SetTimeout(timeout time.Duration)
- func (o *GetTimeSourceParams) WithContext(ctx context.Context) *GetTimeSourceParams
- func (o *GetTimeSourceParams) WithDefaults() *GetTimeSourceParams
- func (o *GetTimeSourceParams) WithHTTPClient(client *http.Client) *GetTimeSourceParams
- func (o *GetTimeSourceParams) WithID(id string) *GetTimeSourceParams
- func (o *GetTimeSourceParams) WithTimeout(timeout time.Duration) *GetTimeSourceParams
- func (o *GetTimeSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTimeSourceReader
- type ListTimeCountersOK
- type ListTimeCountersParams
- func NewListTimeCountersParams() *ListTimeCountersParams
- func NewListTimeCountersParamsWithContext(ctx context.Context) *ListTimeCountersParams
- func NewListTimeCountersParamsWithHTTPClient(client *http.Client) *ListTimeCountersParams
- func NewListTimeCountersParamsWithTimeout(timeout time.Duration) *ListTimeCountersParams
- func (o *ListTimeCountersParams) SetContext(ctx context.Context)
- func (o *ListTimeCountersParams) SetDefaults()
- func (o *ListTimeCountersParams) SetHTTPClient(client *http.Client)
- func (o *ListTimeCountersParams) SetTimeout(timeout time.Duration)
- func (o *ListTimeCountersParams) WithContext(ctx context.Context) *ListTimeCountersParams
- func (o *ListTimeCountersParams) WithDefaults() *ListTimeCountersParams
- func (o *ListTimeCountersParams) WithHTTPClient(client *http.Client) *ListTimeCountersParams
- func (o *ListTimeCountersParams) WithTimeout(timeout time.Duration) *ListTimeCountersParams
- func (o *ListTimeCountersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTimeCountersReader
- type ListTimeSourcesOK
- type ListTimeSourcesParams
- func NewListTimeSourcesParams() *ListTimeSourcesParams
- func NewListTimeSourcesParamsWithContext(ctx context.Context) *ListTimeSourcesParams
- func NewListTimeSourcesParamsWithHTTPClient(client *http.Client) *ListTimeSourcesParams
- func NewListTimeSourcesParamsWithTimeout(timeout time.Duration) *ListTimeSourcesParams
- func (o *ListTimeSourcesParams) SetContext(ctx context.Context)
- func (o *ListTimeSourcesParams) SetDefaults()
- func (o *ListTimeSourcesParams) SetHTTPClient(client *http.Client)
- func (o *ListTimeSourcesParams) SetTimeout(timeout time.Duration)
- func (o *ListTimeSourcesParams) WithContext(ctx context.Context) *ListTimeSourcesParams
- func (o *ListTimeSourcesParams) WithDefaults() *ListTimeSourcesParams
- func (o *ListTimeSourcesParams) WithHTTPClient(client *http.Client) *ListTimeSourcesParams
- func (o *ListTimeSourcesParams) WithTimeout(timeout time.Duration) *ListTimeSourcesParams
- func (o *ListTimeSourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTimeSourcesReader
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 time sync API
func (*Client) CreateTimeSource ¶
func (a *Client) CreateTimeSource(params *CreateTimeSourceParams, opts ...ClientOption) (*CreateTimeSourceCreated, error)
CreateTimeSource registers a time source for time syncing Registers a new time source for time syncing. Time sources are
immutable.
func (*Client) DeleteTimeSource ¶
func (a *Client) DeleteTimeSource(params *DeleteTimeSourceParams, opts ...ClientOption) (*DeleteTimeSourceNoContent, error)
DeleteTimeSource deletes a time source
Deletes an existing time source. Idempotent.
func (*Client) GetTimeCounter ¶
func (a *Client) GetTimeCounter(params *GetTimeCounterParams, opts ...ClientOption) (*GetTimeCounterOK, error)
GetTimeCounter gets a time counter
Returns a time counter, by id.
func (*Client) GetTimeKeeper ¶
func (a *Client) GetTimeKeeper(params *GetTimeKeeperParams, opts ...ClientOption) (*GetTimeKeeperOK, error)
GetTimeKeeper gets a time keeper
Returns the system time keeper, aka clock.
func (*Client) GetTimeSource ¶
func (a *Client) GetTimeSource(params *GetTimeSourceParams, opts ...ClientOption) (*GetTimeSourceOK, error)
GetTimeSource gets a time source
Get a time source, by id.
func (*Client) ListTimeCounters ¶
func (a *Client) ListTimeCounters(params *ListTimeCountersParams, opts ...ClientOption) (*ListTimeCountersOK, error)
ListTimeCounters lists time counters The `time-counters` endpoint returns all local time counters
that are available for measuring the passage of time. This list is for informational purposes only.
func (*Client) ListTimeSources ¶
func (a *Client) ListTimeSources(params *ListTimeSourcesParams, opts ...ClientOption) (*ListTimeSourcesOK, error)
ListTimeSources lists reference clocks The `time-sources` endpoint returns all time sources
that are used for syncing the local time.
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 { CreateTimeSource(params *CreateTimeSourceParams, opts ...ClientOption) (*CreateTimeSourceCreated, error) DeleteTimeSource(params *DeleteTimeSourceParams, opts ...ClientOption) (*DeleteTimeSourceNoContent, error) GetTimeCounter(params *GetTimeCounterParams, opts ...ClientOption) (*GetTimeCounterOK, error) GetTimeKeeper(params *GetTimeKeeperParams, opts ...ClientOption) (*GetTimeKeeperOK, error) GetTimeSource(params *GetTimeSourceParams, opts ...ClientOption) (*GetTimeSourceOK, error) ListTimeCounters(params *ListTimeCountersParams, opts ...ClientOption) (*ListTimeCountersOK, error) ListTimeSources(params *ListTimeSourcesParams, opts ...ClientOption) (*ListTimeSourcesOK, 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 time sync API client.
type CreateTimeSourceCreated ¶
type CreateTimeSourceCreated struct {
Payload *models.TimeSource
}
CreateTimeSourceCreated describes a response with status code 201, with default header values.
Success
func NewCreateTimeSourceCreated ¶
func NewCreateTimeSourceCreated() *CreateTimeSourceCreated
NewCreateTimeSourceCreated creates a CreateTimeSourceCreated with default headers values
func (*CreateTimeSourceCreated) Error ¶
func (o *CreateTimeSourceCreated) Error() string
func (*CreateTimeSourceCreated) GetPayload ¶
func (o *CreateTimeSourceCreated) GetPayload() *models.TimeSource
type CreateTimeSourceParams ¶
type CreateTimeSourceParams struct { /* Timesource. New time source */ Timesource *models.TimeSource Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateTimeSourceParams contains all the parameters to send to the API endpoint
for the create time source operation. Typically these are written to a http.Request.
func NewCreateTimeSourceParams ¶
func NewCreateTimeSourceParams() *CreateTimeSourceParams
NewCreateTimeSourceParams creates a new CreateTimeSourceParams 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 NewCreateTimeSourceParamsWithContext ¶
func NewCreateTimeSourceParamsWithContext(ctx context.Context) *CreateTimeSourceParams
NewCreateTimeSourceParamsWithContext creates a new CreateTimeSourceParams object with the ability to set a context for a request.
func NewCreateTimeSourceParamsWithHTTPClient ¶
func NewCreateTimeSourceParamsWithHTTPClient(client *http.Client) *CreateTimeSourceParams
NewCreateTimeSourceParamsWithHTTPClient creates a new CreateTimeSourceParams object with the ability to set a custom HTTPClient for a request.
func NewCreateTimeSourceParamsWithTimeout ¶
func NewCreateTimeSourceParamsWithTimeout(timeout time.Duration) *CreateTimeSourceParams
NewCreateTimeSourceParamsWithTimeout creates a new CreateTimeSourceParams object with the ability to set a timeout on a request.
func (*CreateTimeSourceParams) SetContext ¶
func (o *CreateTimeSourceParams) SetContext(ctx context.Context)
SetContext adds the context to the create time source params
func (*CreateTimeSourceParams) SetDefaults ¶
func (o *CreateTimeSourceParams) SetDefaults()
SetDefaults hydrates default values in the create time source params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTimeSourceParams) SetHTTPClient ¶
func (o *CreateTimeSourceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create time source params
func (*CreateTimeSourceParams) SetTimeout ¶
func (o *CreateTimeSourceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create time source params
func (*CreateTimeSourceParams) SetTimesource ¶
func (o *CreateTimeSourceParams) SetTimesource(timesource *models.TimeSource)
SetTimesource adds the timesource to the create time source params
func (*CreateTimeSourceParams) WithContext ¶
func (o *CreateTimeSourceParams) WithContext(ctx context.Context) *CreateTimeSourceParams
WithContext adds the context to the create time source params
func (*CreateTimeSourceParams) WithDefaults ¶
func (o *CreateTimeSourceParams) WithDefaults() *CreateTimeSourceParams
WithDefaults hydrates default values in the create time source params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTimeSourceParams) WithHTTPClient ¶
func (o *CreateTimeSourceParams) WithHTTPClient(client *http.Client) *CreateTimeSourceParams
WithHTTPClient adds the HTTPClient to the create time source params
func (*CreateTimeSourceParams) WithTimeout ¶
func (o *CreateTimeSourceParams) WithTimeout(timeout time.Duration) *CreateTimeSourceParams
WithTimeout adds the timeout to the create time source params
func (*CreateTimeSourceParams) WithTimesource ¶
func (o *CreateTimeSourceParams) WithTimesource(timesource *models.TimeSource) *CreateTimeSourceParams
WithTimesource adds the timesource to the create time source params
func (*CreateTimeSourceParams) WriteToRequest ¶
func (o *CreateTimeSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateTimeSourceReader ¶
type CreateTimeSourceReader struct {
// contains filtered or unexported fields
}
CreateTimeSourceReader is a Reader for the CreateTimeSource structure.
func (*CreateTimeSourceReader) ReadResponse ¶
func (o *CreateTimeSourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteTimeSourceNoContent ¶
type DeleteTimeSourceNoContent struct { }
DeleteTimeSourceNoContent describes a response with status code 204, with default header values.
No Content
func NewDeleteTimeSourceNoContent ¶
func NewDeleteTimeSourceNoContent() *DeleteTimeSourceNoContent
NewDeleteTimeSourceNoContent creates a DeleteTimeSourceNoContent with default headers values
func (*DeleteTimeSourceNoContent) Error ¶
func (o *DeleteTimeSourceNoContent) Error() string
type DeleteTimeSourceParams ¶
type DeleteTimeSourceParams struct { /* ID. Unique resource identifier Format: string */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteTimeSourceParams contains all the parameters to send to the API endpoint
for the delete time source operation. Typically these are written to a http.Request.
func NewDeleteTimeSourceParams ¶
func NewDeleteTimeSourceParams() *DeleteTimeSourceParams
NewDeleteTimeSourceParams creates a new DeleteTimeSourceParams 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 NewDeleteTimeSourceParamsWithContext ¶
func NewDeleteTimeSourceParamsWithContext(ctx context.Context) *DeleteTimeSourceParams
NewDeleteTimeSourceParamsWithContext creates a new DeleteTimeSourceParams object with the ability to set a context for a request.
func NewDeleteTimeSourceParamsWithHTTPClient ¶
func NewDeleteTimeSourceParamsWithHTTPClient(client *http.Client) *DeleteTimeSourceParams
NewDeleteTimeSourceParamsWithHTTPClient creates a new DeleteTimeSourceParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteTimeSourceParamsWithTimeout ¶
func NewDeleteTimeSourceParamsWithTimeout(timeout time.Duration) *DeleteTimeSourceParams
NewDeleteTimeSourceParamsWithTimeout creates a new DeleteTimeSourceParams object with the ability to set a timeout on a request.
func (*DeleteTimeSourceParams) SetContext ¶
func (o *DeleteTimeSourceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete time source params
func (*DeleteTimeSourceParams) SetDefaults ¶
func (o *DeleteTimeSourceParams) SetDefaults()
SetDefaults hydrates default values in the delete time source params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTimeSourceParams) SetHTTPClient ¶
func (o *DeleteTimeSourceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete time source params
func (*DeleteTimeSourceParams) SetID ¶
func (o *DeleteTimeSourceParams) SetID(id string)
SetID adds the id to the delete time source params
func (*DeleteTimeSourceParams) SetTimeout ¶
func (o *DeleteTimeSourceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete time source params
func (*DeleteTimeSourceParams) WithContext ¶
func (o *DeleteTimeSourceParams) WithContext(ctx context.Context) *DeleteTimeSourceParams
WithContext adds the context to the delete time source params
func (*DeleteTimeSourceParams) WithDefaults ¶
func (o *DeleteTimeSourceParams) WithDefaults() *DeleteTimeSourceParams
WithDefaults hydrates default values in the delete time source params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTimeSourceParams) WithHTTPClient ¶
func (o *DeleteTimeSourceParams) WithHTTPClient(client *http.Client) *DeleteTimeSourceParams
WithHTTPClient adds the HTTPClient to the delete time source params
func (*DeleteTimeSourceParams) WithID ¶
func (o *DeleteTimeSourceParams) WithID(id string) *DeleteTimeSourceParams
WithID adds the id to the delete time source params
func (*DeleteTimeSourceParams) WithTimeout ¶
func (o *DeleteTimeSourceParams) WithTimeout(timeout time.Duration) *DeleteTimeSourceParams
WithTimeout adds the timeout to the delete time source params
func (*DeleteTimeSourceParams) WriteToRequest ¶
func (o *DeleteTimeSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteTimeSourceReader ¶
type DeleteTimeSourceReader struct {
// contains filtered or unexported fields
}
DeleteTimeSourceReader is a Reader for the DeleteTimeSource structure.
func (*DeleteTimeSourceReader) ReadResponse ¶
func (o *DeleteTimeSourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTimeCounterOK ¶
type GetTimeCounterOK struct {
Payload *models.TimeCounter
}
GetTimeCounterOK describes a response with status code 200, with default header values.
Success
func NewGetTimeCounterOK ¶
func NewGetTimeCounterOK() *GetTimeCounterOK
NewGetTimeCounterOK creates a GetTimeCounterOK with default headers values
func (*GetTimeCounterOK) Error ¶
func (o *GetTimeCounterOK) Error() string
func (*GetTimeCounterOK) GetPayload ¶
func (o *GetTimeCounterOK) GetPayload() *models.TimeCounter
type GetTimeCounterParams ¶
type GetTimeCounterParams struct { /* ID. Unique resource identifier Format: string */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTimeCounterParams contains all the parameters to send to the API endpoint
for the get time counter operation. Typically these are written to a http.Request.
func NewGetTimeCounterParams ¶
func NewGetTimeCounterParams() *GetTimeCounterParams
NewGetTimeCounterParams creates a new GetTimeCounterParams 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 NewGetTimeCounterParamsWithContext ¶
func NewGetTimeCounterParamsWithContext(ctx context.Context) *GetTimeCounterParams
NewGetTimeCounterParamsWithContext creates a new GetTimeCounterParams object with the ability to set a context for a request.
func NewGetTimeCounterParamsWithHTTPClient ¶
func NewGetTimeCounterParamsWithHTTPClient(client *http.Client) *GetTimeCounterParams
NewGetTimeCounterParamsWithHTTPClient creates a new GetTimeCounterParams object with the ability to set a custom HTTPClient for a request.
func NewGetTimeCounterParamsWithTimeout ¶
func NewGetTimeCounterParamsWithTimeout(timeout time.Duration) *GetTimeCounterParams
NewGetTimeCounterParamsWithTimeout creates a new GetTimeCounterParams object with the ability to set a timeout on a request.
func (*GetTimeCounterParams) SetContext ¶
func (o *GetTimeCounterParams) SetContext(ctx context.Context)
SetContext adds the context to the get time counter params
func (*GetTimeCounterParams) SetDefaults ¶
func (o *GetTimeCounterParams) SetDefaults()
SetDefaults hydrates default values in the get time counter params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimeCounterParams) SetHTTPClient ¶
func (o *GetTimeCounterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get time counter params
func (*GetTimeCounterParams) SetID ¶
func (o *GetTimeCounterParams) SetID(id string)
SetID adds the id to the get time counter params
func (*GetTimeCounterParams) SetTimeout ¶
func (o *GetTimeCounterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get time counter params
func (*GetTimeCounterParams) WithContext ¶
func (o *GetTimeCounterParams) WithContext(ctx context.Context) *GetTimeCounterParams
WithContext adds the context to the get time counter params
func (*GetTimeCounterParams) WithDefaults ¶
func (o *GetTimeCounterParams) WithDefaults() *GetTimeCounterParams
WithDefaults hydrates default values in the get time counter params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimeCounterParams) WithHTTPClient ¶
func (o *GetTimeCounterParams) WithHTTPClient(client *http.Client) *GetTimeCounterParams
WithHTTPClient adds the HTTPClient to the get time counter params
func (*GetTimeCounterParams) WithID ¶
func (o *GetTimeCounterParams) WithID(id string) *GetTimeCounterParams
WithID adds the id to the get time counter params
func (*GetTimeCounterParams) WithTimeout ¶
func (o *GetTimeCounterParams) WithTimeout(timeout time.Duration) *GetTimeCounterParams
WithTimeout adds the timeout to the get time counter params
func (*GetTimeCounterParams) WriteToRequest ¶
func (o *GetTimeCounterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTimeCounterReader ¶
type GetTimeCounterReader struct {
// contains filtered or unexported fields
}
GetTimeCounterReader is a Reader for the GetTimeCounter structure.
func (*GetTimeCounterReader) ReadResponse ¶
func (o *GetTimeCounterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTimeKeeperOK ¶
type GetTimeKeeperOK struct {
Payload *models.TimeKeeper
}
GetTimeKeeperOK describes a response with status code 200, with default header values.
Success
func NewGetTimeKeeperOK ¶
func NewGetTimeKeeperOK() *GetTimeKeeperOK
NewGetTimeKeeperOK creates a GetTimeKeeperOK with default headers values
func (*GetTimeKeeperOK) Error ¶
func (o *GetTimeKeeperOK) Error() string
func (*GetTimeKeeperOK) GetPayload ¶
func (o *GetTimeKeeperOK) GetPayload() *models.TimeKeeper
type GetTimeKeeperParams ¶
type GetTimeKeeperParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTimeKeeperParams contains all the parameters to send to the API endpoint
for the get time keeper operation. Typically these are written to a http.Request.
func NewGetTimeKeeperParams ¶
func NewGetTimeKeeperParams() *GetTimeKeeperParams
NewGetTimeKeeperParams creates a new GetTimeKeeperParams 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 NewGetTimeKeeperParamsWithContext ¶
func NewGetTimeKeeperParamsWithContext(ctx context.Context) *GetTimeKeeperParams
NewGetTimeKeeperParamsWithContext creates a new GetTimeKeeperParams object with the ability to set a context for a request.
func NewGetTimeKeeperParamsWithHTTPClient ¶
func NewGetTimeKeeperParamsWithHTTPClient(client *http.Client) *GetTimeKeeperParams
NewGetTimeKeeperParamsWithHTTPClient creates a new GetTimeKeeperParams object with the ability to set a custom HTTPClient for a request.
func NewGetTimeKeeperParamsWithTimeout ¶
func NewGetTimeKeeperParamsWithTimeout(timeout time.Duration) *GetTimeKeeperParams
NewGetTimeKeeperParamsWithTimeout creates a new GetTimeKeeperParams object with the ability to set a timeout on a request.
func (*GetTimeKeeperParams) SetContext ¶
func (o *GetTimeKeeperParams) SetContext(ctx context.Context)
SetContext adds the context to the get time keeper params
func (*GetTimeKeeperParams) SetDefaults ¶
func (o *GetTimeKeeperParams) SetDefaults()
SetDefaults hydrates default values in the get time keeper params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimeKeeperParams) SetHTTPClient ¶
func (o *GetTimeKeeperParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get time keeper params
func (*GetTimeKeeperParams) SetTimeout ¶
func (o *GetTimeKeeperParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get time keeper params
func (*GetTimeKeeperParams) WithContext ¶
func (o *GetTimeKeeperParams) WithContext(ctx context.Context) *GetTimeKeeperParams
WithContext adds the context to the get time keeper params
func (*GetTimeKeeperParams) WithDefaults ¶
func (o *GetTimeKeeperParams) WithDefaults() *GetTimeKeeperParams
WithDefaults hydrates default values in the get time keeper params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimeKeeperParams) WithHTTPClient ¶
func (o *GetTimeKeeperParams) WithHTTPClient(client *http.Client) *GetTimeKeeperParams
WithHTTPClient adds the HTTPClient to the get time keeper params
func (*GetTimeKeeperParams) WithTimeout ¶
func (o *GetTimeKeeperParams) WithTimeout(timeout time.Duration) *GetTimeKeeperParams
WithTimeout adds the timeout to the get time keeper params
func (*GetTimeKeeperParams) WriteToRequest ¶
func (o *GetTimeKeeperParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTimeKeeperReader ¶
type GetTimeKeeperReader struct {
// contains filtered or unexported fields
}
GetTimeKeeperReader is a Reader for the GetTimeKeeper structure.
func (*GetTimeKeeperReader) ReadResponse ¶
func (o *GetTimeKeeperReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTimeSourceOK ¶
type GetTimeSourceOK struct {
Payload *models.TimeSource
}
GetTimeSourceOK describes a response with status code 200, with default header values.
Success
func NewGetTimeSourceOK ¶
func NewGetTimeSourceOK() *GetTimeSourceOK
NewGetTimeSourceOK creates a GetTimeSourceOK with default headers values
func (*GetTimeSourceOK) Error ¶
func (o *GetTimeSourceOK) Error() string
func (*GetTimeSourceOK) GetPayload ¶
func (o *GetTimeSourceOK) GetPayload() *models.TimeSource
type GetTimeSourceParams ¶
type GetTimeSourceParams struct { /* ID. Unique resource identifier Format: string */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTimeSourceParams contains all the parameters to send to the API endpoint
for the get time source operation. Typically these are written to a http.Request.
func NewGetTimeSourceParams ¶
func NewGetTimeSourceParams() *GetTimeSourceParams
NewGetTimeSourceParams creates a new GetTimeSourceParams 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 NewGetTimeSourceParamsWithContext ¶
func NewGetTimeSourceParamsWithContext(ctx context.Context) *GetTimeSourceParams
NewGetTimeSourceParamsWithContext creates a new GetTimeSourceParams object with the ability to set a context for a request.
func NewGetTimeSourceParamsWithHTTPClient ¶
func NewGetTimeSourceParamsWithHTTPClient(client *http.Client) *GetTimeSourceParams
NewGetTimeSourceParamsWithHTTPClient creates a new GetTimeSourceParams object with the ability to set a custom HTTPClient for a request.
func NewGetTimeSourceParamsWithTimeout ¶
func NewGetTimeSourceParamsWithTimeout(timeout time.Duration) *GetTimeSourceParams
NewGetTimeSourceParamsWithTimeout creates a new GetTimeSourceParams object with the ability to set a timeout on a request.
func (*GetTimeSourceParams) SetContext ¶
func (o *GetTimeSourceParams) SetContext(ctx context.Context)
SetContext adds the context to the get time source params
func (*GetTimeSourceParams) SetDefaults ¶
func (o *GetTimeSourceParams) SetDefaults()
SetDefaults hydrates default values in the get time source params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimeSourceParams) SetHTTPClient ¶
func (o *GetTimeSourceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get time source params
func (*GetTimeSourceParams) SetID ¶
func (o *GetTimeSourceParams) SetID(id string)
SetID adds the id to the get time source params
func (*GetTimeSourceParams) SetTimeout ¶
func (o *GetTimeSourceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get time source params
func (*GetTimeSourceParams) WithContext ¶
func (o *GetTimeSourceParams) WithContext(ctx context.Context) *GetTimeSourceParams
WithContext adds the context to the get time source params
func (*GetTimeSourceParams) WithDefaults ¶
func (o *GetTimeSourceParams) WithDefaults() *GetTimeSourceParams
WithDefaults hydrates default values in the get time source params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimeSourceParams) WithHTTPClient ¶
func (o *GetTimeSourceParams) WithHTTPClient(client *http.Client) *GetTimeSourceParams
WithHTTPClient adds the HTTPClient to the get time source params
func (*GetTimeSourceParams) WithID ¶
func (o *GetTimeSourceParams) WithID(id string) *GetTimeSourceParams
WithID adds the id to the get time source params
func (*GetTimeSourceParams) WithTimeout ¶
func (o *GetTimeSourceParams) WithTimeout(timeout time.Duration) *GetTimeSourceParams
WithTimeout adds the timeout to the get time source params
func (*GetTimeSourceParams) WriteToRequest ¶
func (o *GetTimeSourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTimeSourceReader ¶
type GetTimeSourceReader struct {
// contains filtered or unexported fields
}
GetTimeSourceReader is a Reader for the GetTimeSource structure.
func (*GetTimeSourceReader) ReadResponse ¶
func (o *GetTimeSourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTimeCountersOK ¶
type ListTimeCountersOK struct {
Payload []*models.TimeCounter
}
ListTimeCountersOK describes a response with status code 200, with default header values.
Success
func NewListTimeCountersOK ¶
func NewListTimeCountersOK() *ListTimeCountersOK
NewListTimeCountersOK creates a ListTimeCountersOK with default headers values
func (*ListTimeCountersOK) Error ¶
func (o *ListTimeCountersOK) Error() string
func (*ListTimeCountersOK) GetPayload ¶
func (o *ListTimeCountersOK) GetPayload() []*models.TimeCounter
type ListTimeCountersParams ¶
type ListTimeCountersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTimeCountersParams contains all the parameters to send to the API endpoint
for the list time counters operation. Typically these are written to a http.Request.
func NewListTimeCountersParams ¶
func NewListTimeCountersParams() *ListTimeCountersParams
NewListTimeCountersParams creates a new ListTimeCountersParams 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 NewListTimeCountersParamsWithContext ¶
func NewListTimeCountersParamsWithContext(ctx context.Context) *ListTimeCountersParams
NewListTimeCountersParamsWithContext creates a new ListTimeCountersParams object with the ability to set a context for a request.
func NewListTimeCountersParamsWithHTTPClient ¶
func NewListTimeCountersParamsWithHTTPClient(client *http.Client) *ListTimeCountersParams
NewListTimeCountersParamsWithHTTPClient creates a new ListTimeCountersParams object with the ability to set a custom HTTPClient for a request.
func NewListTimeCountersParamsWithTimeout ¶
func NewListTimeCountersParamsWithTimeout(timeout time.Duration) *ListTimeCountersParams
NewListTimeCountersParamsWithTimeout creates a new ListTimeCountersParams object with the ability to set a timeout on a request.
func (*ListTimeCountersParams) SetContext ¶
func (o *ListTimeCountersParams) SetContext(ctx context.Context)
SetContext adds the context to the list time counters params
func (*ListTimeCountersParams) SetDefaults ¶
func (o *ListTimeCountersParams) SetDefaults()
SetDefaults hydrates default values in the list time counters params (not the query body).
All values with no default are reset to their zero value.
func (*ListTimeCountersParams) SetHTTPClient ¶
func (o *ListTimeCountersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list time counters params
func (*ListTimeCountersParams) SetTimeout ¶
func (o *ListTimeCountersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list time counters params
func (*ListTimeCountersParams) WithContext ¶
func (o *ListTimeCountersParams) WithContext(ctx context.Context) *ListTimeCountersParams
WithContext adds the context to the list time counters params
func (*ListTimeCountersParams) WithDefaults ¶
func (o *ListTimeCountersParams) WithDefaults() *ListTimeCountersParams
WithDefaults hydrates default values in the list time counters params (not the query body).
All values with no default are reset to their zero value.
func (*ListTimeCountersParams) WithHTTPClient ¶
func (o *ListTimeCountersParams) WithHTTPClient(client *http.Client) *ListTimeCountersParams
WithHTTPClient adds the HTTPClient to the list time counters params
func (*ListTimeCountersParams) WithTimeout ¶
func (o *ListTimeCountersParams) WithTimeout(timeout time.Duration) *ListTimeCountersParams
WithTimeout adds the timeout to the list time counters params
func (*ListTimeCountersParams) WriteToRequest ¶
func (o *ListTimeCountersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTimeCountersReader ¶
type ListTimeCountersReader struct {
// contains filtered or unexported fields
}
ListTimeCountersReader is a Reader for the ListTimeCounters structure.
func (*ListTimeCountersReader) ReadResponse ¶
func (o *ListTimeCountersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTimeSourcesOK ¶
type ListTimeSourcesOK struct {
Payload []*models.TimeSource
}
ListTimeSourcesOK describes a response with status code 200, with default header values.
Success
func NewListTimeSourcesOK ¶
func NewListTimeSourcesOK() *ListTimeSourcesOK
NewListTimeSourcesOK creates a ListTimeSourcesOK with default headers values
func (*ListTimeSourcesOK) Error ¶
func (o *ListTimeSourcesOK) Error() string
func (*ListTimeSourcesOK) GetPayload ¶
func (o *ListTimeSourcesOK) GetPayload() []*models.TimeSource
type ListTimeSourcesParams ¶
type ListTimeSourcesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTimeSourcesParams contains all the parameters to send to the API endpoint
for the list time sources operation. Typically these are written to a http.Request.
func NewListTimeSourcesParams ¶
func NewListTimeSourcesParams() *ListTimeSourcesParams
NewListTimeSourcesParams creates a new ListTimeSourcesParams 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 NewListTimeSourcesParamsWithContext ¶
func NewListTimeSourcesParamsWithContext(ctx context.Context) *ListTimeSourcesParams
NewListTimeSourcesParamsWithContext creates a new ListTimeSourcesParams object with the ability to set a context for a request.
func NewListTimeSourcesParamsWithHTTPClient ¶
func NewListTimeSourcesParamsWithHTTPClient(client *http.Client) *ListTimeSourcesParams
NewListTimeSourcesParamsWithHTTPClient creates a new ListTimeSourcesParams object with the ability to set a custom HTTPClient for a request.
func NewListTimeSourcesParamsWithTimeout ¶
func NewListTimeSourcesParamsWithTimeout(timeout time.Duration) *ListTimeSourcesParams
NewListTimeSourcesParamsWithTimeout creates a new ListTimeSourcesParams object with the ability to set a timeout on a request.
func (*ListTimeSourcesParams) SetContext ¶
func (o *ListTimeSourcesParams) SetContext(ctx context.Context)
SetContext adds the context to the list time sources params
func (*ListTimeSourcesParams) SetDefaults ¶
func (o *ListTimeSourcesParams) SetDefaults()
SetDefaults hydrates default values in the list time sources params (not the query body).
All values with no default are reset to their zero value.
func (*ListTimeSourcesParams) SetHTTPClient ¶
func (o *ListTimeSourcesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list time sources params
func (*ListTimeSourcesParams) SetTimeout ¶
func (o *ListTimeSourcesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list time sources params
func (*ListTimeSourcesParams) WithContext ¶
func (o *ListTimeSourcesParams) WithContext(ctx context.Context) *ListTimeSourcesParams
WithContext adds the context to the list time sources params
func (*ListTimeSourcesParams) WithDefaults ¶
func (o *ListTimeSourcesParams) WithDefaults() *ListTimeSourcesParams
WithDefaults hydrates default values in the list time sources params (not the query body).
All values with no default are reset to their zero value.
func (*ListTimeSourcesParams) WithHTTPClient ¶
func (o *ListTimeSourcesParams) WithHTTPClient(client *http.Client) *ListTimeSourcesParams
WithHTTPClient adds the HTTPClient to the list time sources params
func (*ListTimeSourcesParams) WithTimeout ¶
func (o *ListTimeSourcesParams) WithTimeout(timeout time.Duration) *ListTimeSourcesParams
WithTimeout adds the timeout to the list time sources params
func (*ListTimeSourcesParams) WriteToRequest ¶
func (o *ListTimeSourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTimeSourcesReader ¶
type ListTimeSourcesReader struct {
// contains filtered or unexported fields
}
ListTimeSourcesReader is a Reader for the ListTimeSources structure.
func (*ListTimeSourcesReader) ReadResponse ¶
func (o *ListTimeSourcesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_time_source_parameters.go
- create_time_source_responses.go
- delete_time_source_parameters.go
- delete_time_source_responses.go
- get_time_counter_parameters.go
- get_time_counter_responses.go
- get_time_keeper_parameters.go
- get_time_keeper_responses.go
- get_time_source_parameters.go
- get_time_source_responses.go
- list_time_counters_parameters.go
- list_time_counters_responses.go
- list_time_sources_parameters.go
- list_time_sources_responses.go
- time_sync_client.go