Documentation
¶
Index ¶
Constants ¶
View Source
const (
RequestURLMappingsFlag = "request-url-mappings"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestURLMapper ¶
type RequestURLMapper struct {
// contains filtered or unexported fields
}
RequestURLMapper handles URL mapping for addon requests
func NewRequestURLMapper ¶
func NewRequestURLMapper(c *cli.Context) (*RequestURLMapper, error)
NewRequestURLMapper creates a new RequestURLMapper from cli.Context The JSON format is: {"https://external.url": "http://internal.url", ...}
func (*RequestURLMapper) MapURL ¶
func (m *RequestURLMapper) MapURL(url string) string
MapURL replaces the beginning of the URL according to the mappings If no mapping matches, returns the original URL
Click to show internal directories.
Click to hide internal directories.