client

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

🔌 Microcks GO client

GoDoc GitHub tag Go version License Releases


How to get it

To get the latest version, use go1.21+ and fetch using the go get command. For example:

go get github.com/JulienBreux/microcks-client-go@latest

To get a specific version, use go1.21+ and fetch the desired version using the go get command. For example:

go get github.com/JulienBreux/microcks-client-go@v0.1.0

How to use it

package main

import (
    "github.com/JulienBreux/microcks-client-go"
)

const server = "http://localhost:8080/api"

fun main() {
	// Create client
	client, err := api.NewClientWithResponses(server)
	if err != nil {
		fatal(err)
	}

	// Request the Keycloak configuration
	ctx := context.Background()
	resp, err := c.actions.GetKeycloakConfigWithResponse(ctx)
	if err != nil {
		fatal(err)
	}

	// Print the response
	fmt.Printf("%+v\n\n", resp.JSON200)
}

License

The MIT License (MIT) - see LICENSE.md for more details

Documentation

Overview

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

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

Index

Constants

View Source
const (
	Jwt_bearerScopes = "jwt_bearer.Scopes"
)

Variables

This section is empty.

Functions

func NewActivateImportJobRequest

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

NewActivateImportJobRequest generates requests for ActivateImportJob

func NewCreateImportJobRequest

func NewCreateImportJobRequest(server string, body CreateImportJobJSONRequestBody) (*http.Request, error)

NewCreateImportJobRequest calls the generic CreateImportJob builder with application/json body

func NewCreateImportJobRequestWithBody

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

NewCreateImportJobRequestWithBody generates requests for CreateImportJob with any type of body

func NewCreateSecretRequest

func NewCreateSecretRequest(server string, body CreateSecretJSONRequestBody) (*http.Request, error)

NewCreateSecretRequest calls the generic CreateSecret builder with application/json body

func NewCreateSecretRequestWithBody

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

NewCreateSecretRequestWithBody generates requests for CreateSecret with any type of body

func NewCreateTestRequest

func NewCreateTestRequest(server string, body CreateTestJSONRequestBody) (*http.Request, error)

NewCreateTestRequest calls the generic CreateTest builder with application/json body

func NewCreateTestRequestWithBody

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

NewCreateTestRequestWithBody generates requests for CreateTest with any type of body

func NewDeleteImportJobRequest

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

NewDeleteImportJobRequest generates requests for DeleteImportJob

func NewDeleteSecretRequest

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

NewDeleteSecretRequest generates requests for DeleteSecret

func NewDeleteServiceRequest

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

NewDeleteServiceRequest generates requests for DeleteService

func NewExportSnapshotRequest

func NewExportSnapshotRequest(server string, params *ExportSnapshotParams) (*http.Request, error)

NewExportSnapshotRequest generates requests for ExportSnapshot

func NewGetAggregatedInvocationsStatsRequest

func NewGetAggregatedInvocationsStatsRequest(server string, params *GetAggregatedInvocationsStatsParams) (*http.Request, error)

NewGetAggregatedInvocationsStatsRequest generates requests for GetAggregatedInvocationsStats

func NewGetConformanceMetricsAggregationRequest

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

NewGetConformanceMetricsAggregationRequest generates requests for GetConformanceMetricsAggregation

func NewGetEventsByTestCaseRequest

func NewGetEventsByTestCaseRequest(server string, id string, testCaseId string) (*http.Request, error)

NewGetEventsByTestCaseRequest generates requests for GetEventsByTestCase

func NewGetFeaturesConfigurationRequest

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

NewGetFeaturesConfigurationRequest generates requests for GetFeaturesConfiguration

func NewGetImportJobCounterRequest

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

NewGetImportJobCounterRequest generates requests for GetImportJobCounter

func NewGetImportJobsRequest

func NewGetImportJobsRequest(server string, params *GetImportJobsParams) (*http.Request, error)

NewGetImportJobsRequest generates requests for GetImportJobs

func NewGetInvocationStatsByServiceRequest

func NewGetInvocationStatsByServiceRequest(server string, serviceName string, serviceVersion string, params *GetInvocationStatsByServiceParams) (*http.Request, error)

NewGetInvocationStatsByServiceRequest generates requests for GetInvocationStatsByService

func NewGetJobsIdRequest

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

NewGetJobsIdRequest generates requests for GetJobsId

func NewGetKeycloakConfigRequest

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

NewGetKeycloakConfigRequest generates requests for GetKeycloakConfig

func NewGetLatestAggregatedInvocationsStatsRequest

func NewGetLatestAggregatedInvocationsStatsRequest(server string, params *GetLatestAggregatedInvocationsStatsParams) (*http.Request, error)

NewGetLatestAggregatedInvocationsStatsRequest generates requests for GetLatestAggregatedInvocationsStats

func NewGetLatestTestResultsRequest

func NewGetLatestTestResultsRequest(server string, params *GetLatestTestResultsParams) (*http.Request, error)

NewGetLatestTestResultsRequest generates requests for GetLatestTestResults

func NewGetMessagesByTestCaseRequest

func NewGetMessagesByTestCaseRequest(server string, id string, testCaseId string) (*http.Request, error)

NewGetMessagesByTestCaseRequest generates requests for GetMessagesByTestCase

func NewGetResourceRequest

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

NewGetResourceRequest generates requests for GetResource

func NewGetResourcesByServiceRequest

func NewGetResourcesByServiceRequest(server string, serviceId string) (*http.Request, error)

NewGetResourcesByServiceRequest generates requests for GetResourcesByService

func NewGetSecretRequest

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

NewGetSecretRequest generates requests for GetSecret

func NewGetSecretsCounterRequest

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

NewGetSecretsCounterRequest generates requests for GetSecretsCounter

func NewGetSecretsRequest

func NewGetSecretsRequest(server string, params *GetSecretsParams) (*http.Request, error)

NewGetSecretsRequest generates requests for GetSecrets

func NewGetServiceRequest

func NewGetServiceRequest(server string, id string, params *GetServiceParams) (*http.Request, error)

NewGetServiceRequest generates requests for GetService

func NewGetServiceTestConformanceMetricRequest

func NewGetServiceTestConformanceMetricRequest(server string, serviceId string) (*http.Request, error)

NewGetServiceTestConformanceMetricRequest generates requests for GetServiceTestConformanceMetric

func NewGetServicesCounterRequest

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

NewGetServicesCounterRequest generates requests for GetServicesCounter

func NewGetServicesLabelsRequest

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

NewGetServicesLabelsRequest generates requests for GetServicesLabels

func NewGetServicesRequest

func NewGetServicesRequest(server string, params *GetServicesParams) (*http.Request, error)

NewGetServicesRequest generates requests for GetServices

func NewGetTestResultRequest

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

NewGetTestResultRequest generates requests for GetTestResult

func NewGetTestResultsByServiceCounterRequest

func NewGetTestResultsByServiceCounterRequest(server string, serviceId string) (*http.Request, error)

NewGetTestResultsByServiceCounterRequest generates requests for GetTestResultsByServiceCounter

func NewGetTestResultsByServiceRequest

func NewGetTestResultsByServiceRequest(server string, serviceId string) (*http.Request, error)

NewGetTestResultsByServiceRequest generates requests for GetTestResultsByService

func NewGetTopIvnocationsStatsByDayRequest

func NewGetTopIvnocationsStatsByDayRequest(server string, params *GetTopIvnocationsStatsByDayParams) (*http.Request, error)

NewGetTopIvnocationsStatsByDayRequest generates requests for GetTopIvnocationsStatsByDay

func NewImportSnapshotRequestWithBody

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

NewImportSnapshotRequestWithBody generates requests for ImportSnapshot with any type of body

func NewOverrideServiceOperationRequest

func NewOverrideServiceOperationRequest(server string, id string, params *OverrideServiceOperationParams, body OverrideServiceOperationJSONRequestBody) (*http.Request, error)

NewOverrideServiceOperationRequest calls the generic OverrideServiceOperation builder with application/json body

func NewOverrideServiceOperationRequestWithBody

func NewOverrideServiceOperationRequestWithBody(server string, id string, params *OverrideServiceOperationParams, contentType string, body io.Reader) (*http.Request, error)

NewOverrideServiceOperationRequestWithBody generates requests for OverrideServiceOperation with any type of body

func NewPostJobsIdRequest

func NewPostJobsIdRequest(server string, id string, body PostJobsIdJSONRequestBody) (*http.Request, error)

NewPostJobsIdRequest calls the generic PostJobsId builder with application/json body

func NewPostJobsIdRequestWithBody

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

NewPostJobsIdRequestWithBody generates requests for PostJobsId with any type of body

func NewReportTestCaseResultRequest

func NewReportTestCaseResultRequest(server string, id string, body ReportTestCaseResultJSONRequestBody) (*http.Request, error)

NewReportTestCaseResultRequest calls the generic ReportTestCaseResult builder with application/json body

func NewReportTestCaseResultRequestWithBody

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

NewReportTestCaseResultRequestWithBody generates requests for ReportTestCaseResult with any type of body

func NewSearchServicesRequest

func NewSearchServicesRequest(server string, params *SearchServicesParams) (*http.Request, error)

NewSearchServicesRequest generates requests for SearchServices

func NewStartImportJobRequest

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

NewStartImportJobRequest generates requests for StartImportJob

func NewStopImportJobRequest

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

NewStopImportJobRequest generates requests for StopImportJob

func NewUpdateSecretRequest

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

NewUpdateSecretRequest generates requests for UpdateSecret

func NewUpdateServiceMetadataRequest

func NewUpdateServiceMetadataRequest(server string, id string, body UpdateServiceMetadataJSONRequestBody) (*http.Request, error)

NewUpdateServiceMetadataRequest calls the generic UpdateServiceMetadata builder with application/json body

func NewUpdateServiceMetadataRequestWithBody

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

NewUpdateServiceMetadataRequestWithBody generates requests for UpdateServiceMetadata with any type of body

func NewUploadArtifactRequestWithBody

func NewUploadArtifactRequestWithBody(server string, params *UploadArtifactParams, contentType string, body io.Reader) (*http.Request, error)

NewUploadArtifactRequestWithBody generates requests for UploadArtifact with any type of body

Types

type AbstractExchange

type AbstractExchange struct {
	// Type Discriminant type for identifying kind of exchange
	Type AbstractExchangeType `json:"type"`
}

AbstractExchange Abstract bean representing a Service or API Exchange.

type AbstractExchangeType

type AbstractExchangeType string

AbstractExchangeType Discriminant type for identifying kind of exchange

const (
	AbstractExchangeTypeReqRespPair AbstractExchangeType = "reqRespPair"
	AbstractExchangeTypeUnidirEvent AbstractExchangeType = "unidirEvent"
)

Defines values for AbstractExchangeType.

type ActivateImportJobResponse

type ActivateImportJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImportJob
}

func ParseActivateImportJobResponse

func ParseActivateImportJobResponse(rsp *http.Response) (*ActivateImportJobResponse, error)

ParseActivateImportJobResponse parses an HTTP response from a ActivateImportJobWithResponse call

func (ActivateImportJobResponse) Status

func (r ActivateImportJobResponse) Status() string

Status returns HTTPResponse.Status

func (ActivateImportJobResponse) StatusCode

