Documentation ¶
Index ¶
- type Context
- func (c *Context) Environment() string
- func (c *Context) InternalAPI() *url.URL
- func (c *Context) Key() string
- func (c *Context) Organization() string
- func (c *Context) RemoteServiceAPI() *url.URL
- func (c *Context) Secret() string
- func (c *Context) SetEnvironment(e string)
- func (c *Context) SetOrganization(o string)
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 (*Context) Environment ¶
Environment gets this context's environment.
func (*Context) InternalAPI ¶
InternalAPI gets a URL base to send HTTP requests to.
func (*Context) Organization ¶
Organization gets this context's organization.
func (*Context) RemoteServiceAPI ¶
RemoteServiceAPI gets a URL base to send HTTP requests to.
func (*Context) SetEnvironment ¶
SetEnvironment sets this context's environment.
func (*Context) SetOrganization ¶
SetOrganization sets this context's organization.
Click to show internal directories.
Click to hide internal directories.