admin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 1

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 admin API

func (*Client) PostAdminInit

func (a *Client) PostAdminInit(params *PostAdminInitParams, opts ...ClientOption) (*PostAdminInitNoContent, error)

PostAdminInit initializes the database

func (*Client) PostAdminReset

func (a *Client) PostAdminReset(params *PostAdminResetParams, opts ...ClientOption) (*PostAdminResetNoContent, error)

PostAdminReset resets the database

This will drop all tables and recreate them.

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 {
	PostAdminInit(params *PostAdminInitParams, opts ...ClientOption) (*PostAdminInitNoContent, error)

	PostAdminReset(params *PostAdminResetParams, opts ...ClientOption) (*PostAdminResetNoContent, 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 admin API client.

type PostAdminInitInternalServerError

type PostAdminInitInternalServerError struct {
	Payload *models.APIHTTPError
}

PostAdminInitInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostAdminInitInternalServerError

func NewPostAdminInitInternalServerError() *PostAdminInitInternalServerError

NewPostAdminInitInternalServerError creates a PostAdminInitInternalServerError with default headers values

func (*PostAdminInitInternalServerError) Code

Code gets the status code for the post admin init internal server error response

func (*PostAdminInitInternalServerError) Error

func (*PostAdminInitInternalServerError) GetPayload

func (*PostAdminInitInternalServerError) IsClientError

func (o *PostAdminInitInternalServerError) IsClientError() bool

IsClientError returns true when this post admin init internal server error response has a 4xx status code

func (*PostAdminInitInternalServerError) IsCode

func (o *PostAdminInitInternalServerError) IsCode(code int) bool

IsCode returns true when this post admin init internal server error response a status code equal to that given

func (*PostAdminInitInternalServerError) IsRedirect

func (o *PostAdminInitInternalServerError) IsRedirect() bool

IsRedirect returns true when this post admin init internal server error response has a 3xx status code

func (*PostAdminInitInternalServerError) IsServerError

func (o *PostAdminInitInternalServerError) IsServerError() bool

IsServerError returns true when this post admin init internal server error response has a 5xx status code

func (*PostAdminInitInternalServerError) IsSuccess

func (o *PostAdminInitInternalServerError) IsSuccess() bool

IsSuccess returns true when this post admin init internal server error response has a 2xx status code

func (*PostAdminInitInternalServerError) String

type PostAdminInitNoContent

type PostAdminInitNoContent struct {
}

PostAdminInitNoContent describes a response with status code 204, with default header values.

No Content

func NewPostAdminInitNoContent

func NewPostAdminInitNoContent() *PostAdminInitNoContent

NewPostAdminInitNoContent creates a PostAdminInitNoContent with default headers values

func (*PostAdminInitNoContent) Code

func (o *PostAdminInitNoContent) Code() int

Code gets the status code for the post admin init no content response

func (*PostAdminInitNoContent) Error

func (o *PostAdminInitNoContent) Error() string

func (*PostAdminInitNoContent) IsClientError

func (o *PostAdminInitNoContent) IsClientError() bool

IsClientError returns true when this post admin init no content response has a 4xx status code

func (*PostAdminInitNoContent) IsCode

func (o *PostAdminInitNoContent) IsCode(code int) bool

IsCode returns true when this post admin init no content response a status code equal to that given

func (*PostAdminInitNoContent) IsRedirect

func (o *PostAdminInitNoContent) IsRedirect() bool

IsRedirect returns true when this post admin init no content response has a 3xx status code

func (*PostAdminInitNoContent) IsServerError

func (o *PostAdminInitNoContent) IsServerError() bool

IsServerError returns true when this post admin init no content response has a 5xx status code

func (*PostAdminInitNoContent) IsSuccess

func (o *PostAdminInitNoContent) IsSuccess() bool

IsSuccess returns true when this post admin init no content response has a 2xx status code

func (*PostAdminInitNoContent) String

func (o *PostAdminInitNoContent) String() string

type PostAdminInitParams

type PostAdminInitParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAdminInitParams contains all the parameters to send to the API endpoint

for the post admin init operation.

Typically these are written to a http.Request.

func NewPostAdminInitParams

func NewPostAdminInitParams() *PostAdminInitParams

NewPostAdminInitParams creates a new PostAdminInitParams 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 NewPostAdminInitParamsWithContext

func NewPostAdminInitParamsWithContext(ctx context.Context) *PostAdminInitParams

NewPostAdminInitParamsWithContext creates a new PostAdminInitParams object with the ability to set a context for a request.

func NewPostAdminInitParamsWithHTTPClient

func NewPostAdminInitParamsWithHTTPClient(client *http.Client) *PostAdminInitParams

NewPostAdminInitParamsWithHTTPClient creates a new PostAdminInitParams object with the ability to set a custom HTTPClient for a request.

func NewPostAdminInitParamsWithTimeout

func NewPostAdminInitParamsWithTimeout(timeout time.Duration) *PostAdminInitParams

NewPostAdminInitParamsWithTimeout creates a new PostAdminInitParams object with the ability to set a timeout on a request.

func (*PostAdminInitParams) SetContext

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

SetContext adds the context to the post admin init params

func (*PostAdminInitParams) SetDefaults

func (o *PostAdminInitParams) SetDefaults()

SetDefaults hydrates default values in the post admin init params (not the query body).

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

func (*PostAdminInitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post admin init params

func (*PostAdminInitParams) SetTimeout

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

SetTimeout adds the timeout to the post admin init params

func (*PostAdminInitParams) WithContext

WithContext adds the context to the post admin init params

func (*PostAdminInitParams) WithDefaults

func (o *PostAdminInitParams) WithDefaults() *PostAdminInitParams

WithDefaults hydrates default values in the post admin init params (not the query body).

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

func (*PostAdminInitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post admin init params

func (*PostAdminInitParams) WithTimeout

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

WithTimeout adds the timeout to the post admin init params

func (*PostAdminInitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAdminInitReader

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

PostAdminInitReader is a Reader for the PostAdminInit structure.

func (*PostAdminInitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAdminResetInternalServerError

type PostAdminResetInternalServerError struct {
	Payload *models.APIHTTPError
}

PostAdminResetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostAdminResetInternalServerError

func NewPostAdminResetInternalServerError() *PostAdminResetInternalServerError

NewPostAdminResetInternalServerError creates a PostAdminResetInternalServerError with default headers values

func (*PostAdminResetInternalServerError) Code

Code gets the status code for the post admin reset internal server error response

func (*PostAdminResetInternalServerError) Error

func (*PostAdminResetInternalServerError) GetPayload

func (*PostAdminResetInternalServerError) IsClientError

func (o *PostAdminResetInternalServerError) IsClientError() bool

IsClientError returns true when this post admin reset internal server error response has a 4xx status code

func (*PostAdminResetInternalServerError) IsCode

func (o *PostAdminResetInternalServerError) IsCode(code int) bool

IsCode returns true when this post admin reset internal server error response a status code equal to that given

func (*PostAdminResetInternalServerError) IsRedirect

func (o *PostAdminResetInternalServerError) IsRedirect() bool

IsRedirect returns true when this post admin reset internal server error response has a 3xx status code

func (*PostAdminResetInternalServerError) IsServerError

func (o *PostAdminResetInternalServerError) IsServerError() bool

IsServerError returns true when this post admin reset internal server error response has a 5xx status code

func (*PostAdminResetInternalServerError) IsSuccess

func (o *PostAdminResetInternalServerError) IsSuccess() bool

IsSuccess returns true when this post admin reset internal server error response has a 2xx status code

func (*PostAdminResetInternalServerError) String

type PostAdminResetNoContent

type PostAdminResetNoContent struct {
}

PostAdminResetNoContent describes a response with status code 204, with default header values.

No Content

func NewPostAdminResetNoContent

func NewPostAdminResetNoContent() *PostAdminResetNoContent

NewPostAdminResetNoContent creates a PostAdminResetNoContent with default headers values

func (*PostAdminResetNoContent) Code

func (o *PostAdminResetNoContent) Code() int

Code gets the status code for the post admin reset no content response

func (*PostAdminResetNoContent) Error

func (o *PostAdminResetNoContent) Error() string

func (*PostAdminResetNoContent) IsClientError

func (o *PostAdminResetNoContent) IsClientError() bool

IsClientError returns true when this post admin reset no content response has a 4xx status code

func (*PostAdminResetNoContent) IsCode

func (o *PostAdminResetNoContent) IsCode(code int) bool

IsCode returns true when this post admin reset no content response a status code equal to that given

func (*PostAdminResetNoContent) IsRedirect

func (o *PostAdminResetNoContent) IsRedirect() bool

IsRedirect returns true when this post admin reset no content response has a 3xx status code

func (*PostAdminResetNoContent) IsServerError

func (o *PostAdminResetNoContent) IsServerError() bool

IsServerError returns true when this post admin reset no content response has a 5xx status code

func (*PostAdminResetNoContent) IsSuccess

func (o *PostAdminResetNoContent) IsSuccess() bool

IsSuccess returns true when this post admin reset no content response has a 2xx status code

func (*PostAdminResetNoContent) String

func (o *PostAdminResetNoContent) String() string

type PostAdminResetParams

type PostAdminResetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAdminResetParams contains all the parameters to send to the API endpoint

for the post admin reset operation.

Typically these are written to a http.Request.

func NewPostAdminResetParams

func NewPostAdminResetParams() *PostAdminResetParams

NewPostAdminResetParams creates a new PostAdminResetParams 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 NewPostAdminResetParamsWithContext

func NewPostAdminResetParamsWithContext(ctx context.Context) *PostAdminResetParams

NewPostAdminResetParamsWithContext creates a new PostAdminResetParams object with the ability to set a context for a request.

func NewPostAdminResetParamsWithHTTPClient

func NewPostAdminResetParamsWithHTTPClient(client *http.Client) *PostAdminResetParams

NewPostAdminResetParamsWithHTTPClient creates a new PostAdminResetParams object with the ability to set a custom HTTPClient for a request.

func NewPostAdminResetParamsWithTimeout

func NewPostAdminResetParamsWithTimeout(timeout time.Duration) *PostAdminResetParams

NewPostAdminResetParamsWithTimeout creates a new PostAdminResetParams object with the ability to set a timeout on a request.

func (*PostAdminResetParams) SetContext

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

SetContext adds the context to the post admin reset params

func (*PostAdminResetParams) SetDefaults

func (o *PostAdminResetParams) SetDefaults()

SetDefaults hydrates default values in the post admin reset params (not the query body).

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

func (*PostAdminResetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post admin reset params

func (*PostAdminResetParams) SetTimeout

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

SetTimeout adds the timeout to the post admin reset params

func (*PostAdminResetParams) WithContext

WithContext adds the context to the post admin reset params

func (*PostAdminResetParams) WithDefaults

func (o *PostAdminResetParams) WithDefaults() *PostAdminResetParams

WithDefaults hydrates default values in the post admin reset params (not the query body).

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

func (*PostAdminResetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post admin reset params

func (*PostAdminResetParams) WithTimeout

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

WithTimeout adds the timeout to the post admin reset params

func (*PostAdminResetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAdminResetReader

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

PostAdminResetReader is a Reader for the PostAdminReset structure.

func (*PostAdminResetReader) ReadResponse

func (o *PostAdminResetReader) 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