Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSite(params *CreateSiteParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSiteCreated, *CreateSiteAccepted, error)
- func (a *Client) DeleteSite(params *DeleteSiteParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSiteAccepted, *DeleteSiteNoContent, error)
- func (a *Client) GetSite(params *GetSiteParams, authInfo runtime.ClientAuthInfoWriter) (*GetSiteOK, error)
- func (a *Client) GetSites(params *GetSitesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSitesOK, error)
- func (a *Client) ReplaceSite(params *ReplaceSiteParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceSiteOK, *ReplaceSiteAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateSiteAccepted
- type CreateSiteBadRequest
- type CreateSiteConflict
- type CreateSiteCreated
- type CreateSiteDefault
- type CreateSiteParams
- func (o *CreateSiteParams) SetContext(ctx context.Context)
- func (o *CreateSiteParams) SetData(data *models.Site)
- func (o *CreateSiteParams) SetForceReload(forceReload *bool)
- func (o *CreateSiteParams) SetHTTPClient(client *http.Client)
- func (o *CreateSiteParams) SetTimeout(timeout time.Duration)
- func (o *CreateSiteParams) SetTransactionID(transactionID *string)
- func (o *CreateSiteParams) SetVersion(version *int64)
- func (o *CreateSiteParams) WithContext(ctx context.Context) *CreateSiteParams
- func (o *CreateSiteParams) WithData(data *models.Site) *CreateSiteParams
- func (o *CreateSiteParams) WithForceReload(forceReload *bool) *CreateSiteParams
- func (o *CreateSiteParams) WithHTTPClient(client *http.Client) *CreateSiteParams
- func (o *CreateSiteParams) WithTimeout(timeout time.Duration) *CreateSiteParams
- func (o *CreateSiteParams) WithTransactionID(transactionID *string) *CreateSiteParams
- func (o *CreateSiteParams) WithVersion(version *int64) *CreateSiteParams
- func (o *CreateSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSiteReader
- type DeleteSiteAccepted
- type DeleteSiteDefault
- type DeleteSiteNoContent
- type DeleteSiteNotFound
- type DeleteSiteParams
- func (o *DeleteSiteParams) SetContext(ctx context.Context)
- func (o *DeleteSiteParams) SetForceReload(forceReload *bool)
- func (o *DeleteSiteParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSiteParams) SetName(name string)
- func (o *DeleteSiteParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSiteParams) SetTransactionID(transactionID *string)
- func (o *DeleteSiteParams) SetVersion(version *int64)
- func (o *DeleteSiteParams) WithContext(ctx context.Context) *DeleteSiteParams
- func (o *DeleteSiteParams) WithForceReload(forceReload *bool) *DeleteSiteParams
- func (o *DeleteSiteParams) WithHTTPClient(client *http.Client) *DeleteSiteParams
- func (o *DeleteSiteParams) WithName(name string) *DeleteSiteParams
- func (o *DeleteSiteParams) WithTimeout(timeout time.Duration) *DeleteSiteParams
- func (o *DeleteSiteParams) WithTransactionID(transactionID *string) *DeleteSiteParams
- func (o *DeleteSiteParams) WithVersion(version *int64) *DeleteSiteParams
- func (o *DeleteSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSiteReader
- type GetSiteDefault
- type GetSiteNotFound
- type GetSiteOK
- type GetSiteOKBody
- type GetSiteParams
- func (o *GetSiteParams) SetContext(ctx context.Context)
- func (o *GetSiteParams) SetHTTPClient(client *http.Client)
- func (o *GetSiteParams) SetName(name string)
- func (o *GetSiteParams) SetTimeout(timeout time.Duration)
- func (o *GetSiteParams) SetTransactionID(transactionID *string)
- func (o *GetSiteParams) WithContext(ctx context.Context) *GetSiteParams
- func (o *GetSiteParams) WithHTTPClient(client *http.Client) *GetSiteParams
- func (o *GetSiteParams) WithName(name string) *GetSiteParams
- func (o *GetSiteParams) WithTimeout(timeout time.Duration) *GetSiteParams
- func (o *GetSiteParams) WithTransactionID(transactionID *string) *GetSiteParams
- func (o *GetSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSiteReader
- type GetSitesDefault
- type GetSitesOK
- type GetSitesOKBody
- type GetSitesParams
- func (o *GetSitesParams) SetContext(ctx context.Context)
- func (o *GetSitesParams) SetHTTPClient(client *http.Client)
- func (o *GetSitesParams) SetTimeout(timeout time.Duration)
- func (o *GetSitesParams) SetTransactionID(transactionID *string)
- func (o *GetSitesParams) WithContext(ctx context.Context) *GetSitesParams
- func (o *GetSitesParams) WithHTTPClient(client *http.Client) *GetSitesParams
- func (o *GetSitesParams) WithTimeout(timeout time.Duration) *GetSitesParams
- func (o *GetSitesParams) WithTransactionID(transactionID *string) *GetSitesParams
- func (o *GetSitesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSitesReader
- type ReplaceSiteAccepted
- type ReplaceSiteBadRequest
- type ReplaceSiteDefault
- type ReplaceSiteNotFound
- type ReplaceSiteOK
- type ReplaceSiteParams
- func (o *ReplaceSiteParams) SetContext(ctx context.Context)
- func (o *ReplaceSiteParams) SetData(data *models.Site)
- func (o *ReplaceSiteParams) SetForceReload(forceReload *bool)
- func (o *ReplaceSiteParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceSiteParams) SetName(name string)
- func (o *ReplaceSiteParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceSiteParams) SetTransactionID(transactionID *string)
- func (o *ReplaceSiteParams) SetVersion(version *int64)
- func (o *ReplaceSiteParams) WithContext(ctx context.Context) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithData(data *models.Site) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithForceReload(forceReload *bool) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithHTTPClient(client *http.Client) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithName(name string) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithTimeout(timeout time.Duration) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithTransactionID(transactionID *string) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithVersion(version *int64) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceSiteReader
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 sites API
func (*Client) CreateSite ¶
func (a *Client) CreateSite(params *CreateSiteParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSiteCreated, *CreateSiteAccepted, error)
CreateSite adds a site
Adds a new site to the configuration file.
func (*Client) DeleteSite ¶
func (a *Client) DeleteSite(params *DeleteSiteParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSiteAccepted, *DeleteSiteNoContent, error)
DeleteSite deletes a site
Deletes a site from the configuration by it's name.
func (*Client) GetSite ¶
func (a *Client) GetSite(params *GetSiteParams, authInfo runtime.ClientAuthInfoWriter) (*GetSiteOK, error)
GetSite returns a site
Returns one site configuration by it's name.
func (*Client) GetSites ¶
func (a *Client) GetSites(params *GetSitesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSitesOK, error)
GetSites returns an array of sites
Returns an array of all configured sites.
func (*Client) ReplaceSite ¶
func (a *Client) ReplaceSite(params *ReplaceSiteParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceSiteOK, *ReplaceSiteAccepted, error)
ReplaceSite replaces a site
Replaces a site configuration by it's name.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶ added in v0.2.0
type ClientService interface { CreateSite(params *CreateSiteParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSiteCreated, *CreateSiteAccepted, error) DeleteSite(params *DeleteSiteParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSiteAccepted, *DeleteSiteNoContent, error) GetSite(params *GetSiteParams, authInfo runtime.ClientAuthInfoWriter) (*GetSiteOK, error) GetSites(params *GetSitesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSitesOK, error) ReplaceSite(params *ReplaceSiteParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceSiteOK, *ReplaceSiteAccepted, 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 sites API client.
type CreateSiteAccepted ¶
type CreateSiteAccepted struct { /*ID of the requested reload */ ReloadID string Payload *models.Site }
CreateSiteAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewCreateSiteAccepted ¶
func NewCreateSiteAccepted() *CreateSiteAccepted
NewCreateSiteAccepted creates a CreateSiteAccepted with default headers values
func (*CreateSiteAccepted) Error ¶
func (o *CreateSiteAccepted) Error() string
func (*CreateSiteAccepted) GetPayload ¶ added in v0.2.0
func (o *CreateSiteAccepted) GetPayload() *models.Site
type CreateSiteBadRequest ¶
type CreateSiteBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
CreateSiteBadRequest handles this case with default header values.
Bad request
func NewCreateSiteBadRequest ¶
func NewCreateSiteBadRequest() *CreateSiteBadRequest
NewCreateSiteBadRequest creates a CreateSiteBadRequest with default headers values
func (*CreateSiteBadRequest) Error ¶
func (o *CreateSiteBadRequest) Error() string
func (*CreateSiteBadRequest) GetPayload ¶ added in v0.2.0
func (o *CreateSiteBadRequest) GetPayload() *models.Error
type CreateSiteConflict ¶
type CreateSiteConflict struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
CreateSiteConflict handles this case with default header values.
The specified resource already exists
func NewCreateSiteConflict ¶
func NewCreateSiteConflict() *CreateSiteConflict
NewCreateSiteConflict creates a CreateSiteConflict with default headers values
func (*CreateSiteConflict) Error ¶
func (o *CreateSiteConflict) Error() string
func (*CreateSiteConflict) GetPayload ¶ added in v0.2.0
func (o *CreateSiteConflict) GetPayload() *models.Error
type CreateSiteCreated ¶
CreateSiteCreated handles this case with default header values.
Site created
func NewCreateSiteCreated ¶
func NewCreateSiteCreated() *CreateSiteCreated
NewCreateSiteCreated creates a CreateSiteCreated with default headers values
func (*CreateSiteCreated) Error ¶
func (o *CreateSiteCreated) Error() string
func (*CreateSiteCreated) GetPayload ¶ added in v0.2.0
func (o *CreateSiteCreated) GetPayload() *models.Site
type CreateSiteDefault ¶
type CreateSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
CreateSiteDefault handles this case with default header values.
General Error
func NewCreateSiteDefault ¶
func NewCreateSiteDefault(code int) *CreateSiteDefault
NewCreateSiteDefault creates a CreateSiteDefault with default headers values
func (*CreateSiteDefault) Code ¶
func (o *CreateSiteDefault) Code() int
Code gets the status code for the create site default response
func (*CreateSiteDefault) Error ¶
func (o *CreateSiteDefault) Error() string
func (*CreateSiteDefault) GetPayload ¶ added in v0.2.0
func (o *CreateSiteDefault) GetPayload() *models.Error
type CreateSiteParams ¶
type CreateSiteParams struct { /*Data*/ Data *models.Site /*ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSiteParams contains all the parameters to send to the API endpoint for the create site operation typically these are written to a http.Request
func NewCreateSiteParams ¶
func NewCreateSiteParams() *CreateSiteParams
NewCreateSiteParams creates a new CreateSiteParams object with the default values initialized.
func NewCreateSiteParamsWithContext ¶
func NewCreateSiteParamsWithContext(ctx context.Context) *CreateSiteParams
NewCreateSiteParamsWithContext creates a new CreateSiteParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSiteParamsWithHTTPClient ¶
func NewCreateSiteParamsWithHTTPClient(client *http.Client) *CreateSiteParams
NewCreateSiteParamsWithHTTPClient creates a new CreateSiteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSiteParamsWithTimeout ¶
func NewCreateSiteParamsWithTimeout(timeout time.Duration) *CreateSiteParams
NewCreateSiteParamsWithTimeout creates a new CreateSiteParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSiteParams) SetContext ¶
func (o *CreateSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the create site params
func (*CreateSiteParams) SetData ¶
func (o *CreateSiteParams) SetData(data *models.Site)
SetData adds the data to the create site params
func (*CreateSiteParams) SetForceReload ¶
func (o *CreateSiteParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create site params
func (*CreateSiteParams) SetHTTPClient ¶
func (o *CreateSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create site params
func (*CreateSiteParams) SetTimeout ¶
func (o *CreateSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create site params
func (*CreateSiteParams) SetTransactionID ¶
func (o *CreateSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create site params
func (*CreateSiteParams) SetVersion ¶
func (o *CreateSiteParams) SetVersion(version *int64)
SetVersion adds the version to the create site params
func (*CreateSiteParams) WithContext ¶
func (o *CreateSiteParams) WithContext(ctx context.Context) *CreateSiteParams
WithContext adds the context to the create site params
func (*CreateSiteParams) WithData ¶
func (o *CreateSiteParams) WithData(data *models.Site) *CreateSiteParams
WithData adds the data to the create site params
func (*CreateSiteParams) WithForceReload ¶
func (o *CreateSiteParams) WithForceReload(forceReload *bool) *CreateSiteParams
WithForceReload adds the forceReload to the create site params
func (*CreateSiteParams) WithHTTPClient ¶
func (o *CreateSiteParams) WithHTTPClient(client *http.Client) *CreateSiteParams
WithHTTPClient adds the HTTPClient to the create site params
func (*CreateSiteParams) WithTimeout ¶
func (o *CreateSiteParams) WithTimeout(timeout time.Duration) *CreateSiteParams
WithTimeout adds the timeout to the create site params
func (*CreateSiteParams) WithTransactionID ¶
func (o *CreateSiteParams) WithTransactionID(transactionID *string) *CreateSiteParams
WithTransactionID adds the transactionID to the create site params
func (*CreateSiteParams) WithVersion ¶
func (o *CreateSiteParams) WithVersion(version *int64) *CreateSiteParams
WithVersion adds the version to the create site params
func (*CreateSiteParams) WriteToRequest ¶
func (o *CreateSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSiteReader ¶
type CreateSiteReader struct {
// contains filtered or unexported fields
}
CreateSiteReader is a Reader for the CreateSite structure.
func (*CreateSiteReader) ReadResponse ¶
func (o *CreateSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSiteAccepted ¶
type DeleteSiteAccepted struct { /*ID of the requested reload */ ReloadID string }
DeleteSiteAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewDeleteSiteAccepted ¶
func NewDeleteSiteAccepted() *DeleteSiteAccepted
NewDeleteSiteAccepted creates a DeleteSiteAccepted with default headers values
func (*DeleteSiteAccepted) Error ¶
func (o *DeleteSiteAccepted) Error() string
type DeleteSiteDefault ¶
type DeleteSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
DeleteSiteDefault handles this case with default header values.
General Error
func NewDeleteSiteDefault ¶
func NewDeleteSiteDefault(code int) *DeleteSiteDefault
NewDeleteSiteDefault creates a DeleteSiteDefault with default headers values
func (*DeleteSiteDefault) Code ¶
func (o *DeleteSiteDefault) Code() int
Code gets the status code for the delete site default response
func (*DeleteSiteDefault) Error ¶
func (o *DeleteSiteDefault) Error() string
func (*DeleteSiteDefault) GetPayload ¶ added in v0.2.0
func (o *DeleteSiteDefault) GetPayload() *models.Error
type DeleteSiteNoContent ¶
type DeleteSiteNoContent struct { }
DeleteSiteNoContent handles this case with default header values.
Site deleted
func NewDeleteSiteNoContent ¶
func NewDeleteSiteNoContent() *DeleteSiteNoContent
NewDeleteSiteNoContent creates a DeleteSiteNoContent with default headers values
func (*DeleteSiteNoContent) Error ¶
func (o *DeleteSiteNoContent) Error() string
type DeleteSiteNotFound ¶
type DeleteSiteNotFound struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
DeleteSiteNotFound handles this case with default header values.
The specified resource was not found
func NewDeleteSiteNotFound ¶
func NewDeleteSiteNotFound() *DeleteSiteNotFound
NewDeleteSiteNotFound creates a DeleteSiteNotFound with default headers values
func (*DeleteSiteNotFound) Error ¶
func (o *DeleteSiteNotFound) Error() string
func (*DeleteSiteNotFound) GetPayload ¶ added in v0.2.0
func (o *DeleteSiteNotFound) GetPayload() *models.Error
type DeleteSiteParams ¶
type DeleteSiteParams struct { /*ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /*Name Site frontend name */ Name string /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSiteParams contains all the parameters to send to the API endpoint for the delete site operation typically these are written to a http.Request
func NewDeleteSiteParams ¶
func NewDeleteSiteParams() *DeleteSiteParams
NewDeleteSiteParams creates a new DeleteSiteParams object with the default values initialized.
func NewDeleteSiteParamsWithContext ¶
func NewDeleteSiteParamsWithContext(ctx context.Context) *DeleteSiteParams
NewDeleteSiteParamsWithContext creates a new DeleteSiteParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteSiteParamsWithHTTPClient ¶
func NewDeleteSiteParamsWithHTTPClient(client *http.Client) *DeleteSiteParams
NewDeleteSiteParamsWithHTTPClient creates a new DeleteSiteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteSiteParamsWithTimeout ¶
func NewDeleteSiteParamsWithTimeout(timeout time.Duration) *DeleteSiteParams
NewDeleteSiteParamsWithTimeout creates a new DeleteSiteParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteSiteParams) SetContext ¶
func (o *DeleteSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the delete site params
func (*DeleteSiteParams) SetForceReload ¶
func (o *DeleteSiteParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete site params
func (*DeleteSiteParams) SetHTTPClient ¶
func (o *DeleteSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete site params
func (*DeleteSiteParams) SetName ¶
func (o *DeleteSiteParams) SetName(name string)
SetName adds the name to the delete site params
func (*DeleteSiteParams) SetTimeout ¶
func (o *DeleteSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete site params
func (*DeleteSiteParams) SetTransactionID ¶
func (o *DeleteSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete site params
func (*DeleteSiteParams) SetVersion ¶
func (o *DeleteSiteParams) SetVersion(version *int64)
SetVersion adds the version to the delete site params
func (*DeleteSiteParams) WithContext ¶
func (o *DeleteSiteParams) WithContext(ctx context.Context) *DeleteSiteParams
WithContext adds the context to the delete site params
func (*DeleteSiteParams) WithForceReload ¶
func (o *DeleteSiteParams) WithForceReload(forceReload *bool) *DeleteSiteParams
WithForceReload adds the forceReload to the delete site params
func (*DeleteSiteParams) WithHTTPClient ¶
func (o *DeleteSiteParams) WithHTTPClient(client *http.Client) *DeleteSiteParams
WithHTTPClient adds the HTTPClient to the delete site params
func (*DeleteSiteParams) WithName ¶
func (o *DeleteSiteParams) WithName(name string) *DeleteSiteParams
WithName adds the name to the delete site params
func (*DeleteSiteParams) WithTimeout ¶
func (o *DeleteSiteParams) WithTimeout(timeout time.Duration) *DeleteSiteParams
WithTimeout adds the timeout to the delete site params
func (*DeleteSiteParams) WithTransactionID ¶
func (o *DeleteSiteParams) WithTransactionID(transactionID *string) *DeleteSiteParams
WithTransactionID adds the transactionID to the delete site params
func (*DeleteSiteParams) WithVersion ¶
func (o *DeleteSiteParams) WithVersion(version *int64) *DeleteSiteParams
WithVersion adds the version to the delete site params
func (*DeleteSiteParams) WriteToRequest ¶
func (o *DeleteSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSiteReader ¶
type DeleteSiteReader struct {
// contains filtered or unexported fields
}
DeleteSiteReader is a Reader for the DeleteSite structure.
func (*DeleteSiteReader) ReadResponse ¶
func (o *DeleteSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSiteDefault ¶
type GetSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
GetSiteDefault handles this case with default header values.
General Error
func NewGetSiteDefault ¶
func NewGetSiteDefault(code int) *GetSiteDefault
NewGetSiteDefault creates a GetSiteDefault with default headers values
func (*GetSiteDefault) Code ¶
func (o *GetSiteDefault) Code() int
Code gets the status code for the get site default response
func (*GetSiteDefault) Error ¶
func (o *GetSiteDefault) Error() string
func (*GetSiteDefault) GetPayload ¶ added in v0.2.0
func (o *GetSiteDefault) GetPayload() *models.Error
type GetSiteNotFound ¶
type GetSiteNotFound struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
GetSiteNotFound handles this case with default header values.
The specified resource was not found
func NewGetSiteNotFound ¶
func NewGetSiteNotFound() *GetSiteNotFound
NewGetSiteNotFound creates a GetSiteNotFound with default headers values
func (*GetSiteNotFound) Error ¶
func (o *GetSiteNotFound) Error() string
func (*GetSiteNotFound) GetPayload ¶ added in v0.2.0
func (o *GetSiteNotFound) GetPayload() *models.Error
type GetSiteOK ¶
type GetSiteOK struct { /*Configuration file version */ ConfigurationVersion int64 Payload *GetSiteOKBody }
GetSiteOK handles this case with default header values.
Successful operation
func NewGetSiteOK ¶
func NewGetSiteOK() *GetSiteOK
NewGetSiteOK creates a GetSiteOK with default headers values
func (*GetSiteOK) GetPayload ¶ added in v0.2.0
func (o *GetSiteOK) GetPayload() *GetSiteOKBody
type GetSiteOKBody ¶
type GetSiteOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Site `json:"data,omitempty"` }
GetSiteOKBody get site o k body swagger:model GetSiteOKBody
func (*GetSiteOKBody) MarshalBinary ¶
func (o *GetSiteOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSiteOKBody) UnmarshalBinary ¶
func (o *GetSiteOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSiteParams ¶
type GetSiteParams struct { /*Name Site frontend name */ Name string /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSiteParams contains all the parameters to send to the API endpoint for the get site operation typically these are written to a http.Request
func NewGetSiteParams ¶
func NewGetSiteParams() *GetSiteParams
NewGetSiteParams creates a new GetSiteParams object with the default values initialized.
func NewGetSiteParamsWithContext ¶
func NewGetSiteParamsWithContext(ctx context.Context) *GetSiteParams
NewGetSiteParamsWithContext creates a new GetSiteParams object with the default values initialized, and the ability to set a context for a request
func NewGetSiteParamsWithHTTPClient ¶
func NewGetSiteParamsWithHTTPClient(client *http.Client) *GetSiteParams
NewGetSiteParamsWithHTTPClient creates a new GetSiteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSiteParamsWithTimeout ¶
func NewGetSiteParamsWithTimeout(timeout time.Duration) *GetSiteParams
NewGetSiteParamsWithTimeout creates a new GetSiteParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSiteParams) SetContext ¶
func (o *GetSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the get site params
func (*GetSiteParams) SetHTTPClient ¶
func (o *GetSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get site params
func (*GetSiteParams) SetName ¶
func (o *GetSiteParams) SetName(name string)
SetName adds the name to the get site params
func (*GetSiteParams) SetTimeout ¶
func (o *GetSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get site params
func (*GetSiteParams) SetTransactionID ¶
func (o *GetSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get site params
func (*GetSiteParams) WithContext ¶
func (o *GetSiteParams) WithContext(ctx context.Context) *GetSiteParams
WithContext adds the context to the get site params
func (*GetSiteParams) WithHTTPClient ¶
func (o *GetSiteParams) WithHTTPClient(client *http.Client) *GetSiteParams
WithHTTPClient adds the HTTPClient to the get site params
func (*GetSiteParams) WithName ¶
func (o *GetSiteParams) WithName(name string) *GetSiteParams
WithName adds the name to the get site params
func (*GetSiteParams) WithTimeout ¶
func (o *GetSiteParams) WithTimeout(timeout time.Duration) *GetSiteParams
WithTimeout adds the timeout to the get site params
func (*GetSiteParams) WithTransactionID ¶
func (o *GetSiteParams) WithTransactionID(transactionID *string) *GetSiteParams
WithTransactionID adds the transactionID to the get site params
func (*GetSiteParams) WriteToRequest ¶
func (o *GetSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSiteReader ¶
type GetSiteReader struct {
// contains filtered or unexported fields
}
GetSiteReader is a Reader for the GetSite structure.
func (*GetSiteReader) ReadResponse ¶
func (o *GetSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSitesDefault ¶
type GetSitesDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
GetSitesDefault handles this case with default header values.
General Error
func NewGetSitesDefault ¶
func NewGetSitesDefault(code int) *GetSitesDefault
NewGetSitesDefault creates a GetSitesDefault with default headers values
func (*GetSitesDefault) Code ¶
func (o *GetSitesDefault) Code() int
Code gets the status code for the get sites default response
func (*GetSitesDefault) Error ¶
func (o *GetSitesDefault) Error() string
func (*GetSitesDefault) GetPayload ¶ added in v0.2.0
func (o *GetSitesDefault) GetPayload() *models.Error
type GetSitesOK ¶
type GetSitesOK struct { /*Configuration file version */ ConfigurationVersion int64 Payload *GetSitesOKBody }
GetSitesOK handles this case with default header values.
Successful operation
func NewGetSitesOK ¶
func NewGetSitesOK() *GetSitesOK
NewGetSitesOK creates a GetSitesOK with default headers values
func (*GetSitesOK) Error ¶
func (o *GetSitesOK) Error() string
func (*GetSitesOK) GetPayload ¶ added in v0.2.0
func (o *GetSitesOK) GetPayload() *GetSitesOKBody
type GetSitesOKBody ¶
type GetSitesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Sites `json:"data"` }
GetSitesOKBody get sites o k body swagger:model GetSitesOKBody
func (*GetSitesOKBody) MarshalBinary ¶
func (o *GetSitesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSitesOKBody) UnmarshalBinary ¶
func (o *GetSitesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSitesParams ¶
type GetSitesParams struct { /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSitesParams contains all the parameters to send to the API endpoint for the get sites operation typically these are written to a http.Request
func NewGetSitesParams ¶
func NewGetSitesParams() *GetSitesParams
NewGetSitesParams creates a new GetSitesParams object with the default values initialized.
func NewGetSitesParamsWithContext ¶
func NewGetSitesParamsWithContext(ctx context.Context) *GetSitesParams
NewGetSitesParamsWithContext creates a new GetSitesParams object with the default values initialized, and the ability to set a context for a request
func NewGetSitesParamsWithHTTPClient ¶
func NewGetSitesParamsWithHTTPClient(client *http.Client) *GetSitesParams
NewGetSitesParamsWithHTTPClient creates a new GetSitesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSitesParamsWithTimeout ¶
func NewGetSitesParamsWithTimeout(timeout time.Duration) *GetSitesParams
NewGetSitesParamsWithTimeout creates a new GetSitesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSitesParams) SetContext ¶
func (o *GetSitesParams) SetContext(ctx context.Context)
SetContext adds the context to the get sites params
func (*GetSitesParams) SetHTTPClient ¶
func (o *GetSitesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sites params
func (*GetSitesParams) SetTimeout ¶
func (o *GetSitesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sites params
func (*GetSitesParams) SetTransactionID ¶
func (o *GetSitesParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get sites params
func (*GetSitesParams) WithContext ¶
func (o *GetSitesParams) WithContext(ctx context.Context) *GetSitesParams
WithContext adds the context to the get sites params
func (*GetSitesParams) WithHTTPClient ¶
func (o *GetSitesParams) WithHTTPClient(client *http.Client) *GetSitesParams
WithHTTPClient adds the HTTPClient to the get sites params
func (*GetSitesParams) WithTimeout ¶
func (o *GetSitesParams) WithTimeout(timeout time.Duration) *GetSitesParams
WithTimeout adds the timeout to the get sites params
func (*GetSitesParams) WithTransactionID ¶
func (o *GetSitesParams) WithTransactionID(transactionID *string) *GetSitesParams
WithTransactionID adds the transactionID to the get sites params
func (*GetSitesParams) WriteToRequest ¶
func (o *GetSitesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSitesReader ¶
type GetSitesReader struct {
// contains filtered or unexported fields
}
GetSitesReader is a Reader for the GetSites structure.
func (*GetSitesReader) ReadResponse ¶
func (o *GetSitesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceSiteAccepted ¶
type ReplaceSiteAccepted struct { /*ID of the requested reload */ ReloadID string Payload *models.Site }
ReplaceSiteAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewReplaceSiteAccepted ¶
func NewReplaceSiteAccepted() *ReplaceSiteAccepted
NewReplaceSiteAccepted creates a ReplaceSiteAccepted with default headers values
func (*ReplaceSiteAccepted) Error ¶
func (o *ReplaceSiteAccepted) Error() string
func (*ReplaceSiteAccepted) GetPayload ¶ added in v0.2.0
func (o *ReplaceSiteAccepted) GetPayload() *models.Site
type ReplaceSiteBadRequest ¶
type ReplaceSiteBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
ReplaceSiteBadRequest handles this case with default header values.
Bad request
func NewReplaceSiteBadRequest ¶
func NewReplaceSiteBadRequest() *ReplaceSiteBadRequest
NewReplaceSiteBadRequest creates a ReplaceSiteBadRequest with default headers values
func (*ReplaceSiteBadRequest) Error ¶
func (o *ReplaceSiteBadRequest) Error() string
func (*ReplaceSiteBadRequest) GetPayload ¶ added in v0.2.0
func (o *ReplaceSiteBadRequest) GetPayload() *models.Error
type ReplaceSiteDefault ¶
type ReplaceSiteDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
ReplaceSiteDefault handles this case with default header values.
General Error
func NewReplaceSiteDefault ¶
func NewReplaceSiteDefault(code int) *ReplaceSiteDefault
NewReplaceSiteDefault creates a ReplaceSiteDefault with default headers values
func (*ReplaceSiteDefault) Code ¶
func (o *ReplaceSiteDefault) Code() int
Code gets the status code for the replace site default response
func (*ReplaceSiteDefault) Error ¶
func (o *ReplaceSiteDefault) Error() string
func (*ReplaceSiteDefault) GetPayload ¶ added in v0.2.0
func (o *ReplaceSiteDefault) GetPayload() *models.Error
type ReplaceSiteNotFound ¶
type ReplaceSiteNotFound struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
ReplaceSiteNotFound handles this case with default header values.
The specified resource was not found
func NewReplaceSiteNotFound ¶
func NewReplaceSiteNotFound() *ReplaceSiteNotFound
NewReplaceSiteNotFound creates a ReplaceSiteNotFound with default headers values
func (*ReplaceSiteNotFound) Error ¶
func (o *ReplaceSiteNotFound) Error() string
func (*ReplaceSiteNotFound) GetPayload ¶ added in v0.2.0
func (o *ReplaceSiteNotFound) GetPayload() *models.Error
type ReplaceSiteOK ¶
ReplaceSiteOK handles this case with default header values.
Site replaced
func NewReplaceSiteOK ¶
func NewReplaceSiteOK() *ReplaceSiteOK
NewReplaceSiteOK creates a ReplaceSiteOK with default headers values
func (*ReplaceSiteOK) Error ¶
func (o *ReplaceSiteOK) Error() string
func (*ReplaceSiteOK) GetPayload ¶ added in v0.2.0
func (o *ReplaceSiteOK) GetPayload() *models.Site
type ReplaceSiteParams ¶
type ReplaceSiteParams struct { /*Data*/ Data *models.Site /*ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /*Name Site frontend name */ Name string /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReplaceSiteParams contains all the parameters to send to the API endpoint for the replace site operation typically these are written to a http.Request
func NewReplaceSiteParams ¶
func NewReplaceSiteParams() *ReplaceSiteParams
NewReplaceSiteParams creates a new ReplaceSiteParams object with the default values initialized.
func NewReplaceSiteParamsWithContext ¶
func NewReplaceSiteParamsWithContext(ctx context.Context) *ReplaceSiteParams
NewReplaceSiteParamsWithContext creates a new ReplaceSiteParams object with the default values initialized, and the ability to set a context for a request
func NewReplaceSiteParamsWithHTTPClient ¶
func NewReplaceSiteParamsWithHTTPClient(client *http.Client) *ReplaceSiteParams
NewReplaceSiteParamsWithHTTPClient creates a new ReplaceSiteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewReplaceSiteParamsWithTimeout ¶
func NewReplaceSiteParamsWithTimeout(timeout time.Duration) *ReplaceSiteParams
NewReplaceSiteParamsWithTimeout creates a new ReplaceSiteParams object with the default values initialized, and the ability to set a timeout on a request
func (*ReplaceSiteParams) SetContext ¶
func (o *ReplaceSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the replace site params
func (*ReplaceSiteParams) SetData ¶
func (o *ReplaceSiteParams) SetData(data *models.Site)
SetData adds the data to the replace site params
func (*ReplaceSiteParams) SetForceReload ¶
func (o *ReplaceSiteParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace site params
func (*ReplaceSiteParams) SetHTTPClient ¶
func (o *ReplaceSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace site params
func (*ReplaceSiteParams) SetName ¶
func (o *ReplaceSiteParams) SetName(name string)
SetName adds the name to the replace site params
func (*ReplaceSiteParams) SetTimeout ¶
func (o *ReplaceSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace site params
func (*ReplaceSiteParams) SetTransactionID ¶
func (o *ReplaceSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace site params
func (*ReplaceSiteParams) SetVersion ¶
func (o *ReplaceSiteParams) SetVersion(version *int64)
SetVersion adds the version to the replace site params
func (*ReplaceSiteParams) WithContext ¶
func (o *ReplaceSiteParams) WithContext(ctx context.Context) *ReplaceSiteParams
WithContext adds the context to the replace site params
func (*ReplaceSiteParams) WithData ¶
func (o *ReplaceSiteParams) WithData(data *models.Site) *ReplaceSiteParams
WithData adds the data to the replace site params
func (*ReplaceSiteParams) WithForceReload ¶
func (o *ReplaceSiteParams) WithForceReload(forceReload *bool) *ReplaceSiteParams
WithForceReload adds the forceReload to the replace site params
func (*ReplaceSiteParams) WithHTTPClient ¶
func (o *ReplaceSiteParams) WithHTTPClient(client *http.Client) *ReplaceSiteParams
WithHTTPClient adds the HTTPClient to the replace site params
func (*ReplaceSiteParams) WithName ¶
func (o *ReplaceSiteParams) WithName(name string) *ReplaceSiteParams
WithName adds the name to the replace site params
func (*ReplaceSiteParams) WithTimeout ¶
func (o *ReplaceSiteParams) WithTimeout(timeout time.Duration) *ReplaceSiteParams
WithTimeout adds the timeout to the replace site params
func (*ReplaceSiteParams) WithTransactionID ¶
func (o *ReplaceSiteParams) WithTransactionID(transactionID *string) *ReplaceSiteParams
WithTransactionID adds the transactionID to the replace site params
func (*ReplaceSiteParams) WithVersion ¶
func (o *ReplaceSiteParams) WithVersion(version *int64) *ReplaceSiteParams
WithVersion adds the version to the replace site params
func (*ReplaceSiteParams) WriteToRequest ¶
func (o *ReplaceSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceSiteReader ¶
type ReplaceSiteReader struct {
// contains filtered or unexported fields
}
ReplaceSiteReader is a Reader for the ReplaceSite structure.
func (*ReplaceSiteReader) ReadResponse ¶
func (o *ReplaceSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.