v1

package
v0.0.0-...-7600db6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageAuditService_AuditImage_FullMethodName = "/auditsystem.v1.ImageAuditService/AuditImage"
)

Variables

View Source
var File_proto_auditsystem_v1_verify_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL