Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterImageAuditServiceServer(s grpc.ServiceRegistrar, srv ImageAuditServiceServer)
- type AuditImageRequest
- func (*AuditImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuditImageRequest) GetDigest() string
- func (x *AuditImageRequest) GetName() string
- func (x *AuditImageRequest) GetStdinMediaType() string
- func (*AuditImageRequest) ProtoMessage()
- func (x *AuditImageRequest) ProtoReflect() protoreflect.Message
- func (x *AuditImageRequest) Reset()
- func (x *AuditImageRequest) String() string
- type AuditImageResponse
- func (*AuditImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuditImageResponse) GetJudgement() bool
- func (*AuditImageResponse) ProtoMessage()
- func (x *AuditImageResponse) ProtoReflect() protoreflect.Message
- func (x *AuditImageResponse) Reset()
- func (x *AuditImageResponse) String() string
- type ImageAuditServiceClient
- type ImageAuditServiceServer
- type UnimplementedImageAuditServiceServer
- type UnsafeImageAuditServiceServer
Constants ¶
const (
ImageAuditService_AuditImage_FullMethodName = "/auditsystem.v1.ImageAuditService/AuditImage"
)
Variables ¶
var File_proto_auditsystem_v1_verify_proto protoreflect.FileDescriptor
var ImageAuditService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auditsystem.v1.ImageAuditService", HandlerType: (*ImageAuditServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AuditImage", Handler: _ImageAuditService_AuditImage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/auditsystem/v1/verify.proto", }
ImageAuditService_ServiceDesc is the grpc.ServiceDesc for ImageAuditService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterImageAuditServiceServer ¶
func RegisterImageAuditServiceServer(s grpc.ServiceRegistrar, srv ImageAuditServiceServer)
Types ¶
type AuditImageRequest ¶
type AuditImageRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` StdinMediaType string `protobuf:"bytes,3,opt,name=stdin_media_type,json=stdinMediaType,proto3" json:"stdin_media_type,omitempty"` // contains filtered or unexported fields }
func (*AuditImageRequest) Descriptor
deprecated
func (*AuditImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuditImageRequest.ProtoReflect.Descriptor instead.
func (*AuditImageRequest) GetDigest ¶
func (x *AuditImageRequest) GetDigest() string
func (*AuditImageRequest) GetName ¶
func (x *AuditImageRequest) GetName() string
func (*AuditImageRequest) GetStdinMediaType ¶
func (x *AuditImageRequest) GetStdinMediaType() string
func (*AuditImageRequest) ProtoMessage ¶
func (*AuditImageRequest) ProtoMessage()
func (*AuditImageRequest) ProtoReflect ¶
func (x *AuditImageRequest) ProtoReflect() protoreflect.Message
func (*AuditImageRequest) Reset ¶
func (x *AuditImageRequest) Reset()
func (*AuditImageRequest) String ¶
func (x *AuditImageRequest) String() string
type AuditImageResponse ¶
type AuditImageResponse struct { Judgement bool `protobuf:"varint,1,opt,name=judgement,proto3" json:"judgement,omitempty"` // contains filtered or unexported fields }
func (*AuditImageResponse) Descriptor
deprecated
func (*AuditImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuditImageResponse.ProtoReflect.Descriptor instead.
func (*AuditImageResponse) GetJudgement ¶
func (x *AuditImageResponse) GetJudgement() bool
func (*AuditImageResponse) ProtoMessage ¶
func (*AuditImageResponse) ProtoMessage()
func (*AuditImageResponse) ProtoReflect ¶
func (x *AuditImageResponse) ProtoReflect() protoreflect.Message
func (*AuditImageResponse) Reset ¶
func (x *AuditImageResponse) Reset()
func (*AuditImageResponse) String ¶
func (x *AuditImageResponse) String() string
type ImageAuditServiceClient ¶
type ImageAuditServiceClient interface {
AuditImage(ctx context.Context, in *AuditImageRequest, opts ...grpc.CallOption) (*AuditImageResponse, error)
}
ImageAuditServiceClient is the client API for ImageAuditService 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 NewImageAuditServiceClient ¶
func NewImageAuditServiceClient(cc grpc.ClientConnInterface) ImageAuditServiceClient
type ImageAuditServiceServer ¶
type ImageAuditServiceServer interface { AuditImage(context.Context, *AuditImageRequest) (*AuditImageResponse, error) // contains filtered or unexported methods }
ImageAuditServiceServer is the server API for ImageAuditService service. All implementations must embed UnimplementedImageAuditServiceServer for forward compatibility
type UnimplementedImageAuditServiceServer ¶
type UnimplementedImageAuditServiceServer struct { }
UnimplementedImageAuditServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedImageAuditServiceServer) AuditImage ¶
func (UnimplementedImageAuditServiceServer) AuditImage(context.Context, *AuditImageRequest) (*AuditImageResponse, error)
type UnsafeImageAuditServiceServer ¶
type UnsafeImageAuditServiceServer interface {
// contains filtered or unexported methods
}
UnsafeImageAuditServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImageAuditServiceServer will result in compilation errors.