mod_management

package
v0.4.11-alpha6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mod_management provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

View Source
const (
	Access_tokenScopes = "access_token.Scopes"
)

Variables

This section is empty.

Functions

func NewInstallableModuleListRequest

func NewInstallableModuleListRequest(server string) (*http.Request, error)

NewInstallableModuleListRequest generates requests for InstallableModuleList

func NewModuleInstallAsyncRequest

func NewModuleInstallAsyncRequest(server string, body ModuleInstallAsyncJSONRequestBody) (*http.Request, error)

NewModuleInstallAsyncRequest calls the generic ModuleInstallAsync builder with application/json body

func NewModuleInstallAsyncRequestWithBody

func NewModuleInstallAsyncRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewModuleInstallAsyncRequestWithBody generates requests for ModuleInstallAsync with any type of body

func NewModuleInstallRequest

func NewModuleInstallRequest(server string, body ModuleInstallJSONRequestBody) (*http.Request, error)

NewModuleInstallRequest calls the generic ModuleInstall builder with application/json body

func NewModuleInstallRequestWithBody

func NewModuleInstallRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewModuleInstallRequestWithBody generates requests for ModuleInstall with any type of body

func NewModuleListRequest

func NewModuleListRequest(server string) (*http.Request, error)

NewModuleListRequest generates requests for ModuleList

func NewModuleStartStopRequest

func NewModuleStartStopRequest(server string, name Name, body ModuleStartStopJSONRequestBody) (*http.Request, error)

NewModuleStartStopRequest calls the generic ModuleStartStop builder with application/json body

func NewModuleStartStopRequestWithBody

func NewModuleStartStopRequestWithBody(server string, name Name, contentType string, body io.Reader) (*http.Request, error)

NewModuleStartStopRequestWithBody generates requests for ModuleStartStop with any type of body

func NewModuleStatusRequest

func NewModuleStatusRequest(server string, name Name) (*http.Request, error)

NewModuleStatusRequest generates requests for ModuleStatus

func NewModuleUninstallRequest

func NewModuleUninstallRequest(server string, body ModuleUninstallJSONRequestBody) (*http.Request, error)

NewModuleUninstallRequest calls the generic ModuleUninstall builder with application/json body

func NewModuleUninstallRequestWithBody

func NewModuleUninstallRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewModuleUninstallRequestWithBody generates requests for ModuleUninstall with any type of body

func NewRefreshModuleRequest

func NewRefreshModuleRequest(server string) (*http.Request, error)

NewRefreshModuleRequest generates requests for RefreshModule

Types

type BaseResponse

type BaseResponse struct {
	// Message message returned by server side if there is any
	Message *string `json:"message,omitempty"`
}

BaseResponse defines model for base_response.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) InstallableModuleList

func (c *Client) InstallableModuleList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleInstall

func (c *Client) ModuleInstall(ctx context.Context, body ModuleInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleInstallAsync

func (c *Client) ModuleInstallAsync(ctx context.Context, body ModuleInstallAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleInstallAsyncWithBody

func (c *Client) ModuleInstallAsyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleInstallWithBody

func (c *Client) ModuleInstallWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleList

func (c *Client) ModuleList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleStartStop

func (c *Client) ModuleStartStop(ctx context.Context, name Name, body ModuleStartStopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleStartStopWithBody

func (c *Client) ModuleStartStopWithBody(ctx context.Context, name Name, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleStatus

func (c *Client) ModuleStatus(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleUninstall

func (c *Client) ModuleUninstall(ctx context.Context, body ModuleUninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModuleUninstallWithBody

func (c *Client) ModuleUninstallWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RefreshModule

func (c *Client) RefreshModule(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ModuleUninstallWithBody request with any body
	ModuleUninstallWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ModuleUninstall(ctx context.Context, body ModuleUninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InstallableModuleList request
	InstallableModuleList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModuleInstallWithBody request with any body
	ModuleInstallWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ModuleInstall(ctx context.Context, body ModuleInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModuleList request
	ModuleList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RefreshModule request
	RefreshModule(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModuleStatus request
	ModuleStatus(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModuleStartStopWithBody request with any body
	ModuleStartStopWithBody(ctx context.Context, name Name, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ModuleStartStop(ctx context.Context, name Name, body ModuleStartStopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModuleInstallAsyncWithBody request with any body
	ModuleInstallAsyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ModuleInstallAsync(ctx context.Context, body ModuleInstallAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) InstallableModuleListWithResponse

func (c *ClientWithResponses) InstallableModuleListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InstallableModuleListResponse, error)

InstallableModuleListWithResponse request returning *InstallableModuleListResponse

func (*ClientWithResponses) ModuleInstallAsyncWithBodyWithResponse

func (c *ClientWithResponses) ModuleInstallAsyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleInstallAsyncResponse, error)

ModuleInstallAsyncWithBodyWithResponse request with arbitrary body returning *ModuleInstallAsyncResponse

func (*ClientWithResponses) ModuleInstallAsyncWithResponse

func (c *ClientWithResponses) ModuleInstallAsyncWithResponse(ctx context.Context, body ModuleInstallAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleInstallAsyncResponse, error)

func (*ClientWithResponses) ModuleInstallWithBodyWithResponse

func (c *ClientWithResponses) ModuleInstallWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleInstallResponse, error)

ModuleInstallWithBodyWithResponse request with arbitrary body returning *ModuleInstallResponse

func (*ClientWithResponses) ModuleInstallWithResponse

func (c *ClientWithResponses) ModuleInstallWithResponse(ctx context.Context, body ModuleInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleInstallResponse, error)

func (*ClientWithResponses) ModuleListWithResponse

func (c *ClientWithResponses) ModuleListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ModuleListResponse, error)

ModuleListWithResponse request returning *ModuleListResponse

func (*ClientWithResponses) ModuleStartStopWithBodyWithResponse

func (c *ClientWithResponses) ModuleStartStopWithBodyWithResponse(ctx context.Context, name Name, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleStartStopResponse, error)

ModuleStartStopWithBodyWithResponse request with arbitrary body returning *ModuleStartStopResponse

func (*ClientWithResponses) ModuleStartStopWithResponse

func (c *ClientWithResponses) ModuleStartStopWithResponse(ctx context.Context, name Name, body ModuleStartStopJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleStartStopResponse, error)

func (*ClientWithResponses) ModuleStatusWithResponse

func (c *ClientWithResponses) ModuleStatusWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*ModuleStatusResponse, error)

ModuleStatusWithResponse request returning *ModuleStatusResponse

func (*ClientWithResponses) ModuleUninstallWithBodyWithResponse

func (c *ClientWithResponses) ModuleUninstallWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleUninstallResponse, error)

ModuleUninstallWithBodyWithResponse request with arbitrary body returning *ModuleUninstallResponse

func (*ClientWithResponses) ModuleUninstallWithResponse

func (c *ClientWithResponses) ModuleUninstallWithResponse(ctx context.Context, body ModuleUninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleUninstallResponse, error)

func (*ClientWithResponses) RefreshModuleWithResponse

func (c *ClientWithResponses) RefreshModuleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshModuleResponse, error)

RefreshModuleWithResponse request returning *RefreshModuleResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ModuleUninstallWithBodyWithResponse request with any body
	ModuleUninstallWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleUninstallResponse, error)

	ModuleUninstallWithResponse(ctx context.Context, body ModuleUninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleUninstallResponse, error)

	// InstallableModuleListWithResponse request
	InstallableModuleListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InstallableModuleListResponse, error)

	// ModuleInstallWithBodyWithResponse request with any body
	ModuleInstallWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleInstallResponse, error)

	ModuleInstallWithResponse(ctx context.Context, body ModuleInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleInstallResponse, error)

	// ModuleListWithResponse request
	ModuleListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ModuleListResponse, error)

	// RefreshModuleWithResponse request
	RefreshModuleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshModuleResponse, error)

	// ModuleStatusWithResponse request
	ModuleStatusWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*ModuleStatusResponse, error)

	// ModuleStartStopWithBodyWithResponse request with any body
	ModuleStartStopWithBodyWithResponse(ctx context.Context, name Name, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleStartStopResponse, error)

	ModuleStartStopWithResponse(ctx context.Context, name Name, body ModuleStartStopJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleStartStopResponse, error)

	// ModuleInstallAsyncWithBodyWithResponse request with any body
	ModuleInstallAsyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModuleInstallAsyncResponse, error)

	ModuleInstallAsyncWithResponse(ctx context.Context, body ModuleInstallAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*ModuleInstallAsyncResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InstallableModuleListOK

type InstallableModuleListOK struct {
	Data *[]RemoteModule `json:"data,omitempty"`

	// Message message returned by server side if there is any
	Message *string `json:"message,omitempty"`
}

InstallableModuleListOK defines model for installable_module_list_ok.

type InstallableModuleListResponse

type InstallableModuleListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InstallableModuleListOK
	JSON500      *ResponseInternalServerError
}

func ParseInstallableModuleListResponse

func ParseInstallableModuleListResponse(rsp *http.Response) (*InstallableModuleListResponse, error)

ParseInstallableModuleListResponse parses an HTTP response from a InstallableModuleListWithResponse call

func (InstallableModuleListResponse) Status

Status returns HTTPResponse.Status

func (InstallableModuleListResponse) StatusCode