func (r ActivateImportJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ArtifactUpload

type ArtifactUpload struct {
	// File The artifact to upload
	File openapi_types.File `json:"file"`
}

ArtifactUpload Artifact to be imported by Microcks. This structure represents a mime-multipart file upload (as specified here: https://swagger.io/docs/specification/describing-request-body/file-upload/)

type Binding

type Binding struct {
	// DestinationName Name of destination for asynchronous messages of this operation
	DestinationName string `json:"destinationName"`

	// DestinationType Type of destination for asynchronous messages of this operation
	DestinationType *string `json:"destinationType,omitempty"`

	// KeyType Type of key for Kafka messages
	KeyType *string `json:"keyType,omitempty"`

	// Method HTTP method for WebSocket binding
	Method *string `json:"method,omitempty"`

	// Persistent Persistent attribute for MQTT binding
	Persistent *bool `json:"persistent,omitempty"`

	// QoS Quality of Service attribute for MQTT binding
	QoS *string `json:"qoS,omitempty"`

	// Type Protocol binding identifier
	Type BindingType `json:"type"`
}

Binding Protocol binding details for asynchronous operations

type BindingType

type BindingType string

BindingType Protocol binding identifier

const (
	AMQP         BindingType = "AMQP"
	GOOGLEPUBSUB BindingType = "GOOGLEPUBSUB"
	KAFKA        BindingType = "KAFKA"
	MQTT         BindingType = "MQTT"
	NATS         BindingType = "NATS"
	WS           BindingType = "WS"
)

Defines values for BindingType.

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

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

func (*Client) CreateImportJob

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

func (*Client) CreateImportJobWithBody

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

func (*Client) CreateSecret

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

func (*Client) CreateSecretWithBody

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

func (*Client) CreateTest

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

func (*Client) CreateTestWithBody

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

func (*Client) DeleteImportJob

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

func (*Client) DeleteSecret

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

func (*Client) DeleteService

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

func (*Client) ExportSnapshot

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

func (*Client) GetAggregatedInvocationsStats

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

func (*Client) GetConformanceMetricsAggregation

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

func (*Client) GetEventsByTestCase

func (c *Client) GetEventsByTestCase(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFeaturesConfiguration

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

func (*Client) GetImportJobCounter

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

func (*Client) GetImportJobs

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

func (*Client) GetInvocationStatsByService

func (c *Client) GetInvocationStatsByService(ctx context.Context, serviceName string, serviceVersion string, params *GetInvocationStatsByServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetJobsId

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

func (*Client) GetKeycloakConfig

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

func (*Client) GetLatestAggregatedInvocationsStats

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

func (*Client) GetLatestTestResults

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

func (*Client) GetMessagesByTestCase

func (c *Client) GetMessagesByTestCase(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetResource

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

func (*Client) GetResourcesByService

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

func (*Client) GetSecret

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

func (*Client) GetSecrets

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

func (*Client) GetSecretsCounter

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

func (*Client) GetService

func (c *Client) GetService(ctx context.Context, id string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetServiceTestConformanceMetric

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

func (*Client) GetServices

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

func (*Client) GetServicesCounter

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

func (*Client) GetServicesLabels

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

func (*Client) GetTestResult

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

func (*Client) GetTestResultsByService

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

func (*Client) GetTestResultsByServiceCounter

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

func (*Client) GetTopIvnocationsStatsByDay

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

func (*Client) ImportSnapshotWithBody

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

func (*Client) OverrideServiceOperation

func (c *Client) OverrideServiceOperation(ctx context.Context, id string, params *OverrideServiceOperationParams, body OverrideServiceOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OverrideServiceOperationWithBody

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

func (*Client) PostJobsId

func (c *Client) PostJobsId(ctx context.Context, id string, body PostJobsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostJobsIdWithBody

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

func (*Client) ReportTestCaseResult

func (c *Client) ReportTestCaseResult(ctx context.Context, id string, body ReportTestCaseResultJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReportTestCaseResultWithBody

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

func (*Client) SearchServices

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

func (*Client) StartImportJob

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

func (*Client) StopImportJob

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

func (*Client) UpdateSecret

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

func (*Client) UpdateServiceMetadata

func (c *Client) UpdateServiceMetadata(ctx context.Context, id string, body UpdateServiceMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateServiceMetadataWithBody

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

func (*Client) UploadArtifactWithBody

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

type ClientInterface

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

	// ExportSnapshot request
	ExportSnapshot(ctx context.Context, params *ExportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// GetImportJobs request
	GetImportJobs(ctx context.Context, params *GetImportJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateImportJob(ctx context.Context, body CreateImportJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	PostJobsId(ctx context.Context, id string, body PostJobsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

	// GetServiceTestConformanceMetric request
	GetServiceTestConformanceMetric(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAggregatedInvocationsStats request
	GetAggregatedInvocationsStats(ctx context.Context, params *GetAggregatedInvocationsStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLatestAggregatedInvocationsStats request
	GetLatestAggregatedInvocationsStats(ctx context.Context, params *GetLatestAggregatedInvocationsStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTopIvnocationsStatsByDay request
	GetTopIvnocationsStatsByDay(ctx context.Context, params *GetTopIvnocationsStatsByDayParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInvocationStatsByService request
	GetInvocationStatsByService(ctx context.Context, serviceName string, serviceVersion string, params *GetInvocationStatsByServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLatestTestResults request
	GetLatestTestResults(ctx context.Context, params *GetLatestTestResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetResourcesByService request
	GetResourcesByService(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetSecrets request
	GetSecrets(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateSecret(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	// GetServices request
	GetServices(ctx context.Context, params *GetServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// SearchServices request
	SearchServices(ctx context.Context, params *SearchServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetService request
	GetService(ctx context.Context, id string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateServiceMetadata(ctx context.Context, id string, body UpdateServiceMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	OverrideServiceOperation(ctx context.Context, id string, params *OverrideServiceOperationParams, body OverrideServiceOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateTest(ctx context.Context, body CreateTestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTestResultsByService request
	GetTestResultsByService(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTestResultsByServiceCounter request
	GetTestResultsByServiceCounter(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetEventsByTestCase request
	GetEventsByTestCase(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMessagesByTestCase request
	GetMessagesByTestCase(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ReportTestCaseResult(ctx context.Context, id string, body ReportTestCaseResultJSONRequestBody, 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) ActivateImportJobWithResponse

func (c *ClientWithResponses) ActivateImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ActivateImportJobResponse, error)

ActivateImportJobWithResponse request returning *ActivateImportJobResponse

func (*ClientWithResponses) CreateImportJobWithBodyWithResponse

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

CreateImportJobWithBodyWithResponse request with arbitrary body returning *CreateImportJobResponse

func (*ClientWithResponses) CreateImportJobWithResponse

func (c *ClientWithResponses) CreateImportJobWithResponse(ctx context.Context, body CreateImportJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImportJobResponse, error)

func (*ClientWithResponses) CreateSecretWithBodyWithResponse

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

CreateSecretWithBodyWithResponse request with arbitrary body returning *CreateSecretResponse

func (*ClientWithResponses) CreateSecretWithResponse

func (c *ClientWithResponses) CreateSecretWithResponse(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretResponse, error)

func (*ClientWithResponses) CreateTestWithBodyWithResponse

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

CreateTestWithBodyWithResponse request with arbitrary body returning *CreateTestResponse

func (*ClientWithResponses) CreateTestWithResponse

func (c *ClientWithResponses) CreateTestWithResponse(ctx context.Context, body CreateTestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTestResponse, error)

func (*ClientWithResponses) DeleteImportJobWithResponse

func (c *ClientWithResponses) DeleteImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteImportJobResponse, error)

DeleteImportJobWithResponse request returning *DeleteImportJobResponse

func (*ClientWithResponses) DeleteSecretWithResponse

func (c *ClientWithResponses) DeleteSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error)

DeleteSecretWithResponse request returning *DeleteSecretResponse

func (*ClientWithResponses) DeleteServiceWithResponse

func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)

DeleteServiceWithResponse request returning *DeleteServiceResponse

func (*ClientWithResponses) ExportSnapshotWithResponse

func (c *ClientWithResponses) ExportSnapshotWithResponse(ctx context.Context, params *ExportSnapshotParams, reqEditors ...RequestEditorFn) (*ExportSnapshotResponse, error)

ExportSnapshotWithResponse request returning *ExportSnapshotResponse

func (*ClientWithResponses) GetAggregatedInvocationsStatsWithResponse

func (c *ClientWithResponses) GetAggregatedInvocationsStatsWithResponse(ctx context.Context, params *GetAggregatedInvocationsStatsParams, reqEditors ...RequestEditorFn) (*GetAggregatedInvocationsStatsResponse, error)

GetAggregatedInvocationsStatsWithResponse request returning *GetAggregatedInvocationsStatsResponse

func (*ClientWithResponses) GetConformanceMetricsAggregationWithResponse

func (c *ClientWithResponses) GetConformanceMetricsAggregationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConformanceMetricsAggregationResponse, error)

GetConformanceMetricsAggregationWithResponse request returning *GetConformanceMetricsAggregationResponse

func (*ClientWithResponses) GetEventsByTestCaseWithResponse

func (c *ClientWithResponses) GetEventsByTestCaseWithResponse(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*GetEventsByTestCaseResponse, error)

GetEventsByTestCaseWithResponse request returning *GetEventsByTestCaseResponse

func (*ClientWithResponses) GetFeaturesConfigurationWithResponse

func (c *ClientWithResponses) GetFeaturesConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeaturesConfigurationResponse, error)

GetFeaturesConfigurationWithResponse request returning *GetFeaturesConfigurationResponse

func (*ClientWithResponses) GetImportJobCounterWithResponse

func (c *ClientWithResponses) GetImportJobCounterWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetImportJobCounterResponse, error)

GetImportJobCounterWithResponse request returning *GetImportJobCounterResponse

func (*ClientWithResponses) GetImportJobsWithResponse

func (c *ClientWithResponses) GetImportJobsWithResponse(ctx context.Context, params *GetImportJobsParams, reqEditors ...RequestEditorFn) (*GetImportJobsResponse, error)

GetImportJobsWithResponse request returning *GetImportJobsResponse

func (*ClientWithResponses) GetInvocationStatsByServiceWithResponse

func (c *ClientWithResponses) GetInvocationStatsByServiceWithResponse(ctx context.Context, serviceName string, serviceVersion string, params *GetInvocationStatsByServiceParams, reqEditors ...RequestEditorFn) (*GetInvocationStatsByServiceResponse, error)

GetInvocationStatsByServiceWithResponse request returning *GetInvocationStatsByServiceResponse

func (*ClientWithResponses) GetJobsIdWithResponse

func (c *ClientWithResponses) GetJobsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetJobsIdResponse, error)

GetJobsIdWithResponse request returning *GetJobsIdResponse

func (*ClientWithResponses) GetKeycloakConfigWithResponse

func (c *ClientWithResponses) GetKeycloakConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeycloakConfigResponse, error)

GetKeycloakConfigWithResponse request returning *GetKeycloakConfigResponse

func (*ClientWithResponses) GetLatestAggregatedInvocationsStatsWithResponse

func (c *ClientWithResponses) GetLatestAggregatedInvocationsStatsWithResponse(ctx context.Context, params *GetLatestAggregatedInvocationsStatsParams, reqEditors ...RequestEditorFn) (*GetLatestAggregatedInvocationsStatsResponse, error)

GetLatestAggregatedInvocationsStatsWithResponse request returning *GetLatestAggregatedInvocationsStatsResponse

func (*ClientWithResponses) GetLatestTestResultsWithResponse

func (c *ClientWithResponses) GetLatestTestResultsWithResponse(ctx context.Context, params *GetLatestTestResultsParams, reqEditors ...RequestEditorFn) (*GetLatestTestResultsResponse, error)

GetLatestTestResultsWithResponse request returning *GetLatestTestResultsResponse

func (*ClientWithResponses) GetMessagesByTestCaseWithResponse

func (c *ClientWithResponses) GetMessagesByTestCaseWithResponse(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*GetMessagesByTestCaseResponse, error)

GetMessagesByTestCaseWithResponse request returning *GetMessagesByTestCaseResponse

func (*ClientWithResponses) GetResourceWithResponse

func (c *ClientWithResponses) GetResourceWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

GetResourceWithResponse request returning *GetResourceResponse

func (*ClientWithResponses) GetResourcesByServiceWithResponse

func (c *ClientWithResponses) GetResourcesByServiceWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetResourcesByServiceResponse, error)

GetResourcesByServiceWithResponse request returning *GetResourcesByServiceResponse

func (*ClientWithResponses) GetSecretWithResponse

func (c *ClientWithResponses) GetSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSecretResponse, error)

GetSecretWithResponse request returning *GetSecretResponse

func (*ClientWithResponses) GetSecretsCounterWithResponse

func (c *ClientWithResponses) GetSecretsCounterWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSecretsCounterResponse, error)

GetSecretsCounterWithResponse request returning *GetSecretsCounterResponse

func (*ClientWithResponses) GetSecretsWithResponse

func (c *ClientWithResponses) GetSecretsWithResponse(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*GetSecretsResponse, error)

GetSecretsWithResponse request returning *GetSecretsResponse

func (*ClientWithResponses) GetServiceTestConformanceMetricWithResponse

func (c *ClientWithResponses) GetServiceTestConformanceMetricWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetServiceTestConformanceMetricResponse, error)

GetServiceTestConformanceMetricWithResponse request returning *GetServiceTestConformanceMetricResponse

func (*ClientWithResponses) GetServiceWithResponse

func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, id string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

GetServiceWithResponse request returning *GetServiceResponse

func (*ClientWithResponses) GetServicesCounterWithResponse

func (c *ClientWithResponses) GetServicesCounterWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesCounterResponse, error)

GetServicesCounterWithResponse request returning *GetServicesCounterResponse

func (*ClientWithResponses) GetServicesLabelsWithResponse

func (c *ClientWithResponses) GetServicesLabelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesLabelsResponse, error)

GetServicesLabelsWithResponse request returning *GetServicesLabelsResponse

func (*ClientWithResponses) GetServicesWithResponse

func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, params *GetServicesParams, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)

GetServicesWithResponse request returning *GetServicesResponse

func (*ClientWithResponses) GetTestResultWithResponse

func (c *ClientWithResponses) GetTestResultWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTestResultResponse, error)

GetTestResultWithResponse request returning *GetTestResultResponse

func (*ClientWithResponses) GetTestResultsByServiceCounterWithResponse

func (c *ClientWithResponses) GetTestResultsByServiceCounterWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetTestResultsByServiceCounterResponse, error)

GetTestResultsByServiceCounterWithResponse request returning *GetTestResultsByServiceCounterResponse

func (*ClientWithResponses) GetTestResultsByServiceWithResponse

func (c *ClientWithResponses) GetTestResultsByServiceWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetTestResultsByServiceResponse, error)

GetTestResultsByServiceWithResponse request returning *GetTestResultsByServiceResponse

func (*ClientWithResponses) GetTopIvnocationsStatsByDayWithResponse

func (c *ClientWithResponses) GetTopIvnocationsStatsByDayWithResponse(ctx context.Context, params *GetTopIvnocationsStatsByDayParams, reqEditors ...RequestEditorFn) (*GetTopIvnocationsStatsByDayResponse, error)

GetTopIvnocationsStatsByDayWithResponse request returning *GetTopIvnocationsStatsByDayResponse

func (*ClientWithResponses) ImportSnapshotWithBodyWithResponse

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

ImportSnapshotWithBodyWithResponse request with arbitrary body returning *ImportSnapshotResponse

func (*ClientWithResponses) OverrideServiceOperationWithBodyWithResponse

func (c *ClientWithResponses) OverrideServiceOperationWithBodyWithResponse(ctx context.Context, id string, params *OverrideServiceOperationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideServiceOperationResponse, error)

OverrideServiceOperationWithBodyWithResponse request with arbitrary body returning *OverrideServiceOperationResponse

func (*ClientWithResponses) PostJobsIdWithBodyWithResponse

func (c *ClientWithResponses) PostJobsIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobsIdResponse, error)

PostJobsIdWithBodyWithResponse request with arbitrary body returning *PostJobsIdResponse

func (*ClientWithResponses) PostJobsIdWithResponse

func (c *ClientWithResponses) PostJobsIdWithResponse(ctx context.Context, id string, body PostJobsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobsIdResponse, error)

func (*ClientWithResponses) ReportTestCaseResultWithBodyWithResponse

func (c *ClientWithResponses) ReportTestCaseResultWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportTestCaseResultResponse, error)

ReportTestCaseResultWithBodyWithResponse request with arbitrary body returning *ReportTestCaseResultResponse

func (*ClientWithResponses) ReportTestCaseResultWithResponse

func (c *ClientWithResponses) ReportTestCaseResultWithResponse(ctx context.Context, id string, body ReportTestCaseResultJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportTestCaseResultResponse, error)

func (*ClientWithResponses) SearchServicesWithResponse

func (c *ClientWithResponses) SearchServicesWithResponse(ctx context.Context, params *SearchServicesParams, reqEditors ...RequestEditorFn) (*SearchServicesResponse, error)

SearchServicesWithResponse request returning *SearchServicesResponse

func (*ClientWithResponses) StartImportJobWithResponse

func (c *ClientWithResponses) StartImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StartImportJobResponse, error)

StartImportJobWithResponse request returning *StartImportJobResponse

func (*ClientWithResponses) StopImportJobWithResponse

func (c *ClientWithResponses) StopImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StopImportJobResponse, error)

StopImportJobWithResponse request returning *StopImportJobResponse

func (*ClientWithResponses) UpdateSecretWithResponse

func (c *ClientWithResponses) UpdateSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UpdateSecretResponse, error)

UpdateSecretWithResponse request returning *UpdateSecretResponse

func (*ClientWithResponses) UpdateServiceMetadataWithBodyWithResponse

func (c *ClientWithResponses) UpdateServiceMetadataWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceMetadataResponse, error)

UpdateServiceMetadataWithBodyWithResponse request with arbitrary body returning *UpdateServiceMetadataResponse

func (*ClientWithResponses) UpdateServiceMetadataWithResponse

func (c *ClientWithResponses) UpdateServiceMetadataWithResponse(ctx context.Context, id string, body UpdateServiceMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceMetadataResponse, error)

func (*ClientWithResponses) UploadArtifactWithBodyWithResponse

func (c *ClientWithResponses) UploadArtifactWithBodyWithResponse(ctx context.Context, params *UploadArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadArtifactResponse, error)

UploadArtifactWithBodyWithResponse request with arbitrary body returning *UploadArtifactResponse

type ClientWithResponsesInterface

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

	// ExportSnapshotWithResponse request
	ExportSnapshotWithResponse(ctx context.Context, params *ExportSnapshotParams, reqEditors ...RequestEditorFn) (*ExportSnapshotResponse, error)

	// GetFeaturesConfigurationWithResponse request
	GetFeaturesConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeaturesConfigurationResponse, error)

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

	// GetImportJobsWithResponse request
	GetImportJobsWithResponse(ctx context.Context, params *GetImportJobsParams, reqEditors ...RequestEditorFn) (*GetImportJobsResponse, error)

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

	CreateImportJobWithResponse(ctx context.Context, body CreateImportJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImportJobResponse, error)

	// GetImportJobCounterWithResponse request
	GetImportJobCounterWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetImportJobCounterResponse, error)

	// DeleteImportJobWithResponse request
	DeleteImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteImportJobResponse, error)

	// GetJobsIdWithResponse request
	GetJobsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetJobsIdResponse, error)

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

	PostJobsIdWithResponse(ctx context.Context, id string, body PostJobsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobsIdResponse, error)

	// ActivateImportJobWithResponse request
	ActivateImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ActivateImportJobResponse, error)

	// StartImportJobWithResponse request
	StartImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StartImportJobResponse, error)

	// StopImportJobWithResponse request
	StopImportJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StopImportJobResponse, error)

	// GetKeycloakConfigWithResponse request
	GetKeycloakConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeycloakConfigResponse, error)

	// GetConformanceMetricsAggregationWithResponse request
	GetConformanceMetricsAggregationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConformanceMetricsAggregationResponse, error)

	// GetServiceTestConformanceMetricWithResponse request
	GetServiceTestConformanceMetricWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetServiceTestConformanceMetricResponse, error)

	// GetAggregatedInvocationsStatsWithResponse request
	GetAggregatedInvocationsStatsWithResponse(ctx context.Context, params *GetAggregatedInvocationsStatsParams, reqEditors ...RequestEditorFn) (*GetAggregatedInvocationsStatsResponse, error)

	// GetLatestAggregatedInvocationsStatsWithResponse request
	GetLatestAggregatedInvocationsStatsWithResponse(ctx context.Context, params *GetLatestAggregatedInvocationsStatsParams, reqEditors ...RequestEditorFn) (*GetLatestAggregatedInvocationsStatsResponse, error)

	// GetTopIvnocationsStatsByDayWithResponse request
	GetTopIvnocationsStatsByDayWithResponse(ctx context.Context, params *GetTopIvnocationsStatsByDayParams, reqEditors ...RequestEditorFn) (*GetTopIvnocationsStatsByDayResponse, error)

	// GetInvocationStatsByServiceWithResponse request
	GetInvocationStatsByServiceWithResponse(ctx context.Context, serviceName string, serviceVersion string, params *GetInvocationStatsByServiceParams, reqEditors ...RequestEditorFn) (*GetInvocationStatsByServiceResponse, error)

	// GetLatestTestResultsWithResponse request
	GetLatestTestResultsWithResponse(ctx context.Context, params *GetLatestTestResultsParams, reqEditors ...RequestEditorFn) (*GetLatestTestResultsResponse, error)

	// GetResourcesByServiceWithResponse request
	GetResourcesByServiceWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetResourcesByServiceResponse, error)

	// GetResourceWithResponse request
	GetResourceWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

	// GetSecretsWithResponse request
	GetSecretsWithResponse(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*GetSecretsResponse, error)

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

	CreateSecretWithResponse(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretResponse, error)

	// GetSecretsCounterWithResponse request
	GetSecretsCounterWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSecretsCounterResponse, error)

	// DeleteSecretWithResponse request
	DeleteSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error)

	// GetSecretWithResponse request
	GetSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSecretResponse, error)

	// UpdateSecretWithResponse request
	UpdateSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UpdateSecretResponse, error)

	// GetServicesWithResponse request
	GetServicesWithResponse(ctx context.Context, params *GetServicesParams, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)

	// GetServicesCounterWithResponse request
	GetServicesCounterWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesCounterResponse, error)

	// GetServicesLabelsWithResponse request
	GetServicesLabelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesLabelsResponse, error)

	// SearchServicesWithResponse request
	SearchServicesWithResponse(ctx context.Context, params *SearchServicesParams, reqEditors ...RequestEditorFn) (*SearchServicesResponse, error)

	// DeleteServiceWithResponse request
	DeleteServiceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)

	// GetServiceWithResponse request
	GetServiceWithResponse(ctx context.Context, id string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

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

	UpdateServiceMetadataWithResponse(ctx context.Context, id string, body UpdateServiceMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceMetadataResponse, error)

	// OverrideServiceOperationWithBodyWithResponse request with any body
	OverrideServiceOperationWithBodyWithResponse(ctx context.Context, id string, params *OverrideServiceOperationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OverrideServiceOperationResponse, error)

	OverrideServiceOperationWithResponse(ctx context.Context, id string, params *OverrideServiceOperationParams, body OverrideServiceOperationJSONRequestBody, reqEditors ...RequestEditorFn) (*OverrideServiceOperationResponse, error)

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

	CreateTestWithResponse(ctx context.Context, body CreateTestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTestResponse, error)

	// GetTestResultsByServiceWithResponse request
	GetTestResultsByServiceWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetTestResultsByServiceResponse, error)

	// GetTestResultsByServiceCounterWithResponse request
	GetTestResultsByServiceCounterWithResponse(ctx context.Context, serviceId string, reqEditors ...RequestEditorFn) (*GetTestResultsByServiceCounterResponse, error)

	// GetTestResultWithResponse request
	GetTestResultWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTestResultResponse, error)

	// GetEventsByTestCaseWithResponse request
	GetEventsByTestCaseWithResponse(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*GetEventsByTestCaseResponse, error)

	// GetMessagesByTestCaseWithResponse request
	GetMessagesByTestCaseWithResponse(ctx context.Context, id string, testCaseId string, reqEditors ...RequestEditorFn) (*GetMessagesByTestCaseResponse, error)

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

	ReportTestCaseResultWithResponse(ctx context.Context, id string, body ReportTestCaseResultJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportTestCaseResultResponse, error)
}

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

