Documentation ¶
Overview ¶
Package cerulean provides Go packages for mocking the Azure api. GitHub repo: https://github.com/goshlanguage/cerulean
API reference: https://docs.microsoft.com/en-us/rest/api/azure/ Samples: https://github.com/goshlanguage/cerulean
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cerulean ¶
type Cerulean struct { // Addr is the address that Cerulean should listen at, eg: 127.0.0.1:51234 Addr string // BaseSubscriptionID is the base subscriptionID created and the default subscriptionID used for tests BaseSubscriptionID string Echo *echo.Echo Services []services.Service Store *lightdb.Store }
Cerulean holds the handlers and port to instantiate the mock server
func New ¶
func New() Cerulean
New sets up an instance of our mock and returns it
and returns a the mock server
New generates a local address to be passed in when initializing a `BaseClient`
in order to point it at the mock server.
func (*Cerulean) GetBaseClientURI ¶
GetBaseClientURI returns the address string in the form consumable by say an azure-sdk-for-go BaseClient
func (*Cerulean) ListenAndServe ¶
ListenAndServe starts our server.
Click to show internal directories.
Click to hide internal directories.