mock

package
v0.0.0-...-03525d1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidToken

func GetValidToken(uaaURL string) (string, error)

func MustParseURL

func MustParseURL(rawURL string) *url.URL

func NewDefaultResolverWithMockBoshAPIWithEndpoints

func NewDefaultResolverWithMockBoshAPIWithEndpoints(endpoints []pcap.AgentEndpoint, deploymentName string) (*pcap.BoshResolver, *httptest.Server, *httptest.Server, error)

func NewMockBoshDirectorAPI

func NewMockBoshDirectorAPI(responses map[string]string, url string) *httptest.Server

func NewMockJWTAPI

func NewMockJWTAPI() (*httptest.Server, string)

func NewResolverWithMockBoshAPI

func NewResolverWithMockBoshAPI(responses map[string]string) (*pcap.BoshResolver, *httptest.Server, *httptest.Server, error)

func NewResolverWithMockBoshAPIWithConfig

func NewResolverWithMockBoshAPIWithConfig(responses map[string]string, config pcap.BoshResolverConfig) (*pcap.BoshResolver, *httptest.Server, *httptest.Server, error)

func NewResolverWithMockBoshAPIWithEndpoints

func NewResolverWithMockBoshAPIWithEndpoints(endpoints []pcap.AgentEndpoint, config pcap.BoshResolverConfig, deploymentName string) (*pcap.BoshResolver, *httptest.Server, *httptest.Server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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