func (r InstallableModuleListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Module

type Module struct {
	Name *string `json:"name,omitempty"`

	// Services a module can have one or more backend services
	Services *[]ModuleService `json:"services,omitempty"`
	UI       *ModuleUI        `json:"ui,omitempty"`
}

Module defines model for module.

type ModuleId

type ModuleId struct {
	Name string `json:"name"`
}

ModuleId defines model for module_id.

type ModuleInstallAsyncJSONRequestBody

type ModuleInstallAsyncJSONRequestBody = ModuleId

ModuleInstallAsyncJSONRequestBody defines body for ModuleInstallAsync for application/json ContentType.

type ModuleInstallAsyncResponse

type ModuleInstallAsyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ModuleInstallOk
	JSON500      *ResponseInternalServerError
}

func ParseModuleInstallAsyncResponse

func ParseModuleInstallAsyncResponse(rsp *http.Response) (*ModuleInstallAsyncResponse, error)

ParseModuleInstallAsyncResponse parses an HTTP response from a ModuleInstallAsyncWithResponse call

func (ModuleInstallAsyncResponse) Status

Status returns HTTPResponse.Status

func (ModuleInstallAsyncResponse) StatusCode

func (r ModuleInstallAsyncResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModuleInstallJSONRequestBody

type ModuleInstallJSONRequestBody = ModuleId

ModuleInstallJSONRequestBody defines body for ModuleInstall for application/json ContentType.

type ModuleInstallOk

type ModuleInstallOk = BaseResponse

ModuleInstallOk defines model for module_install_ok.

type ModuleInstallResponse

type ModuleInstallResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ModuleInstallOk
	JSON500      *ResponseInternalServerError
}

func ParseModuleInstallResponse

func ParseModuleInstallResponse(rsp *http.Response) (*ModuleInstallResponse, error)

ParseModuleInstallResponse parses an HTTP response from a ModuleInstallWithResponse call

func (ModuleInstallResponse) Status

func (r ModuleInstallResponse) Status() string

Status returns HTTPResponse.Status

func (ModuleInstallResponse) StatusCode

func (r ModuleInstallResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModuleListOK

type ModuleListOK struct {
	Data *[]Module `json:"data,omitempty"`

	// Message message returned by server side if there is any
	Message *string `json:"message,omitempty"`
}

ModuleListOK defines model for module_list_ok.

type ModuleListResponse

type ModuleListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ModuleListOK
	JSON500      *ResponseInternalServerError
}

func ParseModuleListResponse

func ParseModuleListResponse(rsp *http.Response) (*ModuleListResponse, error)

ParseModuleListResponse parses an HTTP response from a ModuleListWithResponse call

func (ModuleListResponse) Status

func (r ModuleListResponse) Status() string

Status returns HTTPResponse.Status

func (ModuleListResponse) StatusCode

func (r ModuleListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModuleService

type ModuleService struct {
	Name *string `json:"name,omitempty"`
}

ModuleService defines model for module_service.

type ModuleStartStopJSONBody

type ModuleStartStopJSONBody struct {
	Action ModuleStartStopJSONBodyAction `json:"action"`
}

ModuleStartStopJSONBody defines parameters for ModuleStartStop.

type ModuleStartStopJSONBodyAction

type ModuleStartStopJSONBodyAction string

ModuleStartStopJSONBodyAction defines parameters for ModuleStartStop.

const (
	Start ModuleStartStopJSONBodyAction = "start"
	Stop  ModuleStartStopJSONBodyAction = "stop"
)

Defines values for ModuleStartStopJSONBodyAction.

type ModuleStartStopJSONRequestBody

type ModuleStartStopJSONRequestBody ModuleStartStopJSONBody

ModuleStartStopJSONRequestBody defines body for ModuleStartStop for application/json ContentType.

type ModuleStartStopOk

type ModuleStartStopOk = BaseResponse

ModuleStartStopOk defines model for module_start_stop_ok.

type ModuleStartStopResponse

type ModuleStartStopResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ModuleStartStopOk
	JSON400      *ResponseBadRequest
	JSON500      *ResponseInternalServerError
}

func ParseModuleStartStopResponse

func ParseModuleStartStopResponse(rsp *http.Response) (*ModuleStartStopResponse, error)

ParseModuleStartStopResponse parses an HTTP response from a ModuleStartStopWithResponse call

func (ModuleStartStopResponse) Status

func (r ModuleStartStopResponse) Status() string

Status returns HTTPResponse.Status

func (ModuleStartStopResponse) StatusCode

