-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
policy_store_util.go
47 lines (32 loc) · 1.23 KB
/
policy_store_util.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// +build !enterprise
package vault
import (
"context"
"github.com/hashicorp/vault/helper/namespace"
"github.com/hashicorp/vault/sdk/logical"
)
type entPolicyStore struct{}
func (ps *PolicyStore) extraInit() {
}
func (ps *PolicyStore) loadNamespacePolicies(context.Context, *Core) error { return nil }
func (ps *PolicyStore) getACLView(*namespace.Namespace) *BarrierView {
return ps.aclView
}
func (ps *PolicyStore) getRGPView(ns *namespace.Namespace) *BarrierView {
return ps.rgpView
}
func (ps *PolicyStore) getEGPView(ns *namespace.Namespace) *BarrierView {
return ps.egpView
}
func (ps *PolicyStore) getBarrierView(ns *namespace.Namespace, _ PolicyType) *BarrierView {
return ps.getACLView(ns)
}
func (ps *PolicyStore) handleSentinelPolicy(context.Context, *Policy, *BarrierView, *logical.StorageEntry) error {
return nil
}
func (ps *PolicyStore) parseEGPPaths(*Policy) error { return nil }
func (ps *PolicyStore) invalidateEGPTreePath(string) {}
func (ps *PolicyStore) pathsToEGPPaths(*Policy) ([]*egpPath, error) { return nil, nil }
func (ps *PolicyStore) loadACLPolicyNamespaces(ctx context.Context, policyName, policyText string) error {
return ps.loadACLPolicyInternal(namespace.RootContext(ctx), policyName, policyText)
}