Documentation
¶
Index ¶
- Constants
- Variables
- func GetPolicies(ctx context.Context) *api.Policies
- func ReadToml(config string) (*api.Policies, error)
- func WithPolicies(ctx context.Context, policies *api.Policies) context.Context
- type Provider
- func (p *Provider) IsInferenceEnabledByPolicies(feature api.Feature[api.InferenceAttributes], policies *api.Policies) bool
- func (p *Provider) IsToolEnabledByPolicies(feature api.Feature[api.ToolsAttributes], policies *api.Policies) bool
- func (p *Provider) Read(policiesFile string) (*api.Policies, error)
Constants ¶
View Source
const (
DefaultInferenceEnabled = true
)
View Source
const (
DefaultToolEnabled = true
)
Variables ¶
View Source
var PoliciesProvider api.PoliciesProvider = &Provider{}
Functions ¶
Types ¶
type Provider ¶ added in v0.0.10
type Provider struct{}
func (*Provider) IsInferenceEnabledByPolicies ¶ added in v0.0.10
func (*Provider) IsToolEnabledByPolicies ¶ added in v0.0.10
Click to show internal directories.
Click to hide internal directories.