open-vault/vault/router_access.go
Jeff Mitchell 3c6fe40a91 Sync
2017-10-23 15:35:28 -04:00

15 lines
344 B
Go

package vault
// RouterAccess provides access into some things necessary for testing
type RouterAccess struct {
c *Core
}
func NewRouterAccess(c *Core) *RouterAccess {
return &RouterAccess{c: c}
}
func (r *RouterAccess) StoragePrefixByAPIPath(path string) (string, string, bool) {
return r.c.router.MatchingStoragePrefixByAPIPath(path)
}