configure

package
v5.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 11 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 configure API

func (*Client) GetConfigurations

func (a *Client) GetConfigurations(params *GetConfigurationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetConfigurationsOK, error)

GetConfigurations gets system configurations

This endpoint is for retrieving system configurations that only provides for admin user.

func (*Client) GetInternalconfig

func (a *Client) GetInternalconfig(params *GetInternalconfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetInternalconfigOK, error)

GetInternalconfig gets internal configurations

This endpoint is for retrieving system configurations that only provides for internal api call.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateConfigurations

func (a *Client) UpdateConfigurations(params *UpdateConfigurationsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateConfigurationsOK, error)

UpdateConfigurations modifies system configurations

This endpoint is for modifying system configurations that only provides for admin user.

type ClientService

type ClientService interface {
	GetConfigurations(params *GetConfigurationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetConfigurationsOK, error)

	GetInternalconfig(params *GetInternalconfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetInternalconfigOK, error)

	UpdateConfigurations(params *UpdateConfigurationsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateConfigurationsOK, 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 configure API client.

type GetConfigurationsForbidden

type GetConfigurationsForbidden struct {
}

GetConfigurationsForbidden handles this case with default header values.

User does not have permission of admin role.

func NewGetConfigurationsForbidden

func NewGetConfigurationsForbidden() *GetConfigurationsForbidden

NewGetConfigurationsForbidden creates a GetConfigurationsForbidden with default headers values

func (*GetConfigurationsForbidden) Error

type GetConfigurationsInternalServerError

type GetConfigurationsInternalServerError struct {
}

GetConfigurationsInternalServerError handles this case with default header values.

Unexpected internal errors.

func NewGetConfigurationsInternalServerError

func NewGetConfigurationsInternalServerError() *GetConfigurationsInternalServerError

NewGetConfigurationsInternalServerError creates a GetConfigurationsInternalServerError with default headers values

func (*GetConfigurationsInternalServerError) Error

type GetConfigurationsOK

type GetConfigurationsOK struct {
	Payload *model.ConfigurationsResponse
}

GetConfigurationsOK handles this case with default header values.

Get system configurations successfully. The response body is a map.

func NewGetConfigurationsOK

func NewGetConfigurationsOK() *GetConfigurationsOK

NewGetConfigurationsOK creates a GetConfigurationsOK with default headers values

func (*GetConfigurationsOK) Error

func (o *GetConfigurationsOK) Error() string

func (*GetConfigurationsOK) GetPayload

type GetConfigurationsParams

type GetConfigurationsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetConfigurationsParams contains all the parameters to send to the API endpoint for the get configurations operation typically these are written to a http.Request

func NewGetConfigurationsParams

func NewGetConfigurationsParams() *GetConfigurationsParams

NewGetConfigurationsParams creates a new GetConfigurationsParams object with the default values initialized.

func NewGetConfigurationsParamsWithContext

func NewGetConfigurationsParamsWithContext(ctx context.Context) *GetConfigurationsParams

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

func NewGetConfigurationsParamsWithHTTPClient

func NewGetConfigurationsParamsWithHTTPClient(client *http.Client) *GetConfigurationsParams

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

func NewGetConfigurationsParamsWithTimeout

func NewGetConfigurationsParamsWithTimeout(timeout time.Duration) *GetConfigurationsParams

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

func (*GetConfigurationsParams) SetContext

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

SetContext adds the context to the get configurations params

func (*GetConfigurationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get configurations params

func (*GetConfigurationsParams) SetTimeout

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

SetTimeout adds the timeout to the get configurations params

func (*GetConfigurationsParams) SetXRequestID

func (o *GetConfigurationsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get configurations params

func (*GetConfigurationsParams) WithContext

WithContext adds the context to the get configurations params

func (*GetConfigurationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get configurations params

func (*GetConfigurationsParams) WithTimeout

WithTimeout adds the timeout to the get configurations params

func (*GetConfigurationsParams) WithXRequestID

func (o *GetConfigurationsParams) WithXRequestID(xRequestID *string) *GetConfigurationsParams

WithXRequestID adds the xRequestID to the get configurations params

func (*GetConfigurationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConfigurationsReader

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

GetConfigurationsReader is a Reader for the GetConfigurations structure.

func (*GetConfigurationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConfigurationsUnauthorized

type GetConfigurationsUnauthorized struct {
}

GetConfigurationsUnauthorized handles this case with default header values.

User need to log in first.ß

func NewGetConfigurationsUnauthorized

func NewGetConfigurationsUnauthorized() *GetConfigurationsUnauthorized

NewGetConfigurationsUnauthorized creates a GetConfigurationsUnauthorized with default headers values

func (*GetConfigurationsUnauthorized) Error

type GetInternalconfigForbidden

type GetInternalconfigForbidden struct {
}

GetInternalconfigForbidden handles this case with default header values.

User does not have permission of admin role.

func NewGetInternalconfigForbidden

func NewGetInternalconfigForbidden() *GetInternalconfigForbidden

NewGetInternalconfigForbidden creates a GetInternalconfigForbidden with default headers values

func (*GetInternalconfigForbidden) Error

type GetInternalconfigInternalServerError

type GetInternalconfigInternalServerError struct {
}

GetInternalconfigInternalServerError handles this case with default header values.

Unexpected internal errors.

func NewGetInternalconfigInternalServerError

func NewGetInternalconfigInternalServerError() *GetInternalconfigInternalServerError

NewGetInternalconfigInternalServerError creates a GetInternalconfigInternalServerError with default headers values

func (*GetInternalconfigInternalServerError) Error

type GetInternalconfigOK

type GetInternalconfigOK struct {
	Payload config.InternalCfg
}

GetInternalconfigOK handles this case with default header values.

Get system configurations successfully. The response body is a map.

func NewGetInternalconfigOK

func NewGetInternalconfigOK() *GetInternalconfigOK

NewGetInternalconfigOK creates a GetInternalconfigOK with default headers values

func (*GetInternalconfigOK) Error

func (o *GetInternalconfigOK) Error() string

func (*GetInternalconfigOK) GetPayload

func (o *GetInternalconfigOK) GetPayload() config.InternalCfg

type GetInternalconfigParams

type GetInternalconfigParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetInternalconfigParams contains all the parameters to send to the API endpoint for the get internalconfig operation typically these are written to a http.Request

func NewGetInternalconfigParams

func NewGetInternalconfigParams() *GetInternalconfigParams

NewGetInternalconfigParams creates a new GetInternalconfigParams object with the default values initialized.

func NewGetInternalconfigParamsWithContext

func NewGetInternalconfigParamsWithContext(ctx context.Context) *GetInternalconfigParams

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

func NewGetInternalconfigParamsWithHTTPClient

func NewGetInternalconfigParamsWithHTTPClient(client *http.Client) *GetInternalconfigParams

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

func NewGetInternalconfigParamsWithTimeout

func NewGetInternalconfigParamsWithTimeout(timeout time.Duration) *GetInternalconfigParams

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

func (*GetInternalconfigParams) SetContext

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

SetContext adds the context to the get internalconfig params

func (*GetInternalconfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get internalconfig params

func (*GetInternalconfigParams) SetTimeout

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

SetTimeout adds the timeout to the get internalconfig params

func (*GetInternalconfigParams) SetXRequestID

func (o *GetInternalconfigParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get internalconfig params

func (*GetInternalconfigParams) WithContext

WithContext adds the context to the get internalconfig params

func (*GetInternalconfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get internalconfig params

func (*GetInternalconfigParams) WithTimeout

WithTimeout adds the timeout to the get internalconfig params

func (*GetInternalconfigParams) WithXRequestID

func (o *GetInternalconfigParams) WithXRequestID(xRequestID *string) *GetInternalconfigParams

WithXRequestID adds the xRequestID to the get internalconfig params

func (*GetInternalconfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInternalconfigReader

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

GetInternalconfigReader is a Reader for the GetInternalconfig structure.

func (*GetInternalconfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInternalconfigUnauthorized

type GetInternalconfigUnauthorized struct {
}

GetInternalconfigUnauthorized handles this case with default header values.

User need to log in first.

func NewGetInternalconfigUnauthorized

func NewGetInternalconfigUnauthorized() *GetInternalconfigUnauthorized

NewGetInternalconfigUnauthorized creates a GetInternalconfigUnauthorized with default headers values

func (*GetInternalconfigUnauthorized) Error

type UpdateConfigurationsForbidden

type UpdateConfigurationsForbidden struct {
}

UpdateConfigurationsForbidden handles this case with default header values.

User does not have permission of admin role.

func NewUpdateConfigurationsForbidden

func NewUpdateConfigurationsForbidden() *UpdateConfigurationsForbidden

NewUpdateConfigurationsForbidden creates a UpdateConfigurationsForbidden with default headers values

func (*UpdateConfigurationsForbidden) Error

type UpdateConfigurationsInternalServerError

type UpdateConfigurationsInternalServerError struct {
}

UpdateConfigurationsInternalServerError handles this case with default header values.

Unexpected internal errors.

func NewUpdateConfigurationsInternalServerError

func NewUpdateConfigurationsInternalServerError() *UpdateConfigurationsInternalServerError

NewUpdateConfigurationsInternalServerError creates a UpdateConfigurationsInternalServerError with default headers values

func (*UpdateConfigurationsInternalServerError) Error

type UpdateConfigurationsOK

type UpdateConfigurationsOK struct {
}

UpdateConfigurationsOK handles this case with default header values.

Modify system configurations successfully.

func NewUpdateConfigurationsOK

func NewUpdateConfigurationsOK() *UpdateConfigurationsOK

NewUpdateConfigurationsOK creates a UpdateConfigurationsOK with default headers values

func (*UpdateConfigurationsOK) Error

func (o *UpdateConfigurationsOK) Error() string

type UpdateConfigurationsParams

type UpdateConfigurationsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Configurations
	  The configuration map can contain a subset of the attributes of the schema, which are to be updated.

	*/
	Configurations *model.Configurations

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

UpdateConfigurationsParams contains all the parameters to send to the API endpoint for the update configurations operation typically these are written to a http.Request

func NewUpdateConfigurationsParams

func NewUpdateConfigurationsParams() *UpdateConfigurationsParams

NewUpdateConfigurationsParams creates a new UpdateConfigurationsParams object with the default values initialized.

func NewUpdateConfigurationsParamsWithContext

func NewUpdateConfigurationsParamsWithContext(ctx context.Context) *UpdateConfigurationsParams

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

func NewUpdateConfigurationsParamsWithHTTPClient

func NewUpdateConfigurationsParamsWithHTTPClient(client *http.Client) *UpdateConfigurationsParams

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

func NewUpdateConfigurationsParamsWithTimeout

func NewUpdateConfigurationsParamsWithTimeout(timeout time.Duration) *UpdateConfigurationsParams

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

func (*UpdateConfigurationsParams) SetConfigurations

func (o *UpdateConfigurationsParams) SetConfigurations(configurations *model.Configurations)

SetConfigurations adds the configurations to the update configurations params

func (*UpdateConfigurationsParams) SetContext

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

SetContext adds the context to the update configurations params

func (*UpdateConfigurationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update configurations params

func (*UpdateConfigurationsParams) SetTimeout

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

SetTimeout adds the timeout to the update configurations params

func (*UpdateConfigurationsParams) SetXRequestID

func (o *UpdateConfigurationsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update configurations params

func (*UpdateConfigurationsParams) WithConfigurations

func (o *UpdateConfigurationsParams) WithConfigurations(configurations *model.Configurations) *UpdateConfigurationsParams

WithConfigurations adds the configurations to the update configurations params

func (*UpdateConfigurationsParams) WithContext

WithContext adds the context to the update configurations params

func (*UpdateConfigurationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update configurations params

func (*UpdateConfigurationsParams) WithTimeout

WithTimeout adds the timeout to the update configurations params

func (*UpdateConfigurationsParams) WithXRequestID

func (o *UpdateConfigurationsParams) WithXRequestID(xRequestID *string) *UpdateConfigurationsParams

WithXRequestID adds the xRequestID to the update configurations params

func (*UpdateConfigurationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateConfigurationsReader

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

UpdateConfigurationsReader is a Reader for the UpdateConfigurations structure.

func (*UpdateConfigurationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateConfigurationsUnauthorized

type UpdateConfigurationsUnauthorized struct {
}

UpdateConfigurationsUnauthorized handles this case with default header values.

User need to log in first.

func NewUpdateConfigurationsUnauthorized

func NewUpdateConfigurationsUnauthorized() *UpdateConfigurationsUnauthorized

NewUpdateConfigurationsUnauthorized creates a UpdateConfigurationsUnauthorized with default headers values

func (*UpdateConfigurationsUnauthorized) Error

Jump to

Keyboard shortcuts

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