type Counter

type Counter struct {
	// Counter Number of items in a resource collection
	Counter *int32 `json:"counter,omitempty"`
}

Counter A simple Counter type.

type CounterMap

type CounterMap map[string]float32

CounterMap A generic map of counter

type CreateImportJobJSONRequestBody

type CreateImportJobJSONRequestBody = ImportJob

CreateImportJobJSONRequestBody defines body for CreateImportJob for application/json ContentType.

type CreateImportJobResponse

type CreateImportJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ImportJob
}

func ParseCreateImportJobResponse

func ParseCreateImportJobResponse(rsp *http.Response) (*CreateImportJobResponse, error)

ParseCreateImportJobResponse parses an HTTP response from a CreateImportJobWithResponse call

func (CreateImportJobResponse) Status

func (r CreateImportJobResponse) Status() string

Status returns HTTPResponse.Status

func (CreateImportJobResponse) StatusCode

func (r CreateImportJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSecretJSONRequestBody

type CreateSecretJSONRequestBody = Secret

CreateSecretJSONRequestBody defines body for CreateSecret for application/json ContentType.

type CreateSecretResponse

type CreateSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Secret
}

func ParseCreateSecretResponse

func ParseCreateSecretResponse(rsp *http.Response) (*CreateSecretResponse, error)

ParseCreateSecretResponse parses an HTTP response from a CreateSecretWithResponse call

func (CreateSecretResponse) Status

func (r CreateSecretResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSecretResponse) StatusCode

func (r CreateSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTestJSONRequestBody

type CreateTestJSONRequestBody = TestRequest

CreateTestJSONRequestBody defines body for CreateTest for application/json ContentType.

type CreateTestResponse

type CreateTestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *TestResult
}

func ParseCreateTestResponse

func ParseCreateTestResponse(rsp *http.Response) (*CreateTestResponse, error)

ParseCreateTestResponse parses an HTTP response from a CreateTestWithResponse call

func (CreateTestResponse) Status

func (r CreateTestResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTestResponse) StatusCode

func (r CreateTestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DailyInvocationStatistic

type DailyInvocationStatistic struct {
	// DailyCount The number of service mock invocations on this day
	DailyCount float32 `json:"dailyCount"`

	// Day The day (formatted as yyyyMMdd string) represented by this statistic
	Day string `json:"day"`

	// HourlyCount The number of service mock invocations per hour of the day (keys range from 0 to 23)
	HourlyCount *map[string]interface{} `json:"hourlyCount,omitempty"`

	// Id Unique identifier of this statistic object
	Id string `json:"id"`

	// MinuteCount The number of service mock invocations per minute of the day (keys range from 0 to 1439)
	MinuteCount *map[string]interface{} `json:"minuteCount,omitempty"`

	// ServiceName The name of the service this statistic is related to
	ServiceName string `json:"serviceName"`

	// ServiceVersion The version of the service this statistic is related to
	ServiceVersion string `json:"serviceVersion"`
}

DailyInvocationStatistic The daily statistic of a service mock invocations

type DeleteImportJobResponse

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

func ParseDeleteImportJobResponse

func ParseDeleteImportJobResponse(rsp *http.Response) (*DeleteImportJobResponse, error)

ParseDeleteImportJobResponse parses an HTTP response from a DeleteImportJobWithResponse call

func (DeleteImportJobResponse) Status

func (r DeleteImportJobResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteImportJobResponse) StatusCode

func (r DeleteImportJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSecretResponse

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

func ParseDeleteSecretResponse

func ParseDeleteSecretResponse(rsp *http.Response) (*DeleteSecretResponse, error)

ParseDeleteSecretResponse parses an HTTP response from a DeleteSecretWithResponse call

func (DeleteSecretResponse) Status

func (r DeleteSecretResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSecretResponse) StatusCode

func (r DeleteSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteServiceResponse

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

func ParseDeleteServiceResponse

func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error)

ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call

func (DeleteServiceResponse) Status

func (r DeleteServiceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteServiceResponse) StatusCode

func (r DeleteServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EventMessage

type EventMessage struct {
	// Content Body content for this message
	Content *string `json:"content,omitempty"`

	// Headers Headers for this message
	Headers *[]Header `json:"headers,omitempty"`

	// Id Unique identifier of this message
	Id string `json:"id"`

	// MediaType Content type of message
	MediaType string `json:"mediaType"`

	// Name Unique distinct name of this message
	Name *string `json:"name,omitempty"`

	// OperationId Identifier of Operation this message is associated to
	OperationId *string `json:"operationId,omitempty"`

	// TestCaseId Unique identifier of TestCase this message is attached (in case of a test)
	TestCaseId *string `json:"testCaseId,omitempty"`
}

EventMessage defines model for EventMessage.

type Exchange

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

Exchange Abstract representation of a Service or API exchange type (request/response, event based, ...)

func (Exchange) AsRequestResponsePair

func (t Exchange) AsRequestResponsePair() (RequestResponsePair, error)

AsRequestResponsePair returns the union data inside the Exchange as a RequestResponsePair

func (Exchange) AsUnidirectionalEvent

func (t Exchange) AsUnidirectionalEvent() (UnidirectionalEvent, error)

AsUnidirectionalEvent returns the union data inside the Exchange as a UnidirectionalEvent

func (Exchange) Discriminator

func (t Exchange) Discriminator() (string, error)

func (*Exchange) FromRequestResponsePair

func (t *Exchange) FromRequestResponsePair(v RequestResponsePair) error

FromRequestResponsePair overwrites any union data inside the Exchange as the provided RequestResponsePair

func (*Exchange) FromUnidirectionalEvent

func (t *Exchange) FromUnidirectionalEvent(v UnidirectionalEvent) error

FromUnidirectionalEvent overwrites any union data inside the Exchange as the provided UnidirectionalEvent

func (Exchange) MarshalJSON

func (t Exchange) MarshalJSON() ([]byte, error)

func (*Exchange) MergeRequestResponsePair

func (t *Exchange) MergeRequestResponsePair(v RequestResponsePair) error

MergeRequestResponsePair performs a merge with any union data inside the Exchange, using the provided RequestResponsePair

func (*Exchange) MergeUnidirectionalEvent

func (t *Exchange) MergeUnidirectionalEvent(v UnidirectionalEvent) error

MergeUnidirectionalEvent performs a merge with any union data inside the Exchange, using the provided UnidirectionalEvent

func (*Exchange) UnmarshalJSON

func (t *Exchange) UnmarshalJSON(b []byte) error

func (Exchange) ValueByDiscriminator

func (t Exchange) ValueByDiscriminator() (interface{}, error)

type ExportSnapshotParams

type ExportSnapshotParams struct {
	// ServiceIds List of service identifiers to export
	ServiceIds []string `form:"serviceIds" json:"serviceIds"`
}

ExportSnapshotParams defines parameters for ExportSnapshot.

type ExportSnapshotResponse

type ExportSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *openapi_types.File
}

func ParseExportSnapshotResponse

func ParseExportSnapshotResponse(rsp *http.Response) (*ExportSnapshotResponse, error)

ParseExportSnapshotResponse parses an HTTP response from a ExportSnapshotWithResponse call

func (ExportSnapshotResponse) Status

func (r ExportSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (ExportSnapshotResponse) StatusCode

func (r ExportSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAggregatedInvocationsStatsParams

type GetAggregatedInvocationsStatsParams struct {
	// Day The day to get statistics for (formatted with yyyyMMdd pattern). Default to today if not provided.
	Day *string `form:"day,omitempty" json:"day,omitempty"`
}

GetAggregatedInvocationsStatsParams defines parameters for GetAggregatedInvocationsStats.

type GetAggregatedInvocationsStatsResponse

type GetAggregatedInvocationsStatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DailyInvocationStatistic
}

func ParseGetAggregatedInvocationsStatsResponse

func ParseGetAggregatedInvocationsStatsResponse(rsp *http.Response) (*GetAggregatedInvocationsStatsResponse, error)

ParseGetAggregatedInvocationsStatsResponse parses an HTTP response from a GetAggregatedInvocationsStatsWithResponse call

func (GetAggregatedInvocationsStatsResponse) Status

Status returns HTTPResponse.Status

func (GetAggregatedInvocationsStatsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConformanceMetricsAggregationResponse

type GetConformanceMetricsAggregationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]WeightedMetricValue
}

func ParseGetConformanceMetricsAggregationResponse

func ParseGetConformanceMetricsAggregationResponse(rsp *http.Response) (*GetConformanceMetricsAggregationResponse, error)

ParseGetConformanceMetricsAggregationResponse parses an HTTP response from a GetConformanceMetricsAggregationWithResponse call

func (GetConformanceMetricsAggregationResponse) Status

Status returns HTTPResponse.Status

func (GetConformanceMetricsAggregationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetEventsByTestCaseResponse

type GetEventsByTestCaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]UnidirectionalEvent
}

func ParseGetEventsByTestCaseResponse

func ParseGetEventsByTestCaseResponse(rsp *http.Response) (*GetEventsByTestCaseResponse, error)

ParseGetEventsByTestCaseResponse parses an HTTP response from a GetEventsByTestCaseWithResponse call

func (GetEventsByTestCaseResponse) Status

Status returns HTTPResponse.Status

func (GetEventsByTestCaseResponse) StatusCode

func (r GetEventsByTestCaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFeaturesConfigurationResponse

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

func ParseGetFeaturesConfigurationResponse

func ParseGetFeaturesConfigurationResponse(rsp *http.Response) (*GetFeaturesConfigurationResponse, error)

ParseGetFeaturesConfigurationResponse parses an HTTP response from a GetFeaturesConfigurationWithResponse call

func (GetFeaturesConfigurationResponse) Status

Status returns HTTPResponse.Status

func (GetFeaturesConfigurationResponse) StatusCode

func (r GetFeaturesConfigurationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImportJobCounterResponse

type GetImportJobCounterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Counter
}

func ParseGetImportJobCounterResponse

func ParseGetImportJobCounterResponse(rsp *http.Response) (*GetImportJobCounterResponse, error)

ParseGetImportJobCounterResponse parses an HTTP response from a GetImportJobCounterWithResponse call

func (GetImportJobCounterResponse) Status

Status returns HTTPResponse.Status

func (GetImportJobCounterResponse) StatusCode

func (r GetImportJobCounterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImportJobsParams

type GetImportJobsParams struct {
	// Page Page of ImportJobs to retrieve (starts at and defaults to 0)
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Size Size of a page. Maximum number of ImportJobs to include in a response (defaults to 20)
	Size *int `form:"size,omitempty" json:"size,omitempty"`

	// Name Name like criterion for query
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

GetImportJobsParams defines parameters for GetImportJobs.

type GetImportJobsResponse

type GetImportJobsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ImportJob
}

func ParseGetImportJobsResponse

func ParseGetImportJobsResponse(rsp *http.Response) (*GetImportJobsResponse, error)

ParseGetImportJobsResponse parses an HTTP response from a GetImportJobsWithResponse call

func (GetImportJobsResponse) Status

func (r GetImportJobsResponse) Status() string

Status returns HTTPResponse.Status

func (GetImportJobsResponse) StatusCode

func (r GetImportJobsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInvocationStatsByServiceParams

type GetInvocationStatsByServiceParams struct {
	// Day The day to get statistics for (formatted with yyyyMMdd pattern). Default to today if not provided.
	Day *string `form:"day,omitempty" json:"day,omitempty"`
}

GetInvocationStatsByServiceParams defines parameters for GetInvocationStatsByService.

type GetInvocationStatsByServiceResponse

type GetInvocationStatsByServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DailyInvocationStatistic
}

func ParseGetInvocationStatsByServiceResponse

func ParseGetInvocationStatsByServiceResponse(rsp *http.Response) (*GetInvocationStatsByServiceResponse, error)

ParseGetInvocationStatsByServiceResponse parses an HTTP response from a GetInvocationStatsByServiceWithResponse call

func (GetInvocationStatsByServiceResponse) Status

Status returns HTTPResponse.Status

func (GetInvocationStatsByServiceResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetJobsIdResponse

type GetJobsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImportJob
}

func ParseGetJobsIdResponse

func ParseGetJobsIdResponse(rsp *http.Response) (*GetJobsIdResponse, error)

ParseGetJobsIdResponse parses an HTTP response from a GetJobsIdWithResponse call

func (GetJobsIdResponse) Status

func (r GetJobsIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsIdResponse) StatusCode

func (r GetJobsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetKeycloakConfigResponse

type GetKeycloakConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KeycloakConfig
}

func ParseGetKeycloakConfigResponse

func ParseGetKeycloakConfigResponse(rsp *http.Response) (*GetKeycloakConfigResponse, error)

ParseGetKeycloakConfigResponse parses an HTTP response from a GetKeycloakConfigWithResponse call

func (GetKeycloakConfigResponse) Status

func (r GetKeycloakConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeycloakConfigResponse) StatusCode

func (r GetKeycloakConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLatestAggregatedInvocationsStatsParams

type GetLatestAggregatedInvocationsStatsParams struct {
	// Limit Number of days to get back in time. Default is 20.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetLatestAggregatedInvocationsStatsParams defines parameters for GetLatestAggregatedInvocationsStats.

type GetLatestAggregatedInvocationsStatsResponse

type GetLatestAggregatedInvocationsStatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CounterMap
}

func ParseGetLatestAggregatedInvocationsStatsResponse

func ParseGetLatestAggregatedInvocationsStatsResponse(rsp *http.Response) (*GetLatestAggregatedInvocationsStatsResponse, error)

ParseGetLatestAggregatedInvocationsStatsResponse parses an HTTP response from a GetLatestAggregatedInvocationsStatsWithResponse call

func (GetLatestAggregatedInvocationsStatsResponse) Status

Status returns HTTPResponse.Status

func (GetLatestAggregatedInvocationsStatsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetLatestTestResultsParams

type GetLatestTestResultsParams struct {
	// Limit Number of days to consider for test results to return. Default is 7 (one week)
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetLatestTestResultsParams defines parameters for GetLatestTestResults.

type GetLatestTestResultsResponse

type GetLatestTestResultsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TestResultSummary
}

func ParseGetLatestTestResultsResponse

func ParseGetLatestTestResultsResponse(rsp *http.Response) (*GetLatestTestResultsResponse, error)

ParseGetLatestTestResultsResponse parses an HTTP response from a GetLatestTestResultsWithResponse call

func (GetLatestTestResultsResponse) Status

Status returns HTTPResponse.Status

func (GetLatestTestResultsResponse) StatusCode

func (r GetLatestTestResultsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMessagesByTestCaseResponse

type GetMessagesByTestCaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]RequestResponsePair
}

func ParseGetMessagesByTestCaseResponse

func ParseGetMessagesByTestCaseResponse(rsp *http.Response) (*GetMessagesByTestCaseResponse, error)

ParseGetMessagesByTestCaseResponse parses an HTTP response from a GetMessagesByTestCaseWithResponse call

func (GetMessagesByTestCaseResponse) Status

Status returns HTTPResponse.Status

func (GetMessagesByTestCaseResponse) StatusCode

func (r GetMessagesByTestCaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResourceResponse

type GetResourceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Resource
}

func ParseGetResourceResponse

func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error)

ParseGetResourceResponse parses an HTTP response from a GetResourceWithResponse call

func (GetResourceResponse) Status

func (r GetResourceResponse) Status() string

Status returns HTTPResponse.Status

func (GetResourceResponse) StatusCode

func (r GetResourceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResourcesByServiceResponse

type GetResourcesByServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Resource
}

func ParseGetResourcesByServiceResponse

func ParseGetResourcesByServiceResponse(rsp *http.Response) (*GetResourcesByServiceResponse, error)

ParseGetResourcesByServiceResponse parses an HTTP response from a GetResourcesByServiceWithResponse call

func (GetResourcesByServiceResponse) Status

Status returns HTTPResponse.Status

func (GetResourcesByServiceResponse) StatusCode

func (r GetResourcesByServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecretResponse

type GetSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Secret
}

func ParseGetSecretResponse

func ParseGetSecretResponse(rsp *http.Response) (*GetSecretResponse, error)

ParseGetSecretResponse parses an HTTP response from a GetSecretWithResponse call

func (GetSecretResponse) Status

func (r GetSecretResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecretResponse) StatusCode

func (r GetSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecretsCounterResponse

type GetSecretsCounterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Counter
}

func ParseGetSecretsCounterResponse

func ParseGetSecretsCounterResponse(rsp *http.Response) (*GetSecretsCounterResponse, error)

ParseGetSecretsCounterResponse parses an HTTP response from a GetSecretsCounterWithResponse call

func (GetSecretsCounterResponse) Status

func (r GetSecretsCounterResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecretsCounterResponse) StatusCode

func (r GetSecretsCounterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecretsParams

type GetSecretsParams struct {
	// Page Page of Secrets to retrieve (starts at and defaults to 0)
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Size Size of a page. Maximum number of Secrets to include in a response (defaults to 20)
	Size *int `form:"size,omitempty" json:"size,omitempty"`
}

GetSecretsParams defines parameters for GetSecrets.

type GetSecretsResponse

type GetSecretsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Secret
}

func ParseGetSecretsResponse

func ParseGetSecretsResponse(rsp *http.Response) (*GetSecretsResponse, error)

ParseGetSecretsResponse parses an HTTP response from a GetSecretsWithResponse call

func (GetSecretsResponse) Status

func (r GetSecretsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecretsResponse) StatusCode

func (r GetSecretsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceParams

type GetServiceParams struct {
	// Messages Whether to include details on services messages into result. Default is false
	Messages *bool `form:"messages,omitempty" json:"messages,omitempty"`
}

GetServiceParams defines parameters for GetService.

type GetServiceResponse

type GetServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ServiceResponse
}

func ParseGetServiceResponse

func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error)

ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call

func (GetServiceResponse) Status

func (r GetServiceResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceResponse) StatusCode

func (r GetServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceTestConformanceMetricResponse

type GetServiceTestConformanceMetricResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TestConformanceMetric
}

func ParseGetServiceTestConformanceMetricResponse

func ParseGetServiceTestConformanceMetricResponse(rsp *http.Response) (*GetServiceTestConformanceMetricResponse, error)

ParseGetServiceTestConformanceMetricResponse parses an HTTP response from a GetServiceTestConformanceMetricWithResponse call

func (GetServiceTestConformanceMetricResponse) Status

Status returns HTTPResponse.Status

func (GetServiceTestConformanceMetricResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetServicesCounterResponse

type GetServicesCounterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Counter
}

func ParseGetServicesCounterResponse

func ParseGetServicesCounterResponse(rsp *http.Response) (*GetServicesCounterResponse, error)

ParseGetServicesCounterResponse parses an HTTP response from a GetServicesCounterWithResponse call

func (GetServicesCounterResponse) Status

Status returns HTTPResponse.Status

func (GetServicesCounterResponse) StatusCode

func (r GetServicesCounterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServicesLabelsResponse

type GetServicesLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LabelsMap
}

func ParseGetServicesLabelsResponse

func ParseGetServicesLabelsResponse(rsp *http.Response) (*GetServicesLabelsResponse, error)

ParseGetServicesLabelsResponse parses an HTTP response from a GetServicesLabelsWithResponse call

func (GetServicesLabelsResponse) Status

func (r GetServicesLabelsResponse) Status() string

Status returns HTTPResponse.Status

func (GetServicesLabelsResponse) StatusCode

func (r GetServicesLabelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServicesParams

type GetServicesParams struct {
	// Page Page of Services to retrieve (starts at and defaults to 0)
	Page *int `form:"page,omitempty" json:"page,omitempty"`

	// Size Size of a page. Maximum number of Services to include in a response (defaults to 20)
	Size *int `form:"size,omitempty" json:"size,omitempty"`
}

GetServicesParams defines parameters for GetServices.

type GetServicesResponse

type GetServicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Service
}

func ParseGetServicesResponse

func ParseGetServicesResponse(rsp *http.Response) (*GetServicesResponse, error)

ParseGetServicesResponse parses an HTTP response from a GetServicesWithResponse call

func (GetServicesResponse) Status

func (r GetServicesResponse) Status() string

Status returns HTTPResponse.Status

func (GetServicesResponse) StatusCode

func (r GetServicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTestResultResponse

type GetTestResultResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TestResult
}

func ParseGetTestResultResponse

func ParseGetTestResultResponse(rsp *http.Response) (*GetTestResultResponse, error)

ParseGetTestResultResponse parses an HTTP response from a GetTestResultWithResponse call

func (GetTestResultResponse) Status

func (r GetTestResultResponse) Status() string

Status returns HTTPResponse.Status

func (GetTestResultResponse) StatusCode

func (r GetTestResultResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTestResultsByServiceCounterResponse

type GetTestResultsByServiceCounterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Counter
}

func ParseGetTestResultsByServiceCounterResponse

func ParseGetTestResultsByServiceCounterResponse(rsp *http.Response) (*GetTestResultsByServiceCounterResponse, error)

ParseGetTestResultsByServiceCounterResponse parses an HTTP response from a GetTestResultsByServiceCounterWithResponse call

func (GetTestResultsByServiceCounterResponse) Status

Status returns HTTPResponse.Status

func (GetTestResultsByServiceCounterResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetTestResultsByServiceResponse

type GetTestResultsByServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TestResult
}

func ParseGetTestResultsByServiceResponse

func ParseGetTestResultsByServiceResponse(rsp *http.Response) (*GetTestResultsByServiceResponse, error)

ParseGetTestResultsByServiceResponse parses an HTTP response from a GetTestResultsByServiceWithResponse call

func (GetTestResultsByServiceResponse) Status

Status returns HTTPResponse.Status

func (GetTestResultsByServiceResponse) StatusCode

func (r GetTestResultsByServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTopIvnocationsStatsByDayParams

type GetTopIvnocationsStatsByDayParams struct {
	// Day The day to get statistics for (formatted with yyyyMMdd pattern). Default to today if not provided.
	Day *string `form:"day,omitempty" json:"day,omitempty"`

	// Limit The number of top invoked mocks to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetTopIvnocationsStatsByDayParams defines parameters for GetTopIvnocationsStatsByDay.

type GetTopIvnocationsStatsByDayResponse

type GetTopIvnocationsStatsByDayResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DailyInvocationStatistic
}

func ParseGetTopIvnocationsStatsByDayResponse

func ParseGetTopIvnocationsStatsByDayResponse(rsp *http.Response) (*GetTopIvnocationsStatsByDayResponse, error)

ParseGetTopIvnocationsStatsByDayResponse parses an HTTP response from a GetTopIvnocationsStatsByDayWithResponse call

func (GetTopIvnocationsStatsByDayResponse) Status

Status returns HTTPResponse.Status

func (GetTopIvnocationsStatsByDayResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Header struct {
	// Name Unique distinct name of this Header
	Name string `json:"name"`

	// Values Values for this Header
	Values []string `json:"values"`
}

Header Transport headers for both Requests and Responses

type HeaderDTO

type HeaderDTO struct {
	// Name Unique distinct name of this Header
	Name string `json:"name"`

	// Values Values for this header (comma separated strings)
	Values string `json:"values"`
}

HeaderDTO Data Transfert Object for headers of both Requests and Responses

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ImportJob

type ImportJob struct {
	// Active Whether this ImportJob is active (ie. scheduled for execution)
	Active *bool `json:"active,omitempty"`

	// CreatedDate Creation date for this ImportJob
	CreatedDate *time.Time `json:"createdDate,omitempty"`

	// Etag Etag of repository URL during previous import. Is used for not re-importing if no recent changes
	Etag *string `json:"etag,omitempty"`

	// Frequency Reserved for future usage
	Frequency *string `json:"frequency,omitempty"`

	// Id Unique identifier of ImportJob
	Id *string `json:"id,omitempty"`

	// LastImportDate Date last import was done
	LastImportDate *time.Time `json:"lastImportDate,omitempty"`

	// LastImportError Error message of last import (if any)
	LastImportError *string `json:"lastImportError,omitempty"`

	// MainArtifact Flag telling if considered as primary or secondary artifact. Default to `true`
	MainArtifact *bool `json:"mainArtifact,omitempty"`

	// Metadata Commodity object for holding metadata on any entity. This object is inspired by Kubernetes metadata.
	Metadata *Metadata `json:"metadata,omitempty"`

	// Name Unique distinct name of this ImportJob
	Name string `json:"name"`

	// RepositoryDisableSSLValidation Whether to disable SSL certificate verification when checking repository
	RepositoryDisableSSLValidation *bool `json:"repositoryDisableSSLValidation,omitempty"`

	// RepositoryUrl URL of mocks and tests repository artifact
	RepositoryUrl string `json:"repositoryUrl"`

	// SecretRef Lightweight reference for an existing Secret
	SecretRef *SecretRef `json:"secretRef,omitempty"`

	// ServiceRefs References of Services discovered when checking repository
	ServiceRefs *[]ServiceRef `json:"serviceRefs,omitempty"`
}

ImportJob An ImportJob allow defining a repository artifact to poll for discovering Services and APIs mocks and tests

type ImportSnapshotMultipartRequestBody

type ImportSnapshotMultipartRequestBody = SnapshotUpload

ImportSnapshotMultipartRequestBody defines body for ImportSnapshot for multipart/form-data ContentType.

type ImportSnapshotResponse

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

func ParseImportSnapshotResponse

func ParseImportSnapshotResponse(rsp *http.Response) (*ImportSnapshotResponse, error)

ParseImportSnapshotResponse parses an HTTP response from a ImportSnapshotWithResponse call

func (ImportSnapshotResponse) Status

func (r ImportSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (ImportSnapshotResponse) StatusCode

func (r ImportSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type KeycloakConfig

type KeycloakConfig struct {
	// AuthServerUrl SSO Server authentication url
	AuthServerUrl string `json:"auth-server-url"`

	// Enabled Whether Keycloak authentification and usage is enabled
	Enabled bool `json:"enabled"`

	// PublicClient Name of public-client that can be used for requesting OAuth token
	PublicClient bool `json:"public-client"`

	// Realm Authentication realm name
	Realm string `json:"realm"`

	// Resource Name of Keycloak resource/application used on client side
	Resource string `json:"resource"`

	// SslRequired SSL certificates requirements
	SslRequired interface{} `json:"ssl-required"`
}

KeycloakConfig Representation of Keycloak / SSO configuration used by Microcks server

type LabelsMap

type LabelsMap map[string]StringArray

LabelsMap A map which keys are already used labels keys and values are already used values for this key

type MessageArray

type MessageArray = []Exchange

MessageArray Array of Message for Service operations

type Metadata

type Metadata struct {
	// Annotations Annotations of attached object
	Annotations *map[string]string `json:"annotations,omitempty"`

	// CreatedOn Creation date of attached object
	CreatedOn int `json:"createdOn"`

	// Labels Labels put on attached object
	Labels *map[string]string `json:"labels,omitempty"`

	// LastUpdate Last update of attached object
	LastUpdate int `json:"lastUpdate"`
}

Metadata Commodity object for holding metadata on any entity. This object is inspired by Kubernetes metadata.

type Operation

type Operation struct {
	// Bindings Map of protocol binding details for this operation
	Bindings *map[string]Binding `json:"bindings,omitempty"`

	// DefaultDelay Default response time delay for mocks
	DefaultDelay *float32 `json:"defaultDelay,omitempty"`

	// Dispatcher Dispatcher strategy used for mocks
	Dispatcher *string `json:"dispatcher,omitempty"`

	// DispatcherRules DispatcherRules used for mocks
	DispatcherRules *string `json:"dispatcherRules,omitempty"`

	// InputName Name of input parameters in case of Xml based Service
	InputName *string `json:"inputName,omitempty"`

	// Method Represents transport method
	Method string `json:"method"`

	// Name Unique name of this Operation within Service scope
	Name string `json:"name"`

	// OutputName Name of output parameters in case of Xml based Service
	OutputName *string `json:"outputName,omitempty"`

	// ParameterContraints Contraints that may apply to mock invocatino on this operation
	ParameterContraints *[]ParameterConstraint `json:"parameterContraints,omitempty"`

	// ResourcePaths Paths the mocks endpoints are mapped on
	ResourcePaths *[]string `json:"resourcePaths,omitempty"`
}

Operation An Operation of a Service or API

type OperationHeaders

type OperationHeaders map[string][]HeaderDTO

OperationHeaders Specification of additional headers for a Service/API operations. Keys are operation name or "globals" (if header applies to all), values are Header objects DTO.

type OperationOverrideDTO

type OperationOverrideDTO struct {
	// DefaultDelay Default delay in milliseconds to apply to mock responses on this operation
	DefaultDelay *int `json:"defaultDelay,omitempty"`

	// Dispatcher Type of dispatcher to apply for this operation
	Dispatcher *string `json:"dispatcher,omitempty"`

	// DispatcherRules Rules of dispatcher for this operation
	DispatcherRules *string `json:"dispatcherRules,omitempty"`

	// ParameterConstraints Constraints that may apply to incoming parameters on this operation
	ParameterConstraints *[]ParameterConstraint `json:"parameterConstraints,omitempty"`
}

OperationOverrideDTO Data Transfer object for grouping the mutable properties of an Operation

type OverrideServiceOperationJSONRequestBody

type OverrideServiceOperationJSONRequestBody = OperationOverrideDTO

OverrideServiceOperationJSONRequestBody defines body for OverrideServiceOperation for application/json ContentType.

type OverrideServiceOperationParams

type OverrideServiceOperationParams struct {
	// OperationName Name of operation to update
	OperationName string `form:"operationName" json:"operationName"`
}

OverrideServiceOperationParams defines parameters for OverrideServiceOperation.

type OverrideServiceOperationResponse

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

func ParseOverrideServiceOperationResponse

func ParseOverrideServiceOperationResponse(rsp *http.Response) (*OverrideServiceOperationResponse, error)

ParseOverrideServiceOperationResponse parses an HTTP response from a OverrideServiceOperationWithResponse call

func (OverrideServiceOperationResponse) Status

Status returns HTTPResponse.Status

func (OverrideServiceOperationResponse) StatusCode

func (r OverrideServiceOperationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ParameterConstraint

type ParameterConstraint struct {
	// In Parameter location
	In *ParameterConstraintIn `json:"in,omitempty"`

	// MustMatchRegexp Whether it's a regular expression matching constraint
	MustMatchRegexp *string `json:"mustMatchRegexp,omitempty"`

	// Name Parameter name
	Name string `json:"name"`

	// Recopy Whether it's a recopy constraint
	Recopy *bool `json:"recopy,omitempty"`

	// Required Whether it's a required constraint
	Required *bool `json:"required,omitempty"`
}

ParameterConstraint Companion object for Operation that may be used to express constraints on request parameters

type ParameterConstraintIn

type ParameterConstraintIn string

ParameterConstraintIn Parameter location

const (
	ParameterConstraintInHeader ParameterConstraintIn = "header"
	ParameterConstraintInPath   ParameterConstraintIn = "path"
	ParameterConstraintInQuery  ParameterConstraintIn = "query"
)

Defines values for ParameterConstraintIn.

type PostJobsIdJSONRequestBody

type PostJobsIdJSONRequestBody = ImportJob

PostJobsIdJSONRequestBody defines body for PostJobsId for application/json ContentType.

type PostJobsIdResponse

type PostJobsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImportJob
}

func ParsePostJobsIdResponse

func ParsePostJobsIdResponse(rsp *http.Response) (*PostJobsIdResponse, error)

ParsePostJobsIdResponse parses an HTTP response from a PostJobsIdWithResponse call

func (PostJobsIdResponse) Status

func (r PostJobsIdResponse) Status() string

Status returns HTTPResponse.Status

func (PostJobsIdResponse) StatusCode

func (r PostJobsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReportTestCaseResultJSONRequestBody

type ReportTestCaseResultJSONRequestBody = TestCaseReturnDTO

ReportTestCaseResultJSONRequestBody defines body for ReportTestCaseResult for application/json ContentType.

type ReportTestCaseResultResponse

type ReportTestCaseResultResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TestCaseResult
}

func ParseReportTestCaseResultResponse

func ParseReportTestCaseResultResponse(rsp *http.Response) (*ReportTestCaseResultResponse, error)

ParseReportTestCaseResultResponse parses an HTTP response from a ReportTestCaseResultWithResponse call

func (ReportTestCaseResultResponse) Status

Status returns HTTPResponse.Status

func (ReportTestCaseResultResponse) StatusCode

func (r ReportTestCaseResultResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Request

type Request struct {
	// Content Body content for this request
	Content *string `json:"content,omitempty"`

	// Headers Headers for this Request
	Headers *[]Header `json:"headers,omitempty"`

	// Id Unique identifier of Request
	Id *string `json:"id,omitempty"`

	// Name Unique distinct name of this Request
	Name string `json:"name"`

	// OperationId Identifier of Operation this Request is associated to
	OperationId string `json:"operationId"`

	// TestCaseId Unique identifier of TestCase this Request is attached (in case of a test)
	TestCaseId *string `json:"testCaseId,omitempty"`
}

Request A mock invocation or test request

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestResponsePair

type RequestResponsePair struct {
	// Request A mock invocation or test request
	Request Request `json:"request"`

	// Response A mock invocation or test response
	Response Response `json:"response"`

	// Type Discriminant type for identifying kind of exchange
	Type RequestResponsePairType `json:"type"`
}

RequestResponsePair defines model for RequestResponsePair.

type RequestResponsePairType

type RequestResponsePairType string

RequestResponsePairType Discriminant type for identifying kind of exchange

const (
	RequestResponsePairTypeReqRespPair RequestResponsePairType = "reqRespPair"
	RequestResponsePairTypeUnidirEvent RequestResponsePairType = "unidirEvent"
)

Defines values for RequestResponsePairType.

type Resource

type Resource struct {
	// Content String content of this resource
	Content string `json:"content"`

	// Id Uniquer identifier of this Service or API Resource
	Id string `json:"id"`

	// Name Unique name/business identifier for this Service or API resource
	Name string `json:"name"`

	// Path Relatvie path of this resource regarding main resource
	Path *string `json:"path,omitempty"`

	// ServiceId Unique identifier of the Servoce or API this resource is attached to
	ServiceId string `json:"serviceId"`

	// SourceArtifact Short name of the artifact this resource was extracted from
	SourceArtifact *string `json:"sourceArtifact,omitempty"`

	// Type Types of managed resources for Services or APIs
	Type ResourceType `json:"type"`
}

Resource Resource represents a Service or API artifacts such as specification, contract

type ResourceType

type ResourceType string

ResourceType Types of managed resources for Services or APIs

const (
	ResourceTypeASYNCAPISCHEMA      ResourceType = "ASYNC_API_SCHEMA"
	ResourceTypeASYNCAPISPEC        ResourceType = "ASYNC_API_SPEC"
	ResourceTypeAVROSCHEMA          ResourceType = "AVRO_SCHEMA"
	ResourceTypeGRAPHQLSCHEMA       ResourceType = "GRAPHQL_SCHEMA"
	ResourceTypeJSONSCHEMA          ResourceType = "JSON_SCHEMA"
	ResourceTypeOPENAPISCHEMA       ResourceType = "OPEN_API_SCHEMA"
	ResourceTypeOPENAPISPEC         ResourceType = "OPEN_API_SPEC"
	ResourceTypePOSTMANCOLLECTION   ResourceType = "POSTMAN_COLLECTION"
	ResourceTypePROTOBUFDESCRIPTION ResourceType = "PROTOBUF_DESCRIPTION"
	ResourceTypePROTOBUFSCHEMA      ResourceType = "PROTOBUF_SCHEMA"
	ResourceTypeWSDL                ResourceType = "WSDL"
	ResourceTypeXSD                 ResourceType = "XSD"
)

Defines values for ResourceType.

type Response

type Response struct {
	// Content Body content of this Response
	Content *string `json:"content,omitempty"`

	// Headers Headers for this Response
	Headers *[]Header `json:"headers,omitempty"`

	// Id Unique identifier of Response
	Id *string `json:"id,omitempty"`

	// Name Unique distinct name of this Response
	Name string `json:"name"`

	// OperationId Identifier of Operation this Response is associated to
	OperationId string `json:"operationId"`

	// TestCaseId Unique identifier of TestCase this Response is attached (in case of a test)
	TestCaseId *string `json:"testCaseId,omitempty"`
}

Response A mock invocation or test response

type SearchServicesParams

type SearchServicesParams struct {
	// QueryMap Map of criterion. Key can be simply 'name' with value as the searched string. You can also search by label using keys like 'labels.x' where 'x' is the label and value the label value
	QueryMap map[string]string `form:"queryMap" json:"queryMap"`
}

SearchServicesParams defines parameters for SearchServices.

type SearchServicesResponse

type SearchServicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Service
}

func ParseSearchServicesResponse

func ParseSearchServicesResponse(rsp *http.Response) (*SearchServicesResponse, error)

ParseSearchServicesResponse parses an HTTP response from a SearchServicesWithResponse call

func (SearchServicesResponse) Status

func (r SearchServicesResponse) Status() string

Status returns HTTPResponse.Status

func (SearchServicesResponse) StatusCode

func (r SearchServicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Secret

type Secret struct {
	CaCertPem *string `json:"caCertPem,omitempty"`

	// Description Description of this Secret
	Description string `json:"description"`

	// Id Unique identifier of Secret
	Id *string `json:"id,omitempty"`

	// Name Unique distinct name of Secret
	Name        string  `json:"name"`
	Password    *string `json:"password,omitempty"`
	Token       *string `json:"token,omitempty"`
	TokenHeader *string `json:"tokenHeader,omitempty"`
	Username    *string `json:"username,omitempty"`
}

Secret A Secret allows grouping informations on how to access a restricted resource such as a repsoitory URL. Secrets are typically used by ImpoortJobs.

type SecretRef

type SecretRef struct {
	// Name Distinct name of the referenced Secret
	Name string `json:"name"`

	// SecretId Unique identifier or referenced Secret
	SecretId string `json:"secretId"`
}

SecretRef Lightweight reference for an existing Secret

type Service

type Service struct {
	// Id Unique identifier for this Service or API
	Id *string `json:"id,omitempty"`

	// Metadata Commodity object for holding metadata on any entity. This object is inspired by Kubernetes metadata.
	Metadata *Metadata `json:"metadata,omitempty"`

	// Name Distinct name for this Service or API (maybe shared among many versions)
	Name string `json:"name"`

	// Operations Set of Operations for Service or API
	Operations *[]Operation `json:"operations,omitempty"`

	// Type Service or API Type
	Type ServiceType `json:"type"`

	// Version Distinct version for a named Service or API
	Version string `json:"version"`

	// XmlNS Associated Xml Namespace in case of Xml based Service
	XmlNS *string `json:"xmlNS,omitempty"`
}

Service Represents a Service or API definition as registred into Microcks repository

type ServiceRef

type ServiceRef struct {
	// Name The Service name
	Name string `json:"name"`

	// ServiceId Unique reference of a Service
	ServiceId string `json:"serviceId"`

	// Version The Service version
	Version string `json:"version"`
}

ServiceRef Lightweight reference of an existing Service

type ServiceResponse

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

ServiceResponse defines model for ServiceResponse.

func (ServiceResponse) AsService

func (t ServiceResponse) AsService() (Service, error)

AsService returns the union data inside the ServiceResponse as a Service

func (ServiceResponse) AsServiceView

func (t ServiceResponse) AsServiceView() (ServiceView, error)

AsServiceView returns the union data inside the ServiceResponse as a ServiceView

func (*ServiceResponse) FromService

func (t *ServiceResponse) FromService(v Service) error

FromService overwrites any union data inside the ServiceResponse as the provided Service

func (*ServiceResponse) FromServiceView

func (t *ServiceResponse) FromServiceView(v ServiceView) error

FromServiceView overwrites any union data inside the ServiceResponse as the provided ServiceView

func (ServiceResponse) MarshalJSON

func (t ServiceResponse) MarshalJSON() ([]byte, error)

func (*ServiceResponse) MergeService

func (t *ServiceResponse) MergeService(v Service) error

MergeService performs a merge with any union data inside the ServiceResponse, using the provided Service

func (*ServiceResponse) MergeServiceView

func (t *ServiceResponse) MergeServiceView(v ServiceView) error

MergeServiceView performs a merge with any union data inside the ServiceResponse, using the provided ServiceView

func (*ServiceResponse) UnmarshalJSON

func (t *ServiceResponse) UnmarshalJSON(b []byte) error

type ServiceType

type ServiceType string

ServiceType Service or API Type

const (
	EVENT        ServiceType = "EVENT"
	GENERICEVENT ServiceType = "GENERIC_EVENT"
	GENERICREST  ServiceType = "GENERIC_REST"
	GRAPHQL      ServiceType = "GRAPHQL"
	GRPC         ServiceType = "GRPC"
	REST         ServiceType = "REST"
	SOAPHTTP     ServiceType = "SOAP_HTTP"
)

Defines values for ServiceType.

type ServiceView

type ServiceView struct {
	// MessagesMap Map of messages for this Service. Keys are operation name, values are array of messages for this operation
	MessagesMap map[string]MessageArray `json:"messagesMap"`

	// Service Represents a Service or API definition as registred into Microcks repository
	Service Service `json:"service"`
}

ServiceView Aggregate bean for grouping a Service an its messages pairs

type SnapshotUpload

type SnapshotUpload struct {
	// File The repository snapshot file
	File openapi_types.File `json:"file"`
}

SnapshotUpload Upload of a repository snapshot file

type StartImportJobResponse

type StartImportJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImportJob
}

func ParseStartImportJobResponse

func ParseStartImportJobResponse(rsp *http.Response) (*StartImportJobResponse, error)

ParseStartImportJobResponse parses an HTTP response from a StartImportJobWithResponse call

func (StartImportJobResponse) Status

func (r StartImportJobResponse) Status() string

Status returns HTTPResponse.Status

func (StartImportJobResponse) StatusCode

func (r StartImportJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StopImportJobResponse

type StopImportJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImportJob
}

func ParseStopImportJobResponse

func ParseStopImportJobResponse(rsp *http.Response) (*StopImportJobResponse, error)

ParseStopImportJobResponse parses an HTTP response from a StopImportJobWithResponse call

func (StopImportJobResponse) Status

func (r StopImportJobResponse) Status() string

Status returns HTTPResponse.Status

func (StopImportJobResponse) StatusCode

func (r StopImportJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StringArray

type StringArray = []string

StringArray A simple array of String

type TestCaseResult

type TestCaseResult struct {
	// ElapsedTime Elapsed time in milliseconds since the test case beginning
	ElapsedTime float32 `json:"elapsedTime"`

	// OperationName Name of operation this test case is bound to
	OperationName string `json:"operationName"`

	// Success Flag telling if test case is a success
	Success bool `json:"success"`

	// TestStepResults Test steps associated to this test case
	TestStepResults *[]TestStepResult `json:"testStepResults,omitempty"`
}

TestCaseResult Companion objects for TestResult. Each TestCaseResult correspond to a particuliar service operation / action reference by the operationName field. TestCaseResults owns a collection of TestStepResults (one for every request associated to service operation / action).

type TestCaseReturnDTO

type TestCaseReturnDTO struct {
	// OperationName Name of related operation for this TestCase
	OperationName string `json:"operationName"`
}

TestCaseReturnDTO defines model for TestCaseReturnDTO.

type TestConformanceMetric

type TestConformanceMetric struct {
	// AggregationLabelValue Value of the label used for metrics aggregation (if any)
	AggregationLabelValue *string `json:"aggregationLabelValue,omitempty"`

	// CurrentScore Current test conformance score for the related Service
	CurrentScore float64 `json:"currentScore"`

	// Id Unique identifier of coverage metric
	Id string `json:"id"`

	// LastUpdateDay The day of latest score update (in yyyyMMdd format)
	LastUpdateDay *string `json:"lastUpdateDay,omitempty"`

	// LatestScores History of latest scores (key is date with format yyyyMMdd, value is score as double)
	LatestScores *map[string]float32 `json:"latestScores,omitempty"`

	// LatestTrend Evolution trend qualifier
	LatestTrend *Trend `json:"latestTrend,omitempty"`

	// MaxPossibleScore Maximum conformance score that can be reached (depends on samples expresiveness)
	MaxPossibleScore float64 `json:"maxPossibleScore"`

	// ServiceId Unique identifier of the Service this metric is related to
	ServiceId string `json:"serviceId"`
}

TestConformanceMetric Represents the test conformance metrics (current score, history and evolution trend) of a Service

type TestRequest

type TestRequest struct {
	// FilteredOperations A restriction on service operations to test
	FilteredOperations *[]string `json:"filteredOperations,omitempty"`

	// OperationHeaders Specification of additional headers for a Service/API operations. Keys are operation name or "globals" (if header applies to all), values are Header objects DTO.
	OperationHeaders *OperationHeaders `json:"operationHeaders,omitempty"`

	// RunnerType Type of test strategy (different strategies are implemented by different runners)
	RunnerType TestRunnerType `json:"runnerType"`

	// SecretName The name of Secret to use for connecting the test endpoint
	SecretName *string `json:"secretName,omitempty"`

	// ServiceId Unique identifier of service to test
	ServiceId string `json:"serviceId"`

	// TestEndpoint Endpoint to test for this service
	TestEndpoint string `json:"testEndpoint"`

	// Timeout The maximum time (in milliseconds) to wait for this test ends
	Timeout int `json:"timeout"`
}

TestRequest Test request is a minimalist wrapper for requesting the launch of a new test

type TestResult

type TestResult struct {
	// ElapsedTime Elapsed time in milliseconds since test beginning
	ElapsedTime *float32 `json:"elapsedTime,omitempty"`

	// Id Unique identifier of TestResult
	Id string `json:"id"`

	// InProgress Flag telling is test is still in progress
	InProgress bool `json:"inProgress"`

	// OperationHeaders Specification of additional headers for a Service/API operations. Keys are operation name or "globals" (if header applies to all), values are Header objects DTO.
	OperationHeaders *OperationHeaders `json:"operationHeaders,omitempty"`

	// RunnerType Type of test strategy (different strategies are implemented by different runners)
	RunnerType TestRunnerType `json:"runnerType"`

	// SecretRef Lightweight reference for an existing Secret
	SecretRef *SecretRef `json:"secretRef,omitempty"`

	// ServiceId Unique identifier of service tested
	ServiceId string `json:"serviceId"`

	// Success Flag telling if test is a success
	Success bool `json:"success"`

	// TestCaseResults TestCase results associated to this test
	TestCaseResults *[]TestCaseResult `json:"testCaseResults,omitempty"`

	// TestDate Timestamp of creation date of this service
	TestDate int64 `json:"testDate"`

	// TestNumber Incremental number for tracking number of tests of a service
	TestNumber float32 `json:"testNumber"`

	// TestedEndpoint Endpoint used during test
	TestedEndpoint string `json:"testedEndpoint"`

	// Timeout The maximum time (in milliseconds) to wait for this test ends
	Timeout *int `json:"timeout,omitempty"`

	// Version Revision number of this test
	Version float32 `json:"version"`
}

TestResult Represents the result of a Service or API test run by Microcks. Tests are related to a service and made of multiple test cases corresponding to each operations / actions composing service. Tests are run against a specific endpoint named testedEndpoint. It holds global markers telling if test still ran, is a success, how many times is has taken and so on ...

type TestResultSummary

type TestResultSummary struct {
	// Id Unique identifier of TestResult
	Id string `json:"id"`

	// ServiceId Unique identifier of service tested
	ServiceId string `json:"serviceId"`

	// Success Flag telling if test is a success
	Success bool `json:"success"`

	// TestDate Timestamp of creation date of this service
	TestDate int64 `json:"testDate"`
}

TestResultSummary Represents the summary result of a Service or API test run by Microcks.

type TestRunnerType

type TestRunnerType string

TestRunnerType Type of test strategy (different strategies are implemented by different runners)

const (
	TestRunnerTypeASYNCAPISCHEMA TestRunnerType = "ASYNC_API_SCHEMA"
	TestRunnerTypeGRAPHQLSCHEMA  TestRunnerType = "GRAPHQL_SCHEMA"
	TestRunnerTypeGRPCPROTOBUF   TestRunnerType = "GRPC_PROTOBUF"
	TestRunnerTypeHTTP           TestRunnerType = "HTTP"
	TestRunnerTypeOPENAPISCHEMA  TestRunnerType = "OPEN_API_SCHEMA"
	TestRunnerTypePOSTMAN        TestRunnerType = "POSTMAN"
	TestRunnerTypeSOAPHTTP       TestRunnerType = "SOAP_HTTP"
	TestRunnerTypeSOAPUI         TestRunnerType = "SOAP_UI"
)

Defines values for TestRunnerType.

type TestStepResult

type TestStepResult struct {
	// ElapsedTime Elapsed time in milliseconds since the test step beginning
	ElapsedTime *float32 `json:"elapsedTime,omitempty"`

	// EventMessageName Name of event this test step is bound to
	EventMessageName *string `json:"eventMessageName,omitempty"`

	// Message Error message that may be associated to this test step
	Message *string `json:"message,omitempty"`

	// RequestName Name of request this test step is bound to
	RequestName *string `json:"requestName,omitempty"`

	// Success Flag telling if test case is a success
	Success bool `json:"success"`
}

TestStepResult TestStepResult is an entity embedded within TestCaseResult. They are created for each request associated with an operation / action of a microservice.

type Trend

type Trend string

Trend Evolution trend qualifier

const (
	DOWN    Trend = "DOWN"
	LOWDOWN Trend = "LOW_DOWN"
	LOWUP   Trend = "LOW_UP"
	STABLE  Trend = "STABLE"
	UP      Trend = "UP"
)

Defines values for Trend.

type UnidirectionalEvent

type UnidirectionalEvent struct {
	EventMessage EventMessage `json:"eventMessage"`

	// Type Discriminant type for identifying kind of exchange
	Type UnidirectionalEventType `json:"type"`
}

UnidirectionalEvent defines model for UnidirectionalEvent.

type UnidirectionalEventType

type UnidirectionalEventType string

UnidirectionalEventType Discriminant type for identifying kind of exchange

const (
	ReqRespPair UnidirectionalEventType = "reqRespPair"
	UnidirEvent UnidirectionalEventType = "unidirEvent"
)

Defines values for UnidirectionalEventType.

type UpdateSecretResponse

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

func ParseUpdateSecretResponse

func ParseUpdateSecretResponse(rsp *http.Response) (*UpdateSecretResponse, error)

ParseUpdateSecretResponse parses an HTTP response from a UpdateSecretWithResponse call

func (UpdateSecretResponse) Status

func (r UpdateSecretResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSecretResponse) StatusCode

func (r UpdateSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateServiceMetadataJSONRequestBody

type UpdateServiceMetadataJSONRequestBody = Metadata

UpdateServiceMetadataJSONRequestBody defines body for UpdateServiceMetadata for application/json ContentType.

type UpdateServiceMetadataResponse

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

func ParseUpdateServiceMetadataResponse

func ParseUpdateServiceMetadataResponse(rsp *http.Response) (*UpdateServiceMetadataResponse, error)

ParseUpdateServiceMetadataResponse parses an HTTP response from a UpdateServiceMetadataWithResponse call

func (UpdateServiceMetadataResponse) Status

Status returns HTTPResponse.Status

func (UpdateServiceMetadataResponse) StatusCode

func (r UpdateServiceMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadArtifactMultipartRequestBody

type UploadArtifactMultipartRequestBody = ArtifactUpload

UploadArtifactMultipartRequestBody defines body for UploadArtifact for multipart/form-data ContentType.

type UploadArtifactParams

type UploadArtifactParams struct {
	// MainArtifact Flag telling if this should be considered as primary or secondary artifact. Default to 'true'
	MainArtifact bool `form:"mainArtifact" json:"mainArtifact"`
}

UploadArtifactParams defines parameters for UploadArtifact.

type UploadArtifactResponse

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

func ParseUploadArtifactResponse

func ParseUploadArtifactResponse(rsp *http.Response) (*UploadArtifactResponse, error)

ParseUploadArtifactResponse parses an HTTP response from a UploadArtifactWithResponse call

func (UploadArtifactResponse) Status

func (r UploadArtifactResponse) Status() string

Status returns HTTPResponse.Status

func (UploadArtifactResponse) StatusCode

func (r UploadArtifactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WeightedMetricValue

type WeightedMetricValue struct {
	// Name Metric name or serie name
	Name string `json:"name"`

	// Value The value of this metric
	Value int `json:"value"`

	// Weight Weight of this metric value (typically a percentage)
	Weight int `json:"weight"`
}

WeightedMetricValue Value of a metric with an associated weight

Jump to

Keyboard shortcuts

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