authtest

package
v0.0.0-...-dcd54df Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context implements the context.Context interface and is to be used in tests.

func NewContext

func NewContext(base string, log adapter.Logger) *Context

NewContext constructs a new test context.

func (*Context) ApigeeBase

func (c *Context) ApigeeBase() *url.URL

ApigeeBase gets a URL base to send HTTP requests to.

func (*Context) CustomerBase

func (c *Context) CustomerBase() *url.URL

CustomerBase gets a URL base to send HTTP requests to.

func (*Context) Environment

func (c *Context) Environment() string

Environment gets this context's environment.

func (*Context) Key

func (c *Context) Key() string

Key gets this context's API key.

func (*Context) Log

func (c *Context) Log() adapter.Logger

Log gets a logger for the test context.

func (*Context) Organization

func (c *Context) Organization() string

Organization gets this context's organization.

func (*Context) Secret

func (c *Context) Secret() string

Secret gets this context's API secret.

func (*Context) SetEnvironment

func (c *Context) SetEnvironment(e string)

SetEnvironment sets this context's environment.

func (*Context) SetOrganization

func (c *Context) SetOrganization(o string)

SetOrganization sets this context's organization.

Jump to

Keyboard shortcuts

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