| 1 |
// Copyright The Notary Project Authors. |
| 2 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 |
// you may not use this file except in compliance with the License. |
| 4 |
// You may obtain a copy of the License at |
| 5 |
// |
| 6 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 7 |
// |
| 8 |
// Unless required by applicable law or agreed to in writing, software |
| 9 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 10 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 |
// See the License for the specific language governing permissions and |
| 12 |
// limitations under the License. |
| 13 |
|
| 14 |
package proto |
| 15 |
|
| 16 |
import ( |
| 17 |
"github.com/notaryproject/notation-plugin-framework-go/plugin" |
| 18 |
) |
| 19 |
|
| 20 |
// VerifySignatureRequest contains the parameters passed in a verify-signature |
| 21 |
// request. |
| 22 |
// |
| 23 |
// Deprecated: VerifySignatureRequest exists for historical compatibility and should not be used. |
| 24 |
// To access VerifySignatureRequest, use the notation-plugin-framework-go'[s plugin.VerifySignatureRequest] type. |
| 25 |
type VerifySignatureRequest = plugin.VerifySignatureRequest |
| 26 |
|
| 27 |
// Signature represents a signature pulled from the envelope |
| 28 |
// |
| 29 |
// Deprecated: Signature exists for historical compatibility and should not be used. |
| 30 |
// To access Signature, use the notation-plugin-framework-go's [plugin.Signature] type. |
| 31 |
type Signature = plugin.Signature |
| 32 |
|
| 33 |
// CriticalAttributes contains all Notary Project defined critical |
| 34 |
// attributes and their values in the signature envelope |
| 35 |
// |
| 36 |
// Deprecated: CriticalAttributes exists for historical compatibility and should not be used. |
| 37 |
// To access CriticalAttributes, use the notation-plugin-framework-go's [plugin.CriticalAttributes] type. |
| 38 |
type CriticalAttributes = plugin.CriticalAttributes |
| 39 |
|
| 40 |
// TrustPolicy represents trusted identities that sign the artifacts |
| 41 |
// |
| 42 |
// Deprecated: TrustPolicy exists for historical compatibility and should not be used. |
| 43 |
// To access TrustPolicy, use the notation-plugin-framework-go's [plugin.TrustPolicy] type. |
| 44 |
type TrustPolicy = plugin.TrustPolicy |
| 45 |
|
| 46 |
// VerifySignatureResponse is the response of a verify-signature request. |
| 47 |
// |
| 48 |
// Deprecated: VerifySignatureResponse exists for historical compatibility and should not be used. |
| 49 |
// To access VerifySignatureResponse, use the notation-plugin-framework-go's [plugin.VerifySignatureResponse] type. |
| 50 |
type VerifySignatureResponse = plugin.VerifySignatureResponse |
| 51 |
|
| 52 |
// VerificationResult is the result of a verification performed by the plugin. |
| 53 |
// |
| 54 |
// Deprecated: VerificationResult exists for historical compatibility and should not be used. |
| 55 |
// To access VerificationResult, use the notation-plugin-framework-go's [plugin.VerificationResult] type. |
| 56 |
type VerificationResult = plugin.VerificationResult |