mock

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Session = func() *session.Session {

	server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.WriteHeader(http.StatusOK)
	}))

	return session.Must(session.NewSession(&nifcloud.Config{
		DisableSSL: nifcloud.Bool(true),
		Endpoint:   nifcloud.String(server.URL),
	}))
}()

Session is a mock session which is used to hit the mock server

Functions

func NewMockClient

func NewMockClient(cfgs ...*nifcloud.Config) *client.Client

NewMockClient creates and initializes a client that will connect to the mock server

Types

This section is empty.

Jump to

Keyboard shortcuts

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