Skip to content

Commit

Permalink
chore: refactor layout
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin Li <[email protected]>
  • Loading branch information
binbin-li committed Jan 6, 2025
1 parent 080f092 commit 438ef1f
Show file tree
Hide file tree
Showing 16 changed files with 282 additions and 400 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions core/api.go → executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package core
package ratify

import (
"context"

"github.com/ratify-project/ratify-go/plugin/policyenforcer"
)

// VerifyParameters describes the artifact validation parameters
type VerifyParameters struct {
// ValidateArtifactOptions describes the artifact validation options.
type ValidateArtifactOptions struct {
// SubjectArtifact is the artifact to be validated. Required.
SubjectArtifact string `json:"subjectArtifact"`
// ReferenceTypes is a list of reference types that should be verified in
Expand All @@ -34,5 +32,5 @@ type VerifyParameters struct {
// Executor is an interface that defines methods to validate an artifact
type Executor interface {
// ValidateArtifact returns the result of verifying an artifact
ValidateArtifact(ctx context.Context, verifyParameters VerifyParameters) (policyenforcer.ValidationResult, error)
ValidateArtifact(ctx context.Context, opts ValidateArtifactOptions) (ValidationResult, error)
}
64 changes: 0 additions & 64 deletions plugin/policyenforcer/factory.go

This file was deleted.

64 changes: 0 additions & 64 deletions plugin/store/factory.go

This file was deleted.

44 changes: 0 additions & 44 deletions plugin/verifier/api.go

This file was deleted.

63 changes: 0 additions & 63 deletions plugin/verifier/factory.go

This file was deleted.

92 changes: 0 additions & 92 deletions plugin/verifier/factory_test.go

This file was deleted.

Loading

0 comments on commit 438ef1f

Please sign in to comment.