authtest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 2 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) *Context

NewContext constructs a new test context.

func (*Context) Environment

func (c *Context) Environment() string

Environment gets this context's environment.

func (*Context) InternalAPI

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

InternalAPI gets a URL base to send HTTP requests to.

func (*Context) Organization

func (c *Context) Organization() string

Organization gets this context's organization.

func (*Context) RemoteServiceAPI

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

RemoteServiceAPI gets a URL base to send HTTP requests to.

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