open-vault/vault/policy_store_util.go
2018-09-17 23:03:00 -04:00

48 lines
1.2 KiB
Go

// +build !enterprise
package vault
import (
"context"
"github.com/hashicorp/vault/helper/namespace"
"github.com/hashicorp/vault/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)
}