testserver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package testserver provides fake Terramate Cloud endpoints for testing purposes.

Index

Constants

View Source
const DefaultOrgUUID = "0000-1111-2222-3333"

DefaultOrgUUID is the test organization UUID.

Variables

This section is empty.

Functions

func EnableAllConfig

func EnableAllConfig() map[string]bool

EnableAllConfig returns a map that enables all cloud endpoints.

func Router

func Router() *httprouter.Router

Router returns the default fake cloud router.

func RouterWith

func RouterWith(enabled map[string]bool) *httprouter.Router

RouterWith returns the testserver router configuration only for the enabled endpoints.

Types

This section is empty.

Directories

Path Synopsis
cmd
fakecloud
Package main implements the cloudmock service.
Package main implements the cloudmock service.

Jump to

Keyboard shortcuts

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