policymanager

package
v0.0.2412 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Copyright 2022-2024 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyManager

type PolicyManager struct {
	Store *policy.Store
	Agent policy.IAgent
	// contains filtered or unexported fields
}

func New

func New(v *viper.Viper, store *policy.Store, logger *zap.SugaredLogger) (*PolicyManager, error)

func (*PolicyManager) Evaluate

func (o *PolicyManager) Evaluate(
	ctx context.Context,
	scheme string,
	appraisal *appraisal.Appraisal,
	endorsements []string,
) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL