restapi

package
v0.0.0-...-9b07614 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MulanPSL-2.0 Imports: 32 Imported by: 1

Documentation

Overview

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

Code generated by github.com/deepmap/oapi-codegen version v1.8.1 DO NOT EDIT.

restapi package provides the restful api interface based on openapi standard.

Index

Constants

View Source
const (
	Servermgt_oauth2Scopes = "servermgt_oauth2.Scopes"
)

Variables

This section is empty.

Functions

func CreateAuthValidator

func CreateAuthValidator(v JWSValidator) (echo.MiddlewareFunc, error)

CreateAuthValidator creates auth validator in order to start the server smoothly.

func CreateTestAuthToken

func CreateTestAuthToken() ([]byte, error)

CreateTestAuthToken creates test auth token and returns token.

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func NewDeleteIdBasevaluesBasevalueidRequest

func NewDeleteIdBasevaluesBasevalueidRequest(server string, id int64, basevalueid int64) (*http.Request, error)

NewDeleteIdBasevaluesBasevalueidRequest generates requests for DeleteIdBasevaluesBasevalueid

func NewDeleteIdReportsReportidRequest

func NewDeleteIdReportsReportidRequest(server string, id int64, reportid int64) (*http.Request, error)

NewDeleteIdReportsReportidRequest generates requests for DeleteIdReportsReportid

func NewDeleteIdRequest

func NewDeleteIdRequest(server string, id int64) (*http.Request, error)

NewDeleteIdRequest generates requests for DeleteId

func NewDeleteIdTaTauuidTabasevaluesTabasevalueidRequest

func NewDeleteIdTaTauuidTabasevaluesTabasevalueidRequest(server string, id int64, tauuid string, tabasevalueid int64) (*http.Request, error)

NewDeleteIdTaTauuidTabasevaluesTabasevalueidRequest generates requests for DeleteIdTaTauuidTabasevaluesTabasevalueid

func NewDeleteIdTaTauuidTareportsTareportidRequest

func NewDeleteIdTaTauuidTareportsTareportidRequest(server string, id int64, tauuid string, tareportid int64) (*http.Request, error)

NewDeleteIdTaTauuidTareportsTareportidRequest generates requests for DeleteIdTaTauuidTareportsTareportid

func NewGetConfigRequest

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

NewGetConfigRequest generates requests for GetConfig

func NewGetFromToRequest

func NewGetFromToRequest(server string, from int64, to int64) (*http.Request, error)

NewGetFromToRequest generates requests for GetFromTo

func NewGetIdBasevaluesBasevalueidRequest

func NewGetIdBasevaluesBasevalueidRequest(server string, id int64, basevalueid int64) (*http.Request, error)

NewGetIdBasevaluesBasevalueidRequest generates requests for GetIdBasevaluesBasevalueid

func NewGetIdBasevaluesRequest

func NewGetIdBasevaluesRequest(server string, id int64) (*http.Request, error)

NewGetIdBasevaluesRequest generates requests for GetIdBasevalues

func NewGetIdContainerStatusRequest

func NewGetIdContainerStatusRequest(server string, id int64) (*http.Request, error)

NewGetIdContainerStatusRequest generates requests for GetIdContainerStatus

func NewGetIdDeviceStatusRequest

func NewGetIdDeviceStatusRequest(server string, id int64) (*http.Request, error)

NewGetIdDeviceStatusRequest generates requests for GetIdDeviceStatus

func NewGetIdNewbasevalueRequest

func NewGetIdNewbasevalueRequest(server string, id int64) (*http.Request, error)

NewGetIdNewbasevalueRequest generates requests for GetIdNewbasevalue

func NewGetIdReportsReportidRequest

func NewGetIdReportsReportidRequest(server string, id int64, reportid int64) (*http.Request, error)

NewGetIdReportsReportidRequest generates requests for GetIdReportsReportid

func NewGetIdReportsRequest

func NewGetIdReportsRequest(server string, id int64) (*http.Request, error)

NewGetIdReportsRequest generates requests for GetIdReports

func NewGetIdRequest

func NewGetIdRequest(server string, id int64) (*http.Request, error)

NewGetIdRequest generates requests for GetId

func NewGetIdTaTauuidNewtabasevalueRequest

func NewGetIdTaTauuidNewtabasevalueRequest(server string, id int64, tauuid string) (*http.Request, error)

NewGetIdTaTauuidNewtabasevalueRequest generates requests for GetIdTaTauuidNewtabasevalue

func NewGetIdTaTauuidStatusRequest

func NewGetIdTaTauuidStatusRequest(server string, id int64, tauuid string) (*http.Request, error)

NewGetIdTaTauuidStatusRequest generates requests for GetIdTaTauuidStatus

func NewGetIdTaTauuidTabasevaluesRequest

func NewGetIdTaTauuidTabasevaluesRequest(server string, id int64, tauuid string) (*http.Request, error)

NewGetIdTaTauuidTabasevaluesRequest generates requests for GetIdTaTauuidTabasevalues

func NewGetIdTaTauuidTabasevaluesTabasevalueidRequest

func NewGetIdTaTauuidTabasevaluesTabasevalueidRequest(server string, id int64, tauuid string, tabasevalueid int64) (*http.Request, error)

NewGetIdTaTauuidTabasevaluesTabasevalueidRequest generates requests for GetIdTaTauuidTabasevaluesTabasevalueid

func NewGetIdTaTauuidTareportsRequest

func NewGetIdTaTauuidTareportsRequest(server string, id int64, tauuid string) (*http.Request, error)

NewGetIdTaTauuidTareportsRequest generates requests for GetIdTaTauuidTareports

func NewGetIdTaTauuidTareportsTareportidRequest

func NewGetIdTaTauuidTareportsTareportidRequest(server string, id int64, tauuid string, tareportid int64) (*http.Request, error)

NewGetIdTaTauuidTareportsTareportidRequest generates requests for GetIdTaTauuidTareportsTareportid

func NewGetLoginRequest

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

NewGetLoginRequest generates requests for GetLogin

func NewGetRequest

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

NewGetRequest generates requests for Get

func NewGetVersionRequest

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

NewGetVersionRequest generates requests for GetVersion

func NewPostConfigRequest

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

NewPostConfigRequest generates requests for PostConfig

func NewPostIdBasevaluesBasevalueidRequest

func NewPostIdBasevaluesBasevalueidRequest(server string, id int64, basevalueid int64) (*http.Request, error)

NewPostIdBasevaluesBasevalueidRequest generates requests for PostIdBasevaluesBasevalueid

func NewPostIdNewbasevalueRequest

func NewPostIdNewbasevalueRequest(server string, id int64) (*http.Request, error)

NewPostIdNewbasevalueRequest generates requests for PostIdNewbasevalue

func NewPostIdRequest

func NewPostIdRequest(server string, id int64) (*http.Request, error)

NewPostIdRequest generates requests for PostId

func NewPostIdTaTauuidNewtabasevalueRequest

func NewPostIdTaTauuidNewtabasevalueRequest(server string, id int64, tauuid string) (*http.Request, error)

NewPostIdTaTauuidNewtabasevalueRequest generates requests for PostIdTaTauuidNewtabasevalue

func NewPostIdTaTauuidTabasevaluesTabasevalueidRequest

func NewPostIdTaTauuidTabasevaluesTabasevalueidRequest(server string, id int64, tauuid string, tabasevalueid int64) (*http.Request, error)

NewPostIdTaTauuidTabasevaluesTabasevalueidRequest generates requests for PostIdTaTauuidTabasevaluesTabasevalueid

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

func StartServer

func StartServer(https bool)

StartServer starts a server.

func StartServerHttp

func StartServerHttp(port string)

StartServerHttp starts a http server to provide reat api services.

func StartServerHttps

func StartServerHttps(httpsPort string)

StartServerHttps starts a https server to provide reat api services.

func StopServer

func StopServer()

StopServer stops stops the server.

Types

type BaseValueInfo

type BaseValueInfo struct {
	Basetype   string `json:"basetype"`
	Bios       string `json:"bios"`
	Clientid   int64  `json:"clientid"`
	Createtime string `json:"createtime"`
	Enabled    bool   `json:"enabled"`
	Id         int64  `json:"id"`
	Ima        string `json:"ima"`
	Name       string `json:"name"`
	Pcr        string `json:"pcr"`
	Uuid       string `json:"uuid"`
}

BaseValueInfo defines model for BaseValueInfo.

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) DeleteId

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

func (*Client) DeleteIdBasevaluesBasevalueid

func (c *Client) DeleteIdBasevaluesBasevalueid(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteIdReportsReportid

func (c *Client) DeleteIdReportsReportid(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteIdTaTauuidTabasevaluesTabasevalueid

func (c *Client) DeleteIdTaTauuidTabasevaluesTabasevalueid(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteIdTaTauuidTareportsTareportid

func (c *Client) DeleteIdTaTauuidTareportsTareportid(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Get

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

func (*Client) GetConfig

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

func (*Client) GetFromTo

func (c *Client) GetFromTo(ctx context.Context, from int64, to int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetId

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

func (*Client) GetIdBasevalues

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

func (*Client) GetIdBasevaluesBasevalueid

func (c *Client) GetIdBasevaluesBasevalueid(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdContainerStatus

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

func (*Client) GetIdDeviceStatus

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

func (*Client) GetIdNewbasevalue

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

func (*Client) GetIdReports

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

func (*Client) GetIdReportsReportid

func (c *Client) GetIdReportsReportid(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdTaTauuidNewtabasevalue

func (c *Client) GetIdTaTauuidNewtabasevalue(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdTaTauuidStatus

func (c *Client) GetIdTaTauuidStatus(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdTaTauuidTabasevalues

func (c *Client) GetIdTaTauuidTabasevalues(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdTaTauuidTabasevaluesTabasevalueid

func (c *Client) GetIdTaTauuidTabasevaluesTabasevalueid(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdTaTauuidTareports

func (c *Client) GetIdTaTauuidTareports(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdTaTauuidTareportsTareportid

func (c *Client) GetIdTaTauuidTareportsTareportid(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogin

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

func (*Client) GetVersion

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

func (*Client) PostConfig

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

func (*Client) PostId

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

func (*Client) PostIdBasevaluesBasevalueid

func (c *Client) PostIdBasevaluesBasevalueid(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostIdNewbasevalue

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

func (*Client) PostIdTaTauuidNewtabasevalue

func (c *Client) PostIdTaTauuidNewtabasevalue(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostIdTaTauuidTabasevaluesTabasevalueid

func (c *Client) PostIdTaTauuidTabasevaluesTabasevalueid(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// Get request
	Get(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	// GetFromTo request
	GetFromTo(ctx context.Context, from int64, to int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteId request
	DeleteId(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetId request
	GetId(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostId request
	PostId(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdBasevalues request
	GetIdBasevalues(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIdBasevaluesBasevalueid request
	DeleteIdBasevaluesBasevalueid(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdBasevaluesBasevalueid request
	GetIdBasevaluesBasevalueid(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostIdBasevaluesBasevalueid request
	PostIdBasevaluesBasevalueid(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdContainerStatus request
	GetIdContainerStatus(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdDeviceStatus request
	GetIdDeviceStatus(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdNewbasevalue request
	GetIdNewbasevalue(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostIdNewbasevalue request
	PostIdNewbasevalue(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdReports request
	GetIdReports(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIdReportsReportid request
	DeleteIdReportsReportid(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdReportsReportid request
	GetIdReportsReportid(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdTaTauuidNewtabasevalue request
	GetIdTaTauuidNewtabasevalue(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostIdTaTauuidNewtabasevalue request
	PostIdTaTauuidNewtabasevalue(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdTaTauuidStatus request
	GetIdTaTauuidStatus(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdTaTauuidTabasevalues request
	GetIdTaTauuidTabasevalues(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIdTaTauuidTabasevaluesTabasevalueid request
	DeleteIdTaTauuidTabasevaluesTabasevalueid(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdTaTauuidTabasevaluesTabasevalueid request
	GetIdTaTauuidTabasevaluesTabasevalueid(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostIdTaTauuidTabasevaluesTabasevalueid request
	PostIdTaTauuidTabasevaluesTabasevalueid(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdTaTauuidTareports request
	GetIdTaTauuidTareports(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIdTaTauuidTareportsTareportid request
	DeleteIdTaTauuidTareportsTareportid(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdTaTauuidTareportsTareportid request
	GetIdTaTauuidTareportsTareportid(ctx context.Context, id int64, tauuid string, tareportid int64, 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) DeleteIdBasevaluesBasevalueidWithResponse

func (c *ClientWithResponses) DeleteIdBasevaluesBasevalueidWithResponse(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*DeleteIdBasevaluesBasevalueidResponse, error)

DeleteIdBasevaluesBasevalueidWithResponse request returning *DeleteIdBasevaluesBasevalueidResponse

func (*ClientWithResponses) DeleteIdReportsReportidWithResponse

func (c *ClientWithResponses) DeleteIdReportsReportidWithResponse(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*DeleteIdReportsReportidResponse, error)

DeleteIdReportsReportidWithResponse request returning *DeleteIdReportsReportidResponse

func (*ClientWithResponses) DeleteIdTaTauuidTabasevaluesTabasevalueidWithResponse

func (c *ClientWithResponses) DeleteIdTaTauuidTabasevaluesTabasevalueidWithResponse(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*DeleteIdTaTauuidTabasevaluesTabasevalueidResponse, error)

DeleteIdTaTauuidTabasevaluesTabasevalueidWithResponse request returning *DeleteIdTaTauuidTabasevaluesTabasevalueidResponse

func (*ClientWithResponses) DeleteIdTaTauuidTareportsTareportidWithResponse

func (c *ClientWithResponses) DeleteIdTaTauuidTareportsTareportidWithResponse(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*DeleteIdTaTauuidTareportsTareportidResponse, error)

DeleteIdTaTauuidTareportsTareportidWithResponse request returning *DeleteIdTaTauuidTareportsTareportidResponse

func (*ClientWithResponses) DeleteIdWithResponse

func (c *ClientWithResponses) DeleteIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*DeleteIdResponse, error)

DeleteIdWithResponse request returning *DeleteIdResponse

func (*ClientWithResponses) GetConfigWithResponse

func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)

GetConfigWithResponse request returning *GetConfigResponse

func (*ClientWithResponses) GetFromToWithResponse

func (c *ClientWithResponses) GetFromToWithResponse(ctx context.Context, from int64, to int64, reqEditors ...RequestEditorFn) (*GetFromToResponse, error)

GetFromToWithResponse request returning *GetFromToResponse

func (*ClientWithResponses) GetIdBasevaluesBasevalueidWithResponse

func (c *ClientWithResponses) GetIdBasevaluesBasevalueidWithResponse(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*GetIdBasevaluesBasevalueidResponse, error)

GetIdBasevaluesBasevalueidWithResponse request returning *GetIdBasevaluesBasevalueidResponse

func (*ClientWithResponses) GetIdBasevaluesWithResponse

func (c *ClientWithResponses) GetIdBasevaluesWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdBasevaluesResponse, error)

GetIdBasevaluesWithResponse request returning *GetIdBasevaluesResponse

func (*ClientWithResponses) GetIdContainerStatusWithResponse

func (c *ClientWithResponses) GetIdContainerStatusWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdContainerStatusResponse, error)

GetIdContainerStatusWithResponse request returning *GetIdContainerStatusResponse

func (*ClientWithResponses) GetIdDeviceStatusWithResponse

func (c *ClientWithResponses) GetIdDeviceStatusWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdDeviceStatusResponse, error)

GetIdDeviceStatusWithResponse request returning *GetIdDeviceStatusResponse

func (*ClientWithResponses) GetIdNewbasevalueWithResponse

func (c *ClientWithResponses) GetIdNewbasevalueWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdNewbasevalueResponse, error)

GetIdNewbasevalueWithResponse request returning *GetIdNewbasevalueResponse

func (*ClientWithResponses) GetIdReportsReportidWithResponse

func (c *ClientWithResponses) GetIdReportsReportidWithResponse(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*GetIdReportsReportidResponse, error)

GetIdReportsReportidWithResponse request returning *GetIdReportsReportidResponse

func (*ClientWithResponses) GetIdReportsWithResponse

func (c *ClientWithResponses) GetIdReportsWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdReportsResponse, error)

GetIdReportsWithResponse request returning *GetIdReportsResponse

func (*ClientWithResponses) GetIdTaTauuidNewtabasevalueWithResponse

func (c *ClientWithResponses) GetIdTaTauuidNewtabasevalueWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidNewtabasevalueResponse, error)

GetIdTaTauuidNewtabasevalueWithResponse request returning *GetIdTaTauuidNewtabasevalueResponse

func (*ClientWithResponses) GetIdTaTauuidStatusWithResponse

func (c *ClientWithResponses) GetIdTaTauuidStatusWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidStatusResponse, error)

GetIdTaTauuidStatusWithResponse request returning *GetIdTaTauuidStatusResponse

func (*ClientWithResponses) GetIdTaTauuidTabasevaluesTabasevalueidWithResponse

func (c *ClientWithResponses) GetIdTaTauuidTabasevaluesTabasevalueidWithResponse(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTabasevaluesTabasevalueidResponse, error)

GetIdTaTauuidTabasevaluesTabasevalueidWithResponse request returning *GetIdTaTauuidTabasevaluesTabasevalueidResponse

func (*ClientWithResponses) GetIdTaTauuidTabasevaluesWithResponse

func (c *ClientWithResponses) GetIdTaTauuidTabasevaluesWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTabasevaluesResponse, error)

GetIdTaTauuidTabasevaluesWithResponse request returning *GetIdTaTauuidTabasevaluesResponse

func (*ClientWithResponses) GetIdTaTauuidTareportsTareportidWithResponse

func (c *ClientWithResponses) GetIdTaTauuidTareportsTareportidWithResponse(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTareportsTareportidResponse, error)

GetIdTaTauuidTareportsTareportidWithResponse request returning *GetIdTaTauuidTareportsTareportidResponse

func (*ClientWithResponses) GetIdTaTauuidTareportsWithResponse

func (c *ClientWithResponses) GetIdTaTauuidTareportsWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTareportsResponse, error)

GetIdTaTauuidTareportsWithResponse request returning *GetIdTaTauuidTareportsResponse

func (*ClientWithResponses) GetIdWithResponse

func (c *ClientWithResponses) GetIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdResponse, error)

GetIdWithResponse request returning *GetIdResponse

func (*ClientWithResponses) GetLoginWithResponse

func (c *ClientWithResponses) GetLoginWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLoginResponse, error)

GetLoginWithResponse request returning *GetLoginResponse

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

GetVersionWithResponse request returning *GetVersionResponse

func (*ClientWithResponses) GetWithResponse

func (c *ClientWithResponses) GetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResponse, error)

GetWithResponse request returning *GetResponse

func (*ClientWithResponses) PostConfigWithResponse

func (c *ClientWithResponses) PostConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigResponse, error)

PostConfigWithResponse request returning *PostConfigResponse

func (*ClientWithResponses) PostIdBasevaluesBasevalueidWithResponse

func (c *ClientWithResponses) PostIdBasevaluesBasevalueidWithResponse(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*PostIdBasevaluesBasevalueidResponse, error)

PostIdBasevaluesBasevalueidWithResponse request returning *PostIdBasevaluesBasevalueidResponse

func (*ClientWithResponses) PostIdNewbasevalueWithResponse

func (c *ClientWithResponses) PostIdNewbasevalueWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*PostIdNewbasevalueResponse, error)

PostIdNewbasevalueWithResponse request returning *PostIdNewbasevalueResponse

func (*ClientWithResponses) PostIdTaTauuidNewtabasevalueWithResponse

func (c *ClientWithResponses) PostIdTaTauuidNewtabasevalueWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*PostIdTaTauuidNewtabasevalueResponse, error)

PostIdTaTauuidNewtabasevalueWithResponse request returning *PostIdTaTauuidNewtabasevalueResponse

func (*ClientWithResponses) PostIdTaTauuidTabasevaluesTabasevalueidWithResponse

func (c *ClientWithResponses) PostIdTaTauuidTabasevaluesTabasevalueidWithResponse(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*PostIdTaTauuidTabasevaluesTabasevalueidResponse, error)

PostIdTaTauuidTabasevaluesTabasevalueidWithResponse request returning *PostIdTaTauuidTabasevaluesTabasevalueidResponse

func (*ClientWithResponses) PostIdWithResponse

func (c *ClientWithResponses) PostIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*PostIdResponse, error)

PostIdWithResponse request returning *PostIdResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// Get request
	GetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResponse, error)

	// GetConfig request
	GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigResponse, error)

	// PostConfig request
	PostConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostConfigResponse, error)

	// GetLogin request
	GetLoginWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLoginResponse, error)

	// GetVersion request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

	// GetFromTo request
	GetFromToWithResponse(ctx context.Context, from int64, to int64, reqEditors ...RequestEditorFn) (*GetFromToResponse, error)

	// DeleteId request
	DeleteIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*DeleteIdResponse, error)

	// GetId request
	GetIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdResponse, error)

	// PostId request
	PostIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*PostIdResponse, error)

	// GetIdBasevalues request
	GetIdBasevaluesWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdBasevaluesResponse, error)

	// DeleteIdBasevaluesBasevalueid request
	DeleteIdBasevaluesBasevalueidWithResponse(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*DeleteIdBasevaluesBasevalueidResponse, error)

	// GetIdBasevaluesBasevalueid request
	GetIdBasevaluesBasevalueidWithResponse(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*GetIdBasevaluesBasevalueidResponse, error)

	// PostIdBasevaluesBasevalueid request
	PostIdBasevaluesBasevalueidWithResponse(ctx context.Context, id int64, basevalueid int64, reqEditors ...RequestEditorFn) (*PostIdBasevaluesBasevalueidResponse, error)

	// GetIdContainerStatus request
	GetIdContainerStatusWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdContainerStatusResponse, error)

	// GetIdDeviceStatus request
	GetIdDeviceStatusWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdDeviceStatusResponse, error)

	// GetIdNewbasevalue request
	GetIdNewbasevalueWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdNewbasevalueResponse, error)

	// PostIdNewbasevalue request
	PostIdNewbasevalueWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*PostIdNewbasevalueResponse, error)

	// GetIdReports request
	GetIdReportsWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetIdReportsResponse, error)

	// DeleteIdReportsReportid request
	DeleteIdReportsReportidWithResponse(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*DeleteIdReportsReportidResponse, error)

	// GetIdReportsReportid request
	GetIdReportsReportidWithResponse(ctx context.Context, id int64, reportid int64, reqEditors ...RequestEditorFn) (*GetIdReportsReportidResponse, error)

	// GetIdTaTauuidNewtabasevalue request
	GetIdTaTauuidNewtabasevalueWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidNewtabasevalueResponse, error)

	// PostIdTaTauuidNewtabasevalue request
	PostIdTaTauuidNewtabasevalueWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*PostIdTaTauuidNewtabasevalueResponse, error)

	// GetIdTaTauuidStatus request
	GetIdTaTauuidStatusWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidStatusResponse, error)

	// GetIdTaTauuidTabasevalues request
	GetIdTaTauuidTabasevaluesWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTabasevaluesResponse, error)

	// DeleteIdTaTauuidTabasevaluesTabasevalueid request
	DeleteIdTaTauuidTabasevaluesTabasevalueidWithResponse(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*DeleteIdTaTauuidTabasevaluesTabasevalueidResponse, error)

	// GetIdTaTauuidTabasevaluesTabasevalueid request
	GetIdTaTauuidTabasevaluesTabasevalueidWithResponse(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTabasevaluesTabasevalueidResponse, error)

	// PostIdTaTauuidTabasevaluesTabasevalueid request
	PostIdTaTauuidTabasevaluesTabasevalueidWithResponse(ctx context.Context, id int64, tauuid string, tabasevalueid int64, reqEditors ...RequestEditorFn) (*PostIdTaTauuidTabasevaluesTabasevalueidResponse, error)

	// GetIdTaTauuidTareports request
	GetIdTaTauuidTareportsWithResponse(ctx context.Context, id int64, tauuid string, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTareportsResponse, error)

	// DeleteIdTaTauuidTareportsTareportid request
	DeleteIdTaTauuidTareportsTareportidWithResponse(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*DeleteIdTaTauuidTareportsTareportidResponse, error)

	// GetIdTaTauuidTareportsTareportid request
	GetIdTaTauuidTareportsTareportidWithResponse(ctx context.Context, id int64, tauuid string, tareportid int64, reqEditors ...RequestEditorFn) (*GetIdTaTauuidTareportsTareportidResponse, error)
}

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

type DeleteIdBasevaluesBasevalueidResponse

type DeleteIdBasevaluesBasevalueidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteIdBasevaluesBasevalueidResponse

func ParseDeleteIdBasevaluesBasevalueidResponse(rsp *http.Response) (*DeleteIdBasevaluesBasevalueidResponse, error)

ParseDeleteIdBasevaluesBasevalueidResponse parses an HTTP response from a DeleteIdBasevaluesBasevalueidWithResponse call

func (DeleteIdBasevaluesBasevalueidResponse) Status

Status returns HTTPResponse.Status

func (DeleteIdBasevaluesBasevalueidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteIdReportsReportidResponse

type DeleteIdReportsReportidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteIdReportsReportidResponse

func ParseDeleteIdReportsReportidResponse(rsp *http.Response) (*DeleteIdReportsReportidResponse, error)

ParseDeleteIdReportsReportidResponse parses an HTTP response from a DeleteIdReportsReportidWithResponse call

func (DeleteIdReportsReportidResponse) Status

Status returns HTTPResponse.Status

func (DeleteIdReportsReportidResponse) StatusCode

func (r DeleteIdReportsReportidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteIdResponse

type DeleteIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteIdResponse

func ParseDeleteIdResponse(rsp *http.Response) (*DeleteIdResponse, error)

ParseDeleteIdResponse parses an HTTP response from a DeleteIdWithResponse call

func (DeleteIdResponse) Status

func (r DeleteIdResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteIdResponse) StatusCode

func (r DeleteIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteIdTaTauuidTabasevaluesTabasevalueidResponse

type DeleteIdTaTauuidTabasevaluesTabasevalueidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteIdTaTauuidTabasevaluesTabasevalueidResponse

func ParseDeleteIdTaTauuidTabasevaluesTabasevalueidResponse(rsp *http.Response) (*DeleteIdTaTauuidTabasevaluesTabasevalueidResponse, error)

ParseDeleteIdTaTauuidTabasevaluesTabasevalueidResponse parses an HTTP response from a DeleteIdTaTauuidTabasevaluesTabasevalueidWithResponse call

func (DeleteIdTaTauuidTabasevaluesTabasevalueidResponse) Status

Status returns HTTPResponse.Status

func (DeleteIdTaTauuidTabasevaluesTabasevalueidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteIdTaTauuidTareportsTareportidResponse

type DeleteIdTaTauuidTareportsTareportidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteIdTaTauuidTareportsTareportidResponse

func ParseDeleteIdTaTauuidTareportsTareportidResponse(rsp *http.Response) (*DeleteIdTaTauuidTareportsTareportidResponse, error)

ParseDeleteIdTaTauuidTareportsTareportidResponse parses an HTTP response from a DeleteIdTaTauuidTareportsTareportidWithResponse call

func (DeleteIdTaTauuidTareportsTareportidResponse) Status

Status returns HTTPResponse.Status

func (DeleteIdTaTauuidTareportsTareportidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type GetConfigResponse

type GetConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *string
}

func ParseGetConfigResponse

func ParseGetConfigResponse(rsp *http.Response) (*GetConfigResponse, error)

ParseGetConfigResponse parses an HTTP response from a GetConfigWithResponse call

func (GetConfigResponse) Status

func (r GetConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetConfigResponse) StatusCode

func (r GetConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFromToResponse

type GetFromToResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ServerInfo
}

func ParseGetFromToResponse

func ParseGetFromToResponse(rsp *http.Response) (*GetFromToResponse, error)

ParseGetFromToResponse parses an HTTP response from a GetFromToWithResponse call

func (GetFromToResponse) Status

func (r GetFromToResponse) Status() string

Status returns HTTPResponse.Status

func (GetFromToResponse) StatusCode

func (r GetFromToResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdBasevaluesBasevalueidResponse

type GetIdBasevaluesBasevalueidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetIdBasevaluesBasevalueidResponse

func ParseGetIdBasevaluesBasevalueidResponse(rsp *http.Response) (*GetIdBasevaluesBasevalueidResponse, error)

ParseGetIdBasevaluesBasevalueidResponse parses an HTTP response from a GetIdBasevaluesBasevalueidWithResponse call

func (GetIdBasevaluesBasevalueidResponse) Status

Status returns HTTPResponse.Status

func (GetIdBasevaluesBasevalueidResponse) StatusCode

func (r GetIdBasevaluesBasevalueidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdBasevaluesResponse

type GetIdBasevaluesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]BaseValueInfo
}

func ParseGetIdBasevaluesResponse

func ParseGetIdBasevaluesResponse(rsp *http.Response) (*GetIdBasevaluesResponse, error)

ParseGetIdBasevaluesResponse parses an HTTP response from a GetIdBasevaluesWithResponse call

func (GetIdBasevaluesResponse) Status

func (r GetIdBasevaluesResponse) Status() string

Status returns HTTPResponse.Status

func (GetIdBasevaluesResponse) StatusCode

func (r GetIdBasevaluesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdContainerStatusResponse

type GetIdContainerStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetIdContainerStatusResponse

func ParseGetIdContainerStatusResponse(rsp *http.Response) (*GetIdContainerStatusResponse, error)

ParseGetIdContainerStatusResponse parses an HTTP response from a GetIdContainerStatusWithResponse call

func (GetIdContainerStatusResponse) Status

Status returns HTTPResponse.Status

func (GetIdContainerStatusResponse) StatusCode

func (r GetIdContainerStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdDeviceStatusResponse

type GetIdDeviceStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetIdDeviceStatusResponse

func ParseGetIdDeviceStatusResponse(rsp *http.Response) (*GetIdDeviceStatusResponse, error)

ParseGetIdDeviceStatusResponse parses an HTTP response from a GetIdDeviceStatusWithResponse call

func (GetIdDeviceStatusResponse) Status

func (r GetIdDeviceStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetIdDeviceStatusResponse) StatusCode

func (r GetIdDeviceStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdNewbasevalueResponse

type GetIdNewbasevalueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]BaseValueInfo
}

func ParseGetIdNewbasevalueResponse

func ParseGetIdNewbasevalueResponse(rsp *http.Response) (*GetIdNewbasevalueResponse, error)

ParseGetIdNewbasevalueResponse parses an HTTP response from a GetIdNewbasevalueWithResponse call

func (GetIdNewbasevalueResponse) Status

func (r GetIdNewbasevalueResponse) Status() string

Status returns HTTPResponse.Status

func (GetIdNewbasevalueResponse) StatusCode

func (r GetIdNewbasevalueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdReportsReportidResponse

type GetIdReportsReportidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetIdReportsReportidResponse

func ParseGetIdReportsReportidResponse(rsp *http.Response) (*GetIdReportsReportidResponse, error)

ParseGetIdReportsReportidResponse parses an HTTP response from a GetIdReportsReportidWithResponse call

func (GetIdReportsReportidResponse) Status

Status returns HTTPResponse.Status

func (GetIdReportsReportidResponse) StatusCode

func (r GetIdReportsReportidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdReportsResponse

type GetIdReportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ReportInfo
}

func ParseGetIdReportsResponse

func ParseGetIdReportsResponse(rsp *http.Response) (*GetIdReportsResponse, error)

ParseGetIdReportsResponse parses an HTTP response from a GetIdReportsWithResponse call

func (GetIdReportsResponse) Status

func (r GetIdReportsResponse) Status() string

Status returns HTTPResponse.Status

func (GetIdReportsResponse) StatusCode

func (r GetIdReportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdResponse

type GetIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetIdResponse

func ParseGetIdResponse(rsp *http.Response) (*GetIdResponse, error)

ParseGetIdResponse parses an HTTP response from a GetIdWithResponse call

func (GetIdResponse) Status

func (r GetIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetIdResponse) StatusCode

func (r GetIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdTaTauuidNewtabasevalueResponse

type GetIdTaTauuidNewtabasevalueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TaBaseValueInfo
}

func ParseGetIdTaTauuidNewtabasevalueResponse

func ParseGetIdTaTauuidNewtabasevalueResponse(rsp *http.Response) (*GetIdTaTauuidNewtabasevalueResponse, error)

ParseGetIdTaTauuidNewtabasevalueResponse parses an HTTP response from a GetIdTaTauuidNewtabasevalueWithResponse call

func (GetIdTaTauuidNewtabasevalueResponse) Status

Status returns HTTPResponse.Status

func (GetIdTaTauuidNewtabasevalueResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetIdTaTauuidStatusResponse

type GetIdTaTauuidStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetIdTaTauuidStatusResponse

func ParseGetIdTaTauuidStatusResponse(rsp *http.Response) (*GetIdTaTauuidStatusResponse, error)

ParseGetIdTaTauuidStatusResponse parses an HTTP response from a GetIdTaTauuidStatusWithResponse call

func (GetIdTaTauuidStatusResponse) Status

Status returns HTTPResponse.Status

func (GetIdTaTauuidStatusResponse) StatusCode

func (r GetIdTaTauuidStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdTaTauuidTabasevaluesResponse

type GetIdTaTauuidTabasevaluesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TaBaseValueInfo
}

func ParseGetIdTaTauuidTabasevaluesResponse

func ParseGetIdTaTauuidTabasevaluesResponse(rsp *http.Response) (*GetIdTaTauuidTabasevaluesResponse, error)

ParseGetIdTaTauuidTabasevaluesResponse parses an HTTP response from a GetIdTaTauuidTabasevaluesWithResponse call

func (GetIdTaTauuidTabasevaluesResponse) Status

Status returns HTTPResponse.Status

func (GetIdTaTauuidTabasevaluesResponse) StatusCode

func (r GetIdTaTauuidTabasevaluesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdTaTauuidTabasevaluesTabasevalueidResponse

type GetIdTaTauuidTabasevaluesTabasevalueidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetIdTaTauuidTabasevaluesTabasevalueidResponse

func ParseGetIdTaTauuidTabasevaluesTabasevalueidResponse(rsp *http.Response) (*GetIdTaTauuidTabasevaluesTabasevalueidResponse, error)

ParseGetIdTaTauuidTabasevaluesTabasevalueidResponse parses an HTTP response from a GetIdTaTauuidTabasevaluesTabasevalueidWithResponse call

func (GetIdTaTauuidTabasevaluesTabasevalueidResponse) Status

Status returns HTTPResponse.Status

func (GetIdTaTauuidTabasevaluesTabasevalueidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetIdTaTauuidTareportsResponse

type GetIdTaTauuidTareportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TaReportInfo
}

func ParseGetIdTaTauuidTareportsResponse

func ParseGetIdTaTauuidTareportsResponse(rsp *http.Response) (*GetIdTaTauuidTareportsResponse, error)

ParseGetIdTaTauuidTareportsResponse parses an HTTP response from a GetIdTaTauuidTareportsWithResponse call

func (GetIdTaTauuidTareportsResponse) Status

Status returns HTTPResponse.Status

func (GetIdTaTauuidTareportsResponse) StatusCode

func (r GetIdTaTauuidTareportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdTaTauuidTareportsTareportidResponse

type GetIdTaTauuidTareportsTareportidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetIdTaTauuidTareportsTareportidResponse

func ParseGetIdTaTauuidTareportsTareportidResponse(rsp *http.Response) (*GetIdTaTauuidTareportsTareportidResponse, error)

ParseGetIdTaTauuidTareportsTareportidResponse parses an HTTP response from a GetIdTaTauuidTareportsTareportidWithResponse call

func (GetIdTaTauuidTareportsTareportidResponse) Status

Status returns HTTPResponse.Status

func (GetIdTaTauuidTareportsTareportidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetLoginResponse

type GetLoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetLoginResponse

func ParseGetLoginResponse(rsp *http.Response) (*GetLoginResponse, error)

ParseGetLoginResponse parses an HTTP response from a GetLoginWithResponse call

func (GetLoginResponse) Status

func (r GetLoginResponse) Status() string

Status returns HTTPResponse.Status

func (GetLoginResponse) StatusCode

func (r GetLoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResponse

type GetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ServerInfo
}

func ParseGetResponse

func ParseGetResponse(rsp *http.Response) (*GetResponse, error)

ParseGetResponse parses an HTTP response from a GetWithResponse call

func (GetResponse) Status

func (r GetResponse) Status() string

Status returns HTTPResponse.Status

func (GetResponse) StatusCode

func (r GetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionResponse

type GetVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *string
}

func ParseGetVersionResponse

func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)

ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call

func (GetVersionResponse) Status

func (r GetVersionResponse) Status() string

Status returns HTTPResponse.Status

func (GetVersionResponse) StatusCode

func (r GetVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type JWSValidator

type JWSValidator interface {
	ValidateJWS(jws string) (jwt.Token, error)
}

JWSValidator is used to validate JWS payloads and return a JWT if they're valid

type JsonResult

type JsonResult struct {
	Result string
}

JsonResult means result in json format

type MyRestAPIServer

type MyRestAPIServer struct {
}

MyRestAPIServer means rest api server

func (*MyRestAPIServer) DeleteId

func (s *MyRestAPIServer) DeleteId(ctx echo.Context, id int64) error

(DELETE /{id}) DeleteId delete node {id}

delete a node by html curl -X DELETE http://localhost:40002/{id} delete a node by json curl -X DELETE -H "Content-type: application/json" http://localhost:40002/{id}

func (*MyRestAPIServer) DeleteIdBasevaluesBasevalueid

func (s *MyRestAPIServer) DeleteIdBasevaluesBasevalueid(ctx echo.Context, id int64, basevalueid int64) error

(DELETE /{id}/basevalues/{basevalueid}) DeleteIdBasevaluesBasevalueid deletes node {id} one base value {basevalueid}.

func (*MyRestAPIServer) DeleteIdReportsReportid

func (s *MyRestAPIServer) DeleteIdReportsReportid(ctx echo.Context, id int64, reportid int64) error

(DELETE /{id}/reports/{reportid}) DeleteIdReportsReportid delete node {id} one report {reportid}

delete node {id} report {reportid} by html curl -X DELETE http://localhost:40002/{id}/reports/{reportid} delete node {id} report {reportid} by json curl -X DELETE -H "Content-type: application/json" http://localhost:40002/{id}/reports/{reportid}

func (*MyRestAPIServer) DeleteIdTaTauuidTabasevaluesTabasevalueid

func (s *MyRestAPIServer) DeleteIdTaTauuidTabasevaluesTabasevalueid(
	ctx echo.Context,
	id int64,
	tauuid string,
	tabasevalueid int64) error

DeleteIdTaTauuidTabasevaluesTabasevalueid deletes ta basevalue. (DELETE /{id}/ta/{tauuid}/tabasevalues/{tabasevalueid}) curl -X DELETE -H "Content-type: application/json" -H "Authorization: $AUTHTOKEN" -k http://localhost:40003/{id}/ta/{tauuid}/tabasevalues/{tabasevalueid} test pass

func (*MyRestAPIServer) DeleteIdTaTauuidTareportsTareportid

func (s *MyRestAPIServer) DeleteIdTaTauuidTareportsTareportid(
	ctx echo.Context,
	id int64,
	tauuid string,
	tareportid int64) error

(DELETE /{id}/ta/{tauuid}/tareports/{tareportid}) DeleteIdTaTauuidTareportsTareportid deletes ta report by ta report id. curl -X DELETE -H "Content-type: application/json" http://localhost:40002/{id}/ta/{tauuid}/tareports/{tareportid} curl -k -X GET -H "Content-type: application/json" https://localhost:40003/28/ta/test/tareports/2 test pass

func (*MyRestAPIServer) Get

func (s *MyRestAPIServer) Get(ctx echo.Context) error

(GET /) Get gets all nodes information

read all nodes information as html curl -X GET http://localhost:40002 read all nodes information as json curl -X GET -H "Content-type: application/json" http://localhost:40002

func (*MyRestAPIServer) GetConfig

func (s *MyRestAPIServer) GetConfig(ctx echo.Context) error

(GET /config) GetConfig gets ras server configuration

read config as html curl -X GET http://localhost:40002/config read config as json curl -k -X GET -H "Content-type: application/json" -H "Authorization: $AUTHTOKEN" https://localhost:40003/config

func (*MyRestAPIServer) GetFromTo

func (s *MyRestAPIServer) GetFromTo(ctx echo.Context, from int64, to int64) error

(GET /{from}/{to}) GetFromTo gets information from {from} node to {to} node in order.

read a range nodes info as html curl -X GET http://localhost:40002/{from}/{to} read a range nodes info as json curl -X GET -H "Content-type: application/json" http://localhost:40002/{from}/{to}

func (*MyRestAPIServer) GetId

func (s *MyRestAPIServer) GetId(ctx echo.Context, id int64) error

GetId gets node {id} information

read node {id} info as html curl -X GET http://localhost:40002/{id} read node {id} info as json curl -X GET -H "Content-type: application/json" http://localhost:40002/{id}

func (*MyRestAPIServer) GetIdBasevalues

func (s *MyRestAPIServer) GetIdBasevalues(ctx echo.Context, id int64) error

(GET /{id}/basevalues) GetIdBasevalues gets node {id} all base values

func (*MyRestAPIServer) GetIdBasevaluesBasevalueid

func (s *MyRestAPIServer) GetIdBasevaluesBasevalueid(ctx echo.Context, id int64, basevalueid int64) error

(GET /{id}/basevalues/{basevalueid}) GetIdBasevaluesBasevalueid gets node {id} one base value {basevalueid}

func (*MyRestAPIServer) GetIdContainerStatus

func (s *MyRestAPIServer) GetIdContainerStatus(ctx echo.Context, cid int64) error

GetIdContainerStatus return a list of trust status for all containers of a given client (GET /{id}/container/status)

func (*MyRestAPIServer) GetIdDeviceStatus

func (s *MyRestAPIServer) GetIdDeviceStatus(ctx echo.Context, cid int64) error

GetIdDeviceStatus return a list of trust status for all devices of a given client (GET /{id}/device/status)

func (*MyRestAPIServer) GetIdNewbasevalue

func (s *MyRestAPIServer) GetIdNewbasevalue(ctx echo.Context, id int64) error

GetIdNewbasevalue gets a empty page as html for new base value, no need for json!!!

curl -X GET http://localhost:40002/{id}/newbasevalue

func (*MyRestAPIServer) GetIdReports

func (s *MyRestAPIServer) GetIdReports(ctx echo.Context, id int64) error

(GET /{id}/reports) GetIdReports get node {id} all reports

get node {id} all reports as html curl -X GET http://localhost:40002/{id}/reports get node {id} all reports as json curl -X GET -H "Content-type: application/json" http://localhost:40002/{id}/reports curl -k -X GET -H "Content-type: application/json" https://localhost:40003/{id}/reports

func (*MyRestAPIServer) GetIdReportsReportid

func (s *MyRestAPIServer) GetIdReportsReportid(ctx echo.Context, id int64, reportid int64) error

(GET /{id}/reports/{reportid}) GetIdReportsReportid get node {id} one report {reportid}

get node {id} report {reportid} as html curl -X GET http://localhost:40002/{id}/reports/{reportid} get node {id} report {reportid} as json curl -X GET -H "Content-type: application/json" http://localhost:40002/{id}/reports/{reportid}

func (*MyRestAPIServer) GetIdTaTauuidNewtabasevalue

func (s *MyRestAPIServer) GetIdTaTauuidNewtabasevalue(ctx echo.Context, id int64, tauuid string) error

(GET /{id}/ta/{tauuid}/newtabasevalue) GetIdTaTauuidNewtabasevalue gets ta basevalue. curl -k -X GET -H "Content-type: application/json" https://localhost:40003/30/ta/test/newtabasevalue

func (*MyRestAPIServer) GetIdTaTauuidStatus

func (s *MyRestAPIServer) GetIdTaTauuidStatus(ctx echo.Context, id int64, tauuid string) error

GetIdTaTauuidStatus returns the trust status for a specific TA of a given client (GET /{id}/ta/{tauuid}/status) curl -k -X GET -H "Content-type: application/json" -H "Authorization: $AUTHTOKEN" https://localhost:40003/{id}/ta/{tauuid}/status test pass

func (*MyRestAPIServer) GetIdTaTauuidTabasevalues

func (s *MyRestAPIServer) GetIdTaTauuidTabasevalues(ctx echo.Context, id int64, tauuid string) error

GetIdTaTauuidTabasevalues returns ta basevalues qureied by tauuid. (GET /{id}/ta/{tauuid}/tabasevalues) curl -k -X GET -H "Content-type: application/json" https://localhost:40003/{id}/ta/{tauuid}/tabasevalues test pass

func (*MyRestAPIServer) GetIdTaTauuidTabasevaluesTabasevalueid

func (s *MyRestAPIServer) GetIdTaTauuidTabasevaluesTabasevalueid(
	ctx echo.Context,
	id int64,
	tauuid string,
	tabasevalueid int64) error

GetIdTaTauuidTabasevaluesTabasevalueid gets ta basevalues by ta basevalue id. (GET /{id}/ta/{tauuid}/tabasevalues/{tabasevalueid}) curl -k -X GET -H "Content-type: application/json" https://localhost:40003/{id}/ta/{tauuid}/tabasevalues{tabasevalueid} test pass

func (*MyRestAPIServer) GetIdTaTauuidTareports

func (s *MyRestAPIServer) GetIdTaTauuidTareports(ctx echo.Context, id int64, tauuid string) error

(GET /{id}/ta/{tauuid}/tareports) GetIdTaTauuidTareports gets node {id} all reports as json

curl -X GET -H "Content-type: application/json" http://localhost:40002/{id}/ta/test/tareports curl -k -X GET -H "Content-type: application/json" https://localhost:40003/{id}/ta/test/tareports

test pass

func (*MyRestAPIServer) GetIdTaTauuidTareportsTareportid

func (s *MyRestAPIServer) GetIdTaTauuidTareportsTareportid(
	ctx echo.Context,
	id int64,
	tauuid string,
	tareportid int64) error

GetIdTaTauuidTareportsTareportid gets ta reports according to ta report id. (GET /{id}/ta/{tauuid}/tareports/{tareportid}) curl -k -X GET -H "Content-type: application/json" https://localhost:40003/28/ta/test/tareports/2 test pass

func (*MyRestAPIServer) GetLogin

func (s *MyRestAPIServer) GetLogin(ctx echo.Context) error

(GET /login) GetLogin gets login/logout ras server as admin information.

func (*MyRestAPIServer) GetVersion

func (s *MyRestAPIServer) GetVersion(ctx echo.Context) error

(GET /version) GetVersion gets ras server version information

read version as html curl -X GET http://localhost:40002/version read version as json curl -X GET -H "Content-type: application/json" http://localhost:40002/version

func (*MyRestAPIServer) PostConfig

func (s *MyRestAPIServer) PostConfig(ctx echo.Context) error

(POST /config) PostConfig modifies ras server configuration

write config as html/form curl -X POST -d "hbduration=10s" -d "trustduration=2m0s" -d"isallupdate=true" http://localhost:40002/config write config as json curl -X POST -k -H "Content-type: application/json" -H "Authorization: $AUTHTOKEN" -d '{"hbduration":"10s", "trustduration":"2m0s", "isallupdate": true}' https://localhost:40003/config

Notice: key name must be enclosed by "" in json format!!!

func (*MyRestAPIServer) PostId

func (s *MyRestAPIServer) PostId(ctx echo.Context, id int64) error

(POST /{id}) PostId modifies node {id} information

modify node {id} information by json curl -X POST -H "Content-type: multipart/form-data" -F "IsAutoUpdate=true;type=application/json" http://localhost:40002/{id}

func (*MyRestAPIServer) PostIdBasevaluesBasevalueid

func (s *MyRestAPIServer) PostIdBasevaluesBasevalueid(ctx echo.Context, cid, bid int64) error

(POST /{id}/basevalues/{basevalueid}) PostIdBasevaluesBasevalueid modifies node {id} one base value {basevalueid}

curl -X POST -H "Content-type: multipart/form-data" -F "ClientID=XX" -F "BaseType=XX" -F "Name=XX" -F "Enabled=true" -F "Pcr=@./filename" -F "Bios=@./filename" -F "Ima=@./filename" http://localhost:40002/{uuid}/device/basevalue save node {id} a new base value by json curl -X POST -k -H "Content-type: application/json" -H "Authorization: $AUTHTOKEN" https://localhost:40003/{id}/basevalues/{basevalueid} --data '{"enabled":true}'

因为这里只需要传enabled一个参数,所以不需要检查其是否为空,默认为false

func (*MyRestAPIServer) PostIdNewbasevalue

func (s *MyRestAPIServer) PostIdNewbasevalue(ctx echo.Context, id int64) error

(POST /{id}/newbasevalue) PostIdNewbasevalue save node {id} a new base value by html

curl -X POST -H "Content-type: multipart/form-data" -F "Name=XX" -F "Enabled=true" -F "Pcr=@./filename" -F "Bios=@./filename" -F "Ima=@./filename" http://localhost:40002/1/newbasevalue save node {id} a new base value by json

(pcr,bios,ima的赋值要经过安全检查,不满足的会发出解析错误,可以参考attestation\test\integration\manual_mode_test.sh的测试样例)

curl -X POST -H "Content-Type: application/json" -H "Authorization: $AUTHTOKEN" -k https://localhost:40003/{id}/newbasevalue -d '{"name":"test", "enabled":true,"isnewgroup":false}' save node {id} a new base value by xml (a simple base RIM file according to TCG Reference Integrity Manifest (RIM) Information Model https://trustedcomputinggroup.org/wp-content/uploads/TCG_RIM_Model_v1p01_r0p16_pub.pdf) curl -X POST -H "Content-Type: text/xml" -k https://localhost:40003/{id}/newbasevalue -d [Signed base RIM according to TCG RIM spec]

func (*MyRestAPIServer) PostIdTaTauuidNewtabasevalue

func (s *MyRestAPIServer) PostIdTaTauuidNewtabasevalue(ctx echo.Context, id int64, tauuid string) error

(POST /{id}/ta/{tauuid}/newtabasevalue) PostIdTaTauuidNewtabasevalue saves node {id} a new base value by json

curl -X POST -H "Content-Type: application/json" -k https://localhost:40003/{id}/ta/{tauuid}/newtabasevalue -d '{"name":"testname", "enabled":true, "valueinfo":"test info", "isnewgroup":false}' curl -X POST -H "Content-Type: application/json" -H "Authorization: $AUTHTOKEN" -k https://localhost:40003/24/ta/test/newtabasevalue -d '{"name":"testname", "enabled":true, "valueinfo":"test info", "isnewgroup":false}'

func (*MyRestAPIServer) PostIdTaTauuidTabasevaluesTabasevalueid

func (s *MyRestAPIServer) PostIdTaTauuidTabasevaluesTabasevalueid(
	ctx echo.Context,
	id int64,
	tauuid string,
	tabasevalueid int64) error

PostIdTaTauuidTabasevaluesTabasevalueid modifies ta basevalues by ta basevalue id. (POST /{id}/ta/{tauuid}/tabasevalues/{tabasevalueid}) curl -k -X POST -H "Content-type: application/json" -H "Authorization: $AUTHTOKEN" https://localhost:40003/{id}/ta/{tauuid}/tabasevalues/{tabasevalueid} --data '{"enabled":true}' test pass

type PostConfigResponse

type PostConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostConfigResponse

func ParsePostConfigResponse(rsp *http.Response) (*PostConfigResponse, error)

ParsePostConfigResponse parses an HTTP response from a PostConfigWithResponse call

func (PostConfigResponse) Status

func (r PostConfigResponse) Status() string

Status returns HTTPResponse.Status

func (PostConfigResponse) StatusCode

func (r PostConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostIdBasevaluesBasevalueidResponse

type PostIdBasevaluesBasevalueidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostIdBasevaluesBasevalueidResponse

func ParsePostIdBasevaluesBasevalueidResponse(rsp *http.Response) (*PostIdBasevaluesBasevalueidResponse, error)

ParsePostIdBasevaluesBasevalueidResponse parses an HTTP response from a PostIdBasevaluesBasevalueidWithResponse call

func (PostIdBasevaluesBasevalueidResponse) Status

Status returns HTTPResponse.Status

func (PostIdBasevaluesBasevalueidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostIdNewbasevalueResponse

type PostIdNewbasevalueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostIdNewbasevalueResponse

func ParsePostIdNewbasevalueResponse(rsp *http.Response) (*PostIdNewbasevalueResponse, error)

ParsePostIdNewbasevalueResponse parses an HTTP response from a PostIdNewbasevalueWithResponse call

func (PostIdNewbasevalueResponse) Status

Status returns HTTPResponse.Status

func (PostIdNewbasevalueResponse) StatusCode

func (r PostIdNewbasevalueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostIdResponse

type PostIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostIdResponse

func ParsePostIdResponse(rsp *http.Response) (*PostIdResponse, error)

ParsePostIdResponse parses an HTTP response from a PostIdWithResponse call

func (PostIdResponse) Status

func (r PostIdResponse) Status() string

Status returns HTTPResponse.Status

func (PostIdResponse) StatusCode

func (r PostIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostIdTaTauuidNewtabasevalueResponse

type PostIdTaTauuidNewtabasevalueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostIdTaTauuidNewtabasevalueResponse

func ParsePostIdTaTauuidNewtabasevalueResponse(rsp *http.Response) (*PostIdTaTauuidNewtabasevalueResponse, error)

ParsePostIdTaTauuidNewtabasevalueResponse parses an HTTP response from a PostIdTaTauuidNewtabasevalueWithResponse call

func (PostIdTaTauuidNewtabasevalueResponse) Status

Status returns HTTPResponse.Status

func (PostIdTaTauuidNewtabasevalueResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostIdTaTauuidTabasevaluesTabasevalueidResponse

type PostIdTaTauuidTabasevaluesTabasevalueidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostIdTaTauuidTabasevaluesTabasevalueidResponse

func ParsePostIdTaTauuidTabasevaluesTabasevalueidResponse(rsp *http.Response) (*PostIdTaTauuidTabasevaluesTabasevalueidResponse, error)

ParsePostIdTaTauuidTabasevaluesTabasevalueidResponse parses an HTTP response from a PostIdTaTauuidTabasevaluesTabasevalueidWithResponse call

func (PostIdTaTauuidTabasevaluesTabasevalueidResponse) Status

Status returns HTTPResponse.Status

func (PostIdTaTauuidTabasevaluesTabasevalueidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReportInfo

type ReportInfo struct {
	Bioslog    string `json:"bioslog"`
	Createtime string `json:"createtime"`
	Id         int64  `json:"id"`
	Imalog     string `json:"imalog"`
	Pcrlog     string `json:"pcrlog"`
	Quoted     string `json:"quoted"`
	Signature  string `json:"signature"`
	Trusted    bool   `json:"trusted"`
	Validated  bool   `json:"validated"`
}

ReportInfo defines model for ReportInfo.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInfo

type ServerInfo struct {
	Id           int64  `json:"id"`
	Isautoupdate bool   `json:"isautoupdate"`
	Online       bool   `json:"online"`
	Registered   bool   `json:"registered"`
	Regtime      string `json:"regtime"`
	Trusted      bool   `json:"trusted"`
}

ServerInfo defines model for ServerInfo.

type ServerInterface

type ServerInterface interface {

	// (GET /)
	Get(ctx echo.Context) error

	// (GET /config)
	GetConfig(ctx echo.Context) error

	// (POST /config)
	PostConfig(ctx echo.Context) error

	// (GET /login)
	GetLogin(ctx echo.Context) error

	// (GET /version)
	GetVersion(ctx echo.Context) error

	// (GET /{from}/{to})
	GetFromTo(ctx echo.Context, from int64, to int64) error

	// (DELETE /{id})
	DeleteId(ctx echo.Context, id int64) error

	// (GET /{id})
	GetId(ctx echo.Context, id int64) error

	// (POST /{id})
	PostId(ctx echo.Context, id int64) error

	// (GET /{id}/basevalues)
	GetIdBasevalues(ctx echo.Context, id int64) error

	// (DELETE /{id}/basevalues/{basevalueid})
	DeleteIdBasevaluesBasevalueid(ctx echo.Context, id int64, basevalueid int64) error

	// (GET /{id}/basevalues/{basevalueid})
	GetIdBasevaluesBasevalueid(ctx echo.Context, id int64, basevalueid int64) error

	// (POST /{id}/basevalues/{basevalueid})
	PostIdBasevaluesBasevalueid(ctx echo.Context, id int64, basevalueid int64) error
	// Return a list of trust status for all containers of a given client
	// (GET /{id}/container/status)
	GetIdContainerStatus(ctx echo.Context, id int64) error
	// Return a list of trust status for all devices of a given client
	// (GET /{id}/device/status)
	GetIdDeviceStatus(ctx echo.Context, id int64) error

	// (GET /{id}/newbasevalue)
	GetIdNewbasevalue(ctx echo.Context, id int64) error

	// (POST /{id}/newbasevalue)
	PostIdNewbasevalue(ctx echo.Context, id int64) error

	// (GET /{id}/reports)
	GetIdReports(ctx echo.Context, id int64) error

	// (DELETE /{id}/reports/{reportid})
	DeleteIdReportsReportid(ctx echo.Context, id int64, reportid int64) error

	// (GET /{id}/reports/{reportid})
	GetIdReportsReportid(ctx echo.Context, id int64, reportid int64) error

	// (GET /{id}/ta/{tauuid}/newtabasevalue)
	GetIdTaTauuidNewtabasevalue(ctx echo.Context, id int64, tauuid string) error

	// (POST /{id}/ta/{tauuid}/newtabasevalue)
	PostIdTaTauuidNewtabasevalue(ctx echo.Context, id int64, tauuid string) error
	// Return the trust status for a specific TA of a given client
	// (GET /{id}/ta/{tauuid}/status)
	GetIdTaTauuidStatus(ctx echo.Context, id int64, tauuid string) error

	// (GET /{id}/ta/{tauuid}/tabasevalues)
	GetIdTaTauuidTabasevalues(ctx echo.Context, id int64, tauuid string) error

	// (DELETE /{id}/ta/{tauuid}/tabasevalues/{tabasevalueid})
	DeleteIdTaTauuidTabasevaluesTabasevalueid(ctx echo.Context, id int64, tauuid string, tabasevalueid int64) error

	// (GET /{id}/ta/{tauuid}/tabasevalues/{tabasevalueid})
	GetIdTaTauuidTabasevaluesTabasevalueid(ctx echo.Context, id int64, tauuid string, tabasevalueid int64) error

	// (POST /{id}/ta/{tauuid}/tabasevalues/{tabasevalueid})
	PostIdTaTauuidTabasevaluesTabasevalueid(ctx echo.Context, id int64, tauuid string, tabasevalueid int64) error

	// (GET /{id}/ta/{tauuid}/tareports)
	GetIdTaTauuidTareports(ctx echo.Context, id int64, tauuid string) error

	// (DELETE /{id}/ta/{tauuid}/tareports/{tareportid})
	DeleteIdTaTauuidTareportsTareportid(ctx echo.Context, id int64, tauuid string, tareportid int64) error

	// (GET /{id}/ta/{tauuid}/tareports/{tareportid})
	GetIdTaTauuidTareportsTareportid(ctx echo.Context, id int64, tauuid string, tareportid int64) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) DeleteId

func (w *ServerInterfaceWrapper) DeleteId(ctx echo.Context) error

DeleteId converts echo context to params.

func (*ServerInterfaceWrapper) DeleteIdBasevaluesBasevalueid

func (w *ServerInterfaceWrapper) DeleteIdBasevaluesBasevalueid(ctx echo.Context) error

DeleteIdBasevaluesBasevalueid converts echo context to params.

func (*ServerInterfaceWrapper) DeleteIdReportsReportid

func (w *ServerInterfaceWrapper) DeleteIdReportsReportid(ctx echo.Context) error

DeleteIdReportsReportid converts echo context to params.

func (*ServerInterfaceWrapper) DeleteIdTaTauuidTabasevaluesTabasevalueid

func (w *ServerInterfaceWrapper) DeleteIdTaTauuidTabasevaluesTabasevalueid(ctx echo.Context) error

DeleteIdTaTauuidTabasevaluesTabasevalueid converts echo context to params.

func (*ServerInterfaceWrapper) DeleteIdTaTauuidTareportsTareportid

func (w *ServerInterfaceWrapper) DeleteIdTaTauuidTareportsTareportid(ctx echo.Context) error

DeleteIdTaTauuidTareportsTareportid converts echo context to params.

func (*ServerInterfaceWrapper) Get

func (w *ServerInterfaceWrapper) Get(ctx echo.Context) error

Get converts echo context to params.

func (*ServerInterfaceWrapper) GetConfig

func (w *ServerInterfaceWrapper) GetConfig(ctx echo.Context) error

GetConfig converts echo context to params.

func (*ServerInterfaceWrapper) GetFromTo

func (w *ServerInterfaceWrapper) GetFromTo(ctx echo.Context) error

GetFromTo converts echo context to params.

func (*ServerInterfaceWrapper) GetId

func (w *ServerInterfaceWrapper) GetId(ctx echo.Context) error

GetId converts echo context to params.

func (*ServerInterfaceWrapper) GetIdBasevalues

func (w *ServerInterfaceWrapper) GetIdBasevalues(ctx echo.Context) error

GetIdBasevalues converts echo context to params.

func (*ServerInterfaceWrapper) GetIdBasevaluesBasevalueid

func (w *ServerInterfaceWrapper) GetIdBasevaluesBasevalueid(ctx echo.Context) error

GetIdBasevaluesBasevalueid converts echo context to params.

func (*ServerInterfaceWrapper) GetIdContainerStatus

func (w *ServerInterfaceWrapper) GetIdContainerStatus(ctx echo.Context) error

GetIdContainerStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetIdDeviceStatus

func (w *ServerInterfaceWrapper) GetIdDeviceStatus(ctx echo.Context) error

GetIdDeviceStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetIdNewbasevalue

func (w *ServerInterfaceWrapper) GetIdNewbasevalue(ctx echo.Context) error

GetIdNewbasevalue converts echo context to params.

func (*ServerInterfaceWrapper) GetIdReports

func (w *ServerInterfaceWrapper) GetIdReports(ctx echo.Context) error

GetIdReports converts echo context to params.

func (*ServerInterfaceWrapper) GetIdReportsReportid

func (w *ServerInterfaceWrapper) GetIdReportsReportid(ctx echo.Context) error

GetIdReportsReportid converts echo context to params.

func (*ServerInterfaceWrapper) GetIdTaTauuidNewtabasevalue

func (w *ServerInterfaceWrapper) GetIdTaTauuidNewtabasevalue(ctx echo.Context) error

GetIdTaTauuidNewtabasevalue converts echo context to params.

func (*ServerInterfaceWrapper) GetIdTaTauuidStatus

func (w *ServerInterfaceWrapper) GetIdTaTauuidStatus(ctx echo.Context) error

GetIdTaTauuidStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetIdTaTauuidTabasevalues

func (w *ServerInterfaceWrapper) GetIdTaTauuidTabasevalues(ctx echo.Context) error

GetIdTaTauuidTabasevalues converts echo context to params.

func (*ServerInterfaceWrapper) GetIdTaTauuidTabasevaluesTabasevalueid

func (w *ServerInterfaceWrapper) GetIdTaTauuidTabasevaluesTabasevalueid(ctx echo.Context) error

GetIdTaTauuidTabasevaluesTabasevalueid converts echo context to params.

func (*ServerInterfaceWrapper) GetIdTaTauuidTareports

func (w *ServerInterfaceWrapper) GetIdTaTauuidTareports(ctx echo.Context) error

GetIdTaTauuidTareports converts echo context to params.

func (*ServerInterfaceWrapper) GetIdTaTauuidTareportsTareportid

func (w *ServerInterfaceWrapper) GetIdTaTauuidTareportsTareportid(ctx echo.Context) error

GetIdTaTauuidTareportsTareportid converts echo context to params.

func (*ServerInterfaceWrapper) GetLogin

func (w *ServerInterfaceWrapper) GetLogin(ctx echo.Context) error

GetLogin converts echo context to params.

func (*ServerInterfaceWrapper) GetVersion

func (w *ServerInterfaceWrapper) GetVersion(ctx echo.Context) error

GetVersion converts echo context to params.

func (*ServerInterfaceWrapper) PostConfig

func (w *ServerInterfaceWrapper) PostConfig(ctx echo.Context) error

PostConfig converts echo context to params.

func (*ServerInterfaceWrapper) PostId

func (w *ServerInterfaceWrapper) PostId(ctx echo.Context) error

PostId converts echo context to params.

func (*ServerInterfaceWrapper) PostIdBasevaluesBasevalueid

func (w *ServerInterfaceWrapper) PostIdBasevaluesBasevalueid(ctx echo.Context) error

PostIdBasevaluesBasevalueid converts echo context to params.

func (*ServerInterfaceWrapper) PostIdNewbasevalue

func (w *ServerInterfaceWrapper) PostIdNewbasevalue(ctx echo.Context) error

PostIdNewbasevalue converts echo context to params.

func (*ServerInterfaceWrapper) PostIdTaTauuidNewtabasevalue

func (w *ServerInterfaceWrapper) PostIdTaTauuidNewtabasevalue(ctx echo.Context) error

PostIdTaTauuidNewtabasevalue converts echo context to params.

func (*ServerInterfaceWrapper) PostIdTaTauuidTabasevaluesTabasevalueid

func (w *ServerInterfaceWrapper) PostIdTaTauuidTabasevaluesTabasevalueid(ctx echo.Context) error

PostIdTaTauuidTabasevaluesTabasevalueid converts echo context to params.

type TaBaseValueInfo

type TaBaseValueInfo struct {
	Clientid   int64  `json:"clientid"`
	Createtime string `json:"createtime"`
	Enabled    bool   `json:"enabled"`
	Id         int64  `json:"id"`
	Name       string `json:"name"`
	Uuid       string `json:"uuid"`
	Valueinfo  string `json:"valueinfo"`
}

TaBaseValueInfo defines model for TaBaseValueInfo.

type TaReportInfo

type TaReportInfo struct {
	Createtime string `json:"createtime"`
	Id         int64  `json:"id"`
	Trusted    bool   `json:"trusted"`
	Uuid       string `json:"uuid"`
	Validated  bool   `json:"validated"`
	Value      string `json:"value"`
}

TaReportInfo defines model for TaReportInfo.

Directories

Path Synopsis
kunpengsecl licensed under the Mulan PSL v2.
kunpengsecl licensed under the Mulan PSL v2.

Jump to

Keyboard shortcuts

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