report

package
v0.0.0-...-4a6d4ce Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package report implements the Azure ARM Report service API version 1.0.0.

Test Infrastructure for AutoRest

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Report
	DefaultBaseURI = "http://localhost:3000"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Report.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BaseClient) GetReport

func (client BaseClient) GetReport(ctx context.Context, qualifier string) (result SetInt32, err error)

GetReport get test coverage report Parameters: qualifier - if specified, qualifies the generated report further (e.g. '2.7' vs '3.5' in for Python). The only effect is, that generators that run all tests several times, can distinguish the generated reports.

func (BaseClient) GetReportPreparer

func (client BaseClient) GetReportPreparer(ctx context.Context, qualifier string) (*http.Request, error)

GetReportPreparer prepares the GetReport request.

func (BaseClient) GetReportResponder

func (client BaseClient) GetReportResponder(resp *http.Response) (result SetInt32, err error)

GetReportResponder handles the response to the GetReport request. The method always closes the http.Response Body.

func (BaseClient) GetReportSender

func (client BaseClient) GetReportSender(req *http.Request) (*http.Response, error)

GetReportSender sends the GetReport request. The method will close the http.Response Body if it receives an error.

type Error

type Error struct {
	Status  *int32  `json:"status,omitempty"`
	Message *string `json:"message,omitempty"`
}

Error ...

type SetInt32

type SetInt32 struct {
	autorest.Response `json:"-"`
	Value             map[string]*int32 `json:"value"`
}

SetInt32 ...

func (SetInt32) MarshalJSON

func (si3 SetInt32) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SetInt32.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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