ntp

package
v2.19.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for ntp API

func (*Client) GetNtpServiceURL

func (a *Client) GetNtpServiceURL(params *GetNtpServiceURLParams, opts ...ClientOption) (*GetNtpServiceURLOK, error)

GetNtpServiceURL get ntp service Url API

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 {
	GetNtpServiceURL(params *GetNtpServiceURLParams, opts ...ClientOption) (*GetNtpServiceURLOK, 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 ntp API client.

type GetNtpServiceURLBadRequest

type GetNtpServiceURLBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetNtpServiceURLBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetNtpServiceURLBadRequest

func NewGetNtpServiceURLBadRequest() *GetNtpServiceURLBadRequest

NewGetNtpServiceURLBadRequest creates a GetNtpServiceURLBadRequest with default headers values

func (*GetNtpServiceURLBadRequest) Error

func (*GetNtpServiceURLBadRequest) GetPayload

func (o *GetNtpServiceURLBadRequest) GetPayload() *models.ErrorBody

type GetNtpServiceURLInternalServerError

type GetNtpServiceURLInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetNtpServiceURLInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetNtpServiceURLInternalServerError

func NewGetNtpServiceURLInternalServerError() *GetNtpServiceURLInternalServerError

NewGetNtpServiceURLInternalServerError creates a GetNtpServiceURLInternalServerError with default headers values

func (*GetNtpServiceURLInternalServerError) Error

func (*GetNtpServiceURLInternalServerError) GetPayload

type GetNtpServiceURLNotFound

type GetNtpServiceURLNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetNtpServiceURLNotFound describes a response with status code 404, with default header values.

Not found

func NewGetNtpServiceURLNotFound

func NewGetNtpServiceURLNotFound() *GetNtpServiceURLNotFound

NewGetNtpServiceURLNotFound creates a GetNtpServiceURLNotFound with default headers values

func (*GetNtpServiceURLNotFound) Error

func (o *GetNtpServiceURLNotFound) Error() string

func (*GetNtpServiceURLNotFound) GetPayload

func (o *GetNtpServiceURLNotFound) GetPayload() *models.ErrorBody

type GetNtpServiceURLOK

type GetNtpServiceURLOK struct {
	XTowerRequestID string

	Payload *models.NtpServiceURL
}
GetNtpServiceURLOK describes a response with status code 200, with default header values.

GetNtpServiceURLOK get ntp service Url o k

func NewGetNtpServiceURLOK

func NewGetNtpServiceURLOK() *GetNtpServiceURLOK

NewGetNtpServiceURLOK creates a GetNtpServiceURLOK with default headers values

func (*GetNtpServiceURLOK) Error

func (o *GetNtpServiceURLOK) Error() string

func (*GetNtpServiceURLOK) GetPayload

func (o *GetNtpServiceURLOK) GetPayload() *models.NtpServiceURL

type GetNtpServiceURLParams

type GetNtpServiceURLParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

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

GetNtpServiceURLParams contains all the parameters to send to the API endpoint

for the get ntp service Url operation.

Typically these are written to a http.Request.

func NewGetNtpServiceURLParams

func NewGetNtpServiceURLParams() *GetNtpServiceURLParams

NewGetNtpServiceURLParams creates a new GetNtpServiceURLParams 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 NewGetNtpServiceURLParamsWithContext

func NewGetNtpServiceURLParamsWithContext(ctx context.Context) *GetNtpServiceURLParams

NewGetNtpServiceURLParamsWithContext creates a new GetNtpServiceURLParams object with the ability to set a context for a request.

func NewGetNtpServiceURLParamsWithHTTPClient

func NewGetNtpServiceURLParamsWithHTTPClient(client *http.Client) *GetNtpServiceURLParams

NewGetNtpServiceURLParamsWithHTTPClient creates a new GetNtpServiceURLParams object with the ability to set a custom HTTPClient for a request.

func NewGetNtpServiceURLParamsWithTimeout

func NewGetNtpServiceURLParamsWithTimeout(timeout time.Duration) *GetNtpServiceURLParams

NewGetNtpServiceURLParamsWithTimeout creates a new GetNtpServiceURLParams object with the ability to set a timeout on a request.

func (*GetNtpServiceURLParams) SetContentLanguage

func (o *GetNtpServiceURLParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get ntp service Url params

func (*GetNtpServiceURLParams) SetContext

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

SetContext adds the context to the get ntp service Url params

func (*GetNtpServiceURLParams) SetDefaults

func (o *GetNtpServiceURLParams) SetDefaults()

SetDefaults hydrates default values in the get ntp service Url params (not the query body).

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

func (*GetNtpServiceURLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get ntp service Url params

func (*GetNtpServiceURLParams) SetTimeout

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

SetTimeout adds the timeout to the get ntp service Url params

func (*GetNtpServiceURLParams) WithContentLanguage

func (o *GetNtpServiceURLParams) WithContentLanguage(contentLanguage *string) *GetNtpServiceURLParams

WithContentLanguage adds the contentLanguage to the get ntp service Url params

func (*GetNtpServiceURLParams) WithContext

WithContext adds the context to the get ntp service Url params

func (*GetNtpServiceURLParams) WithDefaults

WithDefaults hydrates default values in the get ntp service Url params (not the query body).

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

func (*GetNtpServiceURLParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get ntp service Url params

func (*GetNtpServiceURLParams) WithTimeout

WithTimeout adds the timeout to the get ntp service Url params

func (*GetNtpServiceURLParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNtpServiceURLReader

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

GetNtpServiceURLReader is a Reader for the GetNtpServiceURL structure.

func (*GetNtpServiceURLReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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