func (r ModuleStartStopResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModuleStatus

type ModuleStatus string

ModuleStatus defines model for module_status.

const (
	Running ModuleStatus = "running"
	Stopped ModuleStatus = "stopped"
)

Defines values for ModuleStatus.

type ModuleStatusOk

type ModuleStatusOk struct {
	Data *struct {
		Status *ModuleStatus `json:"status,omitempty"`
	} `json:"data,omitempty"`

	// Message message returned by server side if there is any
	Message *string `json:"message,omitempty"`
}

ModuleStatusOk defines model for module_status_ok.

type ModuleStatusResponse

type ModuleStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ModuleStatusOk
}

func ParseModuleStatusResponse

func ParseModuleStatusResponse(rsp *http.Response) (*ModuleStatusResponse, error)

ParseModuleStatusResponse parses an HTTP response from a ModuleStatusWithResponse call

func (ModuleStatusResponse) Status

func (r ModuleStatusResponse) Status() string

Status returns HTTPResponse.Status

func (ModuleStatusResponse) StatusCode

func (r ModuleStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModuleUI

type ModuleUI struct {
	Description *string            `json:"description,omitempty"`
	Entry       *string            `json:"entry,omitempty"`
	Formality   *ModuleUIFormality `json:"formality,omitempty"`
	Icon        *string            `json:"icon,omitempty"`
	Prefetch    *bool              `json:"prefetch,omitempty"`
	Show        *bool              `json:"show,omitempty"`
	Title       *map[string]string `json:"title,omitempty"`
}

ModuleUI defines model for module_ui.

type ModuleUIFormality

type ModuleUIFormality struct {
	Props *ModuleUIFormalityProperties `json:"props,omitempty"`
	Type  *ModuleUiFormalityType       `json:"type,omitempty"`
}

ModuleUIFormality defines model for module_ui_formality.

type ModuleUIFormalityProperties

type ModuleUIFormalityProperties struct {
	Animation    *string `json:"animation,omitempty"`
	HasModalCard *bool   `json:"hasModalCard,omitempty" yaml:"hasModalCard,omitempty"`
	Height       *string `json:"height,omitempty"`
	Width        *string `json:"width,omitempty"`
}

ModuleUIFormalityProperties defines model for module_ui_formality_properties.

type ModuleUiFormalityType

type ModuleUiFormalityType string

ModuleUiFormalityType defines model for ModuleUiFormality.Type.

const (
	ModuleFormalityModal  ModuleUiFormalityType = "modal"
	ModuleFormalityNewTab ModuleUiFormalityType = "newtab"
)

Defines values for ModuleUiFormalityType.

type ModuleUninstallJSONRequestBody

type ModuleUninstallJSONRequestBody = ModuleId

ModuleUninstallJSONRequestBody defines body for ModuleUninstall for application/json ContentType.

type ModuleUninstallOk

type ModuleUninstallOk = BaseResponse

ModuleUninstallOk defines model for module_uninstall_ok.

type ModuleUninstallResponse

type ModuleUninstallResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ModuleUninstallOk
	JSON500      *ResponseInternalServerError
}

func ParseModuleUninstallResponse

func ParseModuleUninstallResponse(rsp *http.Response) (*ModuleUninstallResponse, error)

ParseModuleUninstallResponse parses an HTTP response from a ModuleUninstallWithResponse call

func (ModuleUninstallResponse) Status

func (r ModuleUninstallResponse) Status() string

Status returns HTTPResponse.Status

func (ModuleUninstallResponse) StatusCode

func (r ModuleUninstallResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Name

type Name = string

Name defines model for name.

type RefreshModuleResponse

type RefreshModuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ResponseOK
	JSON500      *ResponseInternalServerError
}

func ParseRefreshModuleResponse

func ParseRefreshModuleResponse(rsp *http.Response) (*RefreshModuleResponse, error)

ParseRefreshModuleResponse parses an HTTP response from a RefreshModuleWithResponse call

func (RefreshModuleResponse) Status

func (r RefreshModuleResponse) Status() string

Status returns HTTPResponse.Status

func (RefreshModuleResponse) StatusCode

func (r RefreshModuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoteModule

type RemoteModule struct {
	Name  string  `json:"name"`
	Repo  *string `json:"repo,omitempty"`
	Title string  `json:"title"`
}

RemoteModule repo and url must have at least one

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestModuleInstall

type RequestModuleInstall = ModuleId

RequestModuleInstall defines model for request_module_install.

type RequestModuleUninstall

type RequestModuleUninstall = ModuleId

RequestModuleUninstall defines model for request_module_uninstall.

type ResponseBadRequest

type ResponseBadRequest = BaseResponse

ResponseBadRequest defines model for response_bad_request.

type ResponseInternalServerError

type ResponseInternalServerError = BaseResponse

ResponseInternalServerError defines model for response_internal_server_error.

type ResponseOK

type ResponseOK = BaseResponse

ResponseOK defines model for response_ok.

Jump to

Keyboard shortcuts

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