Documentation ¶
Index ¶
- Variables
- func RegisterVerifierPluginServer(s grpc.ServiceRegistrar, srv VerifierPluginServer)
- type UnimplementedVerifierPluginServer
- type UnsafeVerifierPluginServer
- type VerifierPluginClient
- type VerifierPluginServer
- type VerifyReferenceRequest
- func (*VerifyReferenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyReferenceRequest) GetConfiguration() *_struct.Struct
- func (x *VerifyReferenceRequest) GetReference() *common.Referrer
- func (x *VerifyReferenceRequest) GetSubject() *common.Descriptor
- func (*VerifyReferenceRequest) ProtoMessage()
- func (x *VerifyReferenceRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyReferenceRequest) Reset()
- func (x *VerifyReferenceRequest) String() string
- type VerifyReferenceResponse
- func (*VerifyReferenceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyReferenceResponse) GetData() []*VerifyReferenceResponse_ExtensionData
- func (x *VerifyReferenceResponse) GetReasons() []string
- func (x *VerifyReferenceResponse) GetReference() *common.Descriptor
- func (x *VerifyReferenceResponse) GetSubject() string
- func (x *VerifyReferenceResponse) GetValid() bool
- func (x *VerifyReferenceResponse) GetVerifierName() string
- func (*VerifyReferenceResponse) ProtoMessage()
- func (x *VerifyReferenceResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyReferenceResponse) Reset()
- func (x *VerifyReferenceResponse) String() string
- type VerifyReferenceResponse_ExtensionData
- func (*VerifyReferenceResponse_ExtensionData) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyReferenceResponse_ExtensionData) GetValues() map[string]string
- func (*VerifyReferenceResponse_ExtensionData) ProtoMessage()
- func (x *VerifyReferenceResponse_ExtensionData) ProtoReflect() protoreflect.Message
- func (x *VerifyReferenceResponse_ExtensionData) Reset()
- func (x *VerifyReferenceResponse_ExtensionData) String() string
Constants ¶
This section is empty.
Variables ¶
var File_verifier_proto protoreflect.FileDescriptor
var VerifierPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "verifier.VerifierPlugin", HandlerType: (*VerifierPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "VerifyReference", Handler: _VerifierPlugin_VerifyReference_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "verifier.proto", }
VerifierPlugin_ServiceDesc is the grpc.ServiceDesc for VerifierPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVerifierPluginServer ¶
func RegisterVerifierPluginServer(s grpc.ServiceRegistrar, srv VerifierPluginServer)
Types ¶
type UnimplementedVerifierPluginServer ¶
type UnimplementedVerifierPluginServer struct { }
UnimplementedVerifierPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedVerifierPluginServer) VerifyReference ¶
func (UnimplementedVerifierPluginServer) VerifyReference(context.Context, *VerifyReferenceRequest) (*VerifyReferenceResponse, error)
type UnsafeVerifierPluginServer ¶
type UnsafeVerifierPluginServer interface {
// contains filtered or unexported methods
}
UnsafeVerifierPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VerifierPluginServer will result in compilation errors.
type VerifierPluginClient ¶
type VerifierPluginClient interface { // Perform verification of a given artifact VerifyReference(ctx context.Context, in *VerifyReferenceRequest, opts ...grpc.CallOption) (*VerifyReferenceResponse, error) }
VerifierPluginClient is the client API for VerifierPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVerifierPluginClient ¶
func NewVerifierPluginClient(cc grpc.ClientConnInterface) VerifierPluginClient
type VerifierPluginServer ¶
type VerifierPluginServer interface { // Perform verification of a given artifact VerifyReference(context.Context, *VerifyReferenceRequest) (*VerifyReferenceResponse, error) // contains filtered or unexported methods }
VerifierPluginServer is the server API for VerifierPlugin service. All implementations must embed UnimplementedVerifierPluginServer for forward compatibility
type VerifyReferenceRequest ¶
type VerifyReferenceRequest struct { // The subject of the artifact. Subject *common.Descriptor `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // The artifact to be evaluated. Reference *common.Referrer `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` // Optional. Custom to the verifier plugin. Can be used to further customize the artifact verification logic. Configuration *_struct.Struct `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` // contains filtered or unexported fields }
Request for VerifyReference
func (*VerifyReferenceRequest) Descriptor
deprecated
func (*VerifyReferenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyReferenceRequest.ProtoReflect.Descriptor instead.
func (*VerifyReferenceRequest) GetConfiguration ¶
func (x *VerifyReferenceRequest) GetConfiguration() *_struct.Struct
func (*VerifyReferenceRequest) GetReference ¶
func (x *VerifyReferenceRequest) GetReference() *common.Referrer
func (*VerifyReferenceRequest) GetSubject ¶
func (x *VerifyReferenceRequest) GetSubject() *common.Descriptor
func (*VerifyReferenceRequest) ProtoMessage ¶
func (*VerifyReferenceRequest) ProtoMessage()
func (*VerifyReferenceRequest) ProtoReflect ¶
func (x *VerifyReferenceRequest) ProtoReflect() protoreflect.Message
func (*VerifyReferenceRequest) Reset ¶
func (x *VerifyReferenceRequest) Reset()
func (*VerifyReferenceRequest) String ¶
func (x *VerifyReferenceRequest) String() string
type VerifyReferenceResponse ¶
type VerifyReferenceResponse struct { // The name of the verifier which evaluated the artifact. VerifierName string `protobuf:"bytes,1,opt,name=verifierName,proto3" json:"verifierName,omitempty"` // The subject of the artifact. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // The artifact under evaluation. Reference *common.Descriptor `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` // Whether the artifact passed validation Valid bool `protobuf:"varint,4,opt,name=valid,proto3" json:"valid,omitempty"` // Details surrounding why the verifier considered the artifact valid or invalid Reasons []string `protobuf:"bytes,5,rep,name=reasons,proto3" json:"reasons,omitempty"` // Custom metadata realized as a part of verification process. // These properties can be used to compose more robust constraints. Data []*VerifyReferenceResponse_ExtensionData `protobuf:"bytes,6,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Response for VerifyReference
func (*VerifyReferenceResponse) Descriptor
deprecated
func (*VerifyReferenceResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyReferenceResponse.ProtoReflect.Descriptor instead.
func (*VerifyReferenceResponse) GetData ¶
func (x *VerifyReferenceResponse) GetData() []*VerifyReferenceResponse_ExtensionData
func (*VerifyReferenceResponse) GetReasons ¶
func (x *VerifyReferenceResponse) GetReasons() []string
func (*VerifyReferenceResponse) GetReference ¶
func (x *VerifyReferenceResponse) GetReference() *common.Descriptor
func (*VerifyReferenceResponse) GetSubject ¶
func (x *VerifyReferenceResponse) GetSubject() string
func (*VerifyReferenceResponse) GetValid ¶
func (x *VerifyReferenceResponse) GetValid() bool
func (*VerifyReferenceResponse) GetVerifierName ¶
func (x *VerifyReferenceResponse) GetVerifierName() string
func (*VerifyReferenceResponse) ProtoMessage ¶
func (*VerifyReferenceResponse) ProtoMessage()
func (*VerifyReferenceResponse) ProtoReflect ¶
func (x *VerifyReferenceResponse) ProtoReflect() protoreflect.Message
func (*VerifyReferenceResponse) Reset ¶
func (x *VerifyReferenceResponse) Reset()
func (*VerifyReferenceResponse) String ¶
func (x *VerifyReferenceResponse) String() string
type VerifyReferenceResponse_ExtensionData ¶
type VerifyReferenceResponse_ExtensionData struct { Values map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*VerifyReferenceResponse_ExtensionData) Descriptor
deprecated
func (*VerifyReferenceResponse_ExtensionData) Descriptor() ([]byte, []int)
Deprecated: Use VerifyReferenceResponse_ExtensionData.ProtoReflect.Descriptor instead.
func (*VerifyReferenceResponse_ExtensionData) GetValues ¶
func (x *VerifyReferenceResponse_ExtensionData) GetValues() map[string]string
func (*VerifyReferenceResponse_ExtensionData) ProtoMessage ¶
func (*VerifyReferenceResponse_ExtensionData) ProtoMessage()
func (*VerifyReferenceResponse_ExtensionData) ProtoReflect ¶
func (x *VerifyReferenceResponse_ExtensionData) ProtoReflect() protoreflect.Message
func (*VerifyReferenceResponse_ExtensionData) Reset ¶
func (x *VerifyReferenceResponse_ExtensionData) Reset()
func (*VerifyReferenceResponse_ExtensionData) String ¶
func (x *VerifyReferenceResponse_ExtensionData) String() string