Debian Codegraph @

plugin/proto/proto.go

raw
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 defines the protocol layer for communication between notation
15 // and notation external plugin.
16 package proto
17
18 import "github.com/notaryproject/notation-plugin-framework-go/plugin"
19
20 // Prefix is the prefix required on all plugin binary names.
21 //
22 // Deprecated: Prefix exists for historical compatibility and should not be used.
23 // To access Prefix, use the notation-plugin-framework-go's [plugin.BinaryPrefix] type.
24 const Prefix = plugin.BinaryPrefix
25
26 // ContractVersion is the <major>.<minor> version of the plugin contract.
27 //
28 // Deprecated: ContractVersion exists for historical compatibility and should not be used.
29 // To access ContractVersion, use the notation-plugin-framework-go's [plugin.ContractVersion] type.
30 const ContractVersion = plugin.ContractVersion
31
32 // Command is a CLI command available in the plugin contract.
33 //
34 // Deprecated: Command exists for historical compatibility and should not be used.
35 // To access Command, use the notation-plugin-framework-go's [plugin.Command] type.
36 type Command = plugin.Command
37
38 // Request defines a plugin request, which is always associated to a command.
39 //
40 // Deprecated: Request exists for historical compatibility and should not be used.
41 // To access Request, use the notation-plugin-framework-go's [plugin.Request] type.
42 type Request = plugin.Request
43
44 const (
45 // CommandGetMetadata is the name of the plugin command
46 // which must be supported by every plugin and returns the
47 // plugin metadata.
48 //
49 // Deprecated: CommandGetMetadata exists for historical compatibility and should not be used.
50 // To access CommandGetMetadata, use the notation-plugin-framework-go's [plugin.CommandGetMetadata].
51 CommandGetMetadata = plugin.CommandGetMetadata
52
53 // CommandDescribeKey is the name of the plugin command
54 // which must be supported by every plugin that has the
55 // SIGNATURE_GENERATOR.RAW capability.
56 //
57 // Deprecated: CommandDescribeKey exists for historical compatibility and should not be used.
58 // To access CommandDescribeKey, use the notation-plugin-framework-go's [plugin.CommandDescribeKey].
59 CommandDescribeKey = plugin.CommandDescribeKey
60
61 // CommandGenerateSignature is the name of the plugin command
62 // which must be supported by every plugin that has the
63 // SIGNATURE_GENERATOR.RAW capability.
64 //
65 // Deprecated: CommandGenerateSignature exists for historical compatibility and should not be used.
66 // To access CommandGenerateSignature, use the notation-plugin-framework-go's [plugin.CommandGenerateSignature].
67 CommandGenerateSignature = plugin.CommandGenerateSignature
68
69 // CommandGenerateEnvelope is the name of the plugin command
70 // which must be supported by every plugin that has the
71 // SIGNATURE_GENERATOR.ENVELOPE capability.
72 //
73 // Deprecated: CommandGenerateEnvelope exists for historical compatibility and should not be used.
74 // To access CommandGenerateEnvelope, use the notation-plugin-framework-go's [plugin.CommandGenerateEnvelope].
75 CommandGenerateEnvelope = plugin.CommandGenerateEnvelope
76
77 // CommandVerifySignature is the name of the plugin command
78 // which must be supported by every plugin that has
79 // any SIGNATURE_VERIFIER.* capability
80 //
81 // Deprecated: CommandVerifySignature exists for historical compatibility and should not be used.
82 // To access CommandVerifySignature, use the notation-plugin-framework-go's [plugin.CommandVerifySignature].
83 CommandVerifySignature = plugin.CommandVerifySignature
84 )
85
86 // Capability is a feature available in the plugin contract.
87 //
88 // Deprecated: Capability exists for historical compatibility and should not be used.
89 // To access Capability, use the notation-plugin-framework-go's [plugin.Capability] type.
90 type Capability = plugin.Capability
91
92 const (
93 // CapabilitySignatureGenerator is the name of the capability
94 // for a plugin to support generating raw signatures.
95 //
96 // Deprecated: CapabilitySignatureGenerator exists for historical compatibility and should not be used.
97 // To access CapabilitySignatureGenerator, use the notation-plugin-framework-go's [plugin.CapabilitySignatureGenerator].
98 CapabilitySignatureGenerator = plugin.CapabilitySignatureGenerator
99
100 // CapabilityEnvelopeGenerator is the name of the capability
101 // for a plugin to support generating envelope signatures.
102 //
103 // Deprecated: CapabilityEnvelopeGenerator exists for historical compatibility and should not be used.
104 // To access CapabilityEnvelopeGenerator, use the notation-plugin-framework-go's [plugin.CapabilityEnvelopeGenerator].
105 CapabilityEnvelopeGenerator = plugin.CapabilityEnvelopeGenerator
106
107 // CapabilityTrustedIdentityVerifier is the name of the
108 // capability for a plugin to support verifying trusted identities.
109 //
110 // Deprecated: CapabilityTrustedIdentityVerifier exists for historical compatibility and should not be used.
111 // To access CapabilityTrustedIdentityVerifier, use the notation-plugin-framework-go's [plugin.CapabilityTrustedIdentityVerifier].
112 CapabilityTrustedIdentityVerifier = plugin.CapabilityTrustedIdentityVerifier
113
114 // CapabilityRevocationCheckVerifier is the name of the
115 // capability for a plugin to support verifying revocation checks.
116 //
117 // Deprecated: CapabilityRevocationCheckVerifier exists for historical compatibility and should not be used.
118 // To access CapabilityRevocationCheckVerifier, use the notation-plugin-framework-go's [plugin.CapabilityRevocationCheckVerifier].
119 CapabilityRevocationCheckVerifier = plugin.CapabilityRevocationCheckVerifier
120 )