modules

package
v0.1.1-0...-04aab8d Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 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 modules API

func (*Client) GetModule

func (a *Client) GetModule(params *GetModuleParams) (*GetModuleOK, error)

GetModule gets a module

Returns a module, by id.

func (*Client) ListModules

func (a *Client) ListModules(params *ListModulesParams) (*ListModulesOK, error)

ListModules lists modules

The `modules` endpoint returns all loaded modules.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetModule(params *GetModuleParams) (*GetModuleOK, error)

	ListModules(params *ListModulesParams) (*ListModulesOK, 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 modules API client.

type GetModuleOK

type GetModuleOK struct {
	Payload *models.Module
}

GetModuleOK handles this case with default header values.

Success

func NewGetModuleOK

func NewGetModuleOK() *GetModuleOK

NewGetModuleOK creates a GetModuleOK with default headers values

func (*GetModuleOK) Error

func (o *GetModuleOK) Error() string

func (*GetModuleOK) GetPayload

func (o *GetModuleOK) GetPayload() *models.Module

type GetModuleParams

type GetModuleParams struct {

	/*ID
	  Unique resource identifier

	*/
	ID string

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

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

func NewGetModuleParams

func NewGetModuleParams() *GetModuleParams

NewGetModuleParams creates a new GetModuleParams object with the default values initialized.

func NewGetModuleParamsWithContext

func NewGetModuleParamsWithContext(ctx context.Context) *GetModuleParams

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

func NewGetModuleParamsWithHTTPClient

func NewGetModuleParamsWithHTTPClient(client *http.Client) *GetModuleParams

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

func NewGetModuleParamsWithTimeout

func NewGetModuleParamsWithTimeout(timeout time.Duration) *GetModuleParams

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

func (*GetModuleParams) SetContext

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

SetContext adds the context to the get module params

func (*GetModuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get module params

func (*GetModuleParams) SetID

func (o *GetModuleParams) SetID(id string)

SetID adds the id to the get module params

func (*GetModuleParams) SetTimeout

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

SetTimeout adds the timeout to the get module params

func (*GetModuleParams) WithContext

func (o *GetModuleParams) WithContext(ctx context.Context) *GetModuleParams

WithContext adds the context to the get module params

func (*GetModuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get module params

func (*GetModuleParams) WithID

func (o *GetModuleParams) WithID(id string) *GetModuleParams

WithID adds the id to the get module params

func (*GetModuleParams) WithTimeout

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

WithTimeout adds the timeout to the get module params

func (*GetModuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetModuleReader

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

GetModuleReader is a Reader for the GetModule structure.

func (*GetModuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListModulesOK

type ListModulesOK struct {
	Payload []*models.Module
}

ListModulesOK handles this case with default header values.

Success

func NewListModulesOK

func NewListModulesOK() *ListModulesOK

NewListModulesOK creates a ListModulesOK with default headers values

func (*ListModulesOK) Error

func (o *ListModulesOK) Error() string

func (*ListModulesOK) GetPayload

func (o *ListModulesOK) GetPayload() []*models.Module

type ListModulesParams

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

ListModulesParams contains all the parameters to send to the API endpoint for the list modules operation typically these are written to a http.Request

func NewListModulesParams

func NewListModulesParams() *ListModulesParams

NewListModulesParams creates a new ListModulesParams object with the default values initialized.

func NewListModulesParamsWithContext

func NewListModulesParamsWithContext(ctx context.Context) *ListModulesParams

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

func NewListModulesParamsWithHTTPClient

func NewListModulesParamsWithHTTPClient(client *http.Client) *ListModulesParams

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

func NewListModulesParamsWithTimeout

func NewListModulesParamsWithTimeout(timeout time.Duration) *ListModulesParams

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

func (*ListModulesParams) SetContext

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

SetContext adds the context to the list modules params

func (*ListModulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list modules params

func (*ListModulesParams) SetTimeout

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

SetTimeout adds the timeout to the list modules params

func (*ListModulesParams) WithContext

func (o *ListModulesParams) WithContext(ctx context.Context) *ListModulesParams

WithContext adds the context to the list modules params

func (*ListModulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list modules params

func (*ListModulesParams) WithTimeout

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

WithTimeout adds the timeout to the list modules params

func (*ListModulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListModulesReader

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

ListModulesReader is a Reader for the ListModules structure.

func (*ListModulesReader) ReadResponse

func (o *ListModulesReader) 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
⌂ 换网址