Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("policy not found")
Functions ¶
This section is empty.
Types ¶
type NewRegistryConfig ¶
type PolicyProvider ¶
type PolicyProvider struct {
// contains filtered or unexported fields
}
PolicyProvider represents an external policy provider
func (*PolicyProvider) Resolve ¶
func (p *PolicyProvider) Resolve(policyName string, token string) (*schemaapi.Policy, *PolicyReference, error)
Resolve calls the remote provider for retrieving a policy
type PolicyReference ¶ added in v0.96.5
type ProviderResponse ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages policy providers
func NewRegistry ¶
func NewRegistry(conf ...*NewRegistryConfig) (*Registry, error)
func (*Registry) DefaultProvider ¶
func (r *Registry) DefaultProvider() *PolicyProvider
func (*Registry) GetProvider ¶
func (r *Registry) GetProvider(name string) *PolicyProvider
func (*Registry) GetProviderNames ¶ added in v0.96.5
Click to show internal directories.
Click to hide internal directories.