compositor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Compositor_GetOptions_FullMethodName          = "/compositor.Compositor/GetOptions"
	Compositor_GetSubAttesterID_FullMethodName    = "/compositor.Compositor/GetSubAttesterID"
	Compositor_GetSupportedFormats_FullMethodName = "/compositor.Compositor/GetSupportedFormats"
	Compositor_GetEvidence_FullMethodName         = "/compositor.Compositor/GetEvidence"
)

Variables

View Source
var Compositor_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "compositor.Compositor",
	HandlerType: (*CompositorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOptions",
			Handler:    _Compositor_GetOptions_Handler,
		},
		{
			MethodName: "GetSubAttesterID",
			Handler:    _Compositor_GetSubAttesterID_Handler,
		},
		{
			MethodName: "GetSupportedFormats",
			Handler:    _Compositor_GetSupportedFormats_Handler,
		},
		{
			MethodName: "GetEvidence",
			Handler:    _Compositor_GetEvidence_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "compositor.proto",
}

Compositor_ServiceDesc is the grpc.ServiceDesc for Compositor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_compositor_proto protoreflect.FileDescriptor

Functions

func RegisterCompositorServer

func RegisterCompositorServer(s grpc.ServiceRegistrar, srv CompositorServer)

Types

type CompositorClient

type CompositorClient interface {
	GetOptions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OptionsOut, error)
	GetSubAttesterID(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SubAttesterIDOut, error)
	GetSupportedFormats(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SupportedFormatsOut, error)
	GetEvidence(ctx context.Context, in *EvidenceIn, opts ...grpc.CallOption) (*EvidenceOut, error)
}

CompositorClient is the client API for Compositor 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 NewCompositorClient

func NewCompositorClient(cc grpc.ClientConnInterface) CompositorClient

type CompositorServer

type CompositorServer interface {
	GetOptions(context.Context, *emptypb.Empty) (*OptionsOut, error)
	GetSubAttesterID(context.Context, *emptypb.Empty) (*SubAttesterIDOut, error)
	GetSupportedFormats(context.Context, *emptypb.Empty) (*SupportedFormatsOut, error)
	GetEvidence(context.Context, *EvidenceIn) (*EvidenceOut, error)
	// contains filtered or unexported methods
}

CompositorServer is the server API for Compositor service. All implementations must embed UnimplementedCompositorServer for forward compatibility.

type EvidenceIn

type EvidenceIn struct {
	ContentType string `protobuf:"bytes,1,opt,name=contentType,proto3" json:"contentType,omitempty"`
	Nonce       []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Options     []byte `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*EvidenceIn) Descriptor deprecated

func (*EvidenceIn) Descriptor() ([]byte, []int)

Deprecated: Use EvidenceIn.ProtoReflect.Descriptor instead.

func (*EvidenceIn) GetContentType

func (x *EvidenceIn) GetContentType() string

func (*EvidenceIn) GetNonce

func (x *EvidenceIn) GetNonce() []byte

func (*EvidenceIn) GetOptions

func (x *EvidenceIn) GetOptions() []byte

func (*EvidenceIn) ProtoMessage

func (*EvidenceIn) ProtoMessage()

func (*EvidenceIn) ProtoReflect

func (x *EvidenceIn) ProtoReflect() protoreflect.Message

func (*EvidenceIn) Reset

func (x *EvidenceIn) Reset()

func (*EvidenceIn) String

func (x *EvidenceIn) String() string

type EvidenceOut

type EvidenceOut struct {
	Status     *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	StatusCode uint32  `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	Evidence   []byte  `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

func (*EvidenceOut) Descriptor deprecated

func (*EvidenceOut) Descriptor() ([]byte, []int)

Deprecated: Use EvidenceOut.ProtoReflect.Descriptor instead.

func (*EvidenceOut) GetEvidence

func (x *EvidenceOut) GetEvidence() []byte

func (*EvidenceOut) GetStatus

func (x *EvidenceOut) GetStatus() *Status

func (*EvidenceOut) GetStatusCode

func (x *EvidenceOut) GetStatusCode() uint32

func (*EvidenceOut) ProtoMessage

func (*EvidenceOut) ProtoMessage()

func (*EvidenceOut) ProtoReflect

func (x *EvidenceOut) ProtoReflect() protoreflect.Message

func (*EvidenceOut) Reset

func (x *EvidenceOut) Reset()

func (*EvidenceOut) String

func (x *EvidenceOut) String() string

type Format

type Format struct {
	ContentType string `protobuf:"bytes,1,opt,name=contentType,proto3" json:"contentType,omitempty"`
	NonceSize   uint32 `protobuf:"varint,2,opt,name=nonceSize,proto3" json:"nonceSize,omitempty"`
	// contains filtered or unexported fields
}

func (*Format) Descriptor deprecated

func (*Format) Descriptor() ([]byte, []int)

Deprecated: Use Format.ProtoReflect.Descriptor instead.

func (*Format) GetContentType

func (x *Format) GetContentType() string

func (*Format) GetNonceSize

func (x *Format) GetNonceSize() uint32

func (*Format) ProtoMessage

func (*Format) ProtoMessage()

func (*Format) ProtoReflect

func (x *Format) ProtoReflect() protoreflect.Message

func (*Format) Reset

func (x *Format) Reset()

func (*Format) String

func (x *Format) String() string

type Option

type Option struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Option) Descriptor deprecated

func (*Option) Descriptor() ([]byte, []int)

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetName

func (x *Option) GetName() string

func (*Option) GetType

func (x *Option) GetType() string

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

func (x *Option) ProtoReflect() protoreflect.Message

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

type OptionsOut

type OptionsOut struct {
	Status  *Status   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Options []*Option `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*OptionsOut) Descriptor deprecated

func (*OptionsOut) Descriptor() ([]byte, []int)

Deprecated: Use OptionsOut.ProtoReflect.Descriptor instead.

func (*OptionsOut) GetOptions

func (x *OptionsOut) GetOptions() []*Option

func (*OptionsOut) GetStatus

func (x *OptionsOut) GetStatus() *Status

func (*OptionsOut) ProtoMessage

func (*OptionsOut) ProtoMessage()

func (*OptionsOut) ProtoReflect

func (x *OptionsOut) ProtoReflect() protoreflect.Message

func (*OptionsOut) Reset

func (x *OptionsOut) Reset()

func (*OptionsOut) String

func (x *OptionsOut) String() string

type Status

type Status struct {
	Result bool   `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

Status.result = true on sucess, status.result = false on failure.

func (*Status) Descriptor deprecated

func (*Status) Descriptor() ([]byte, []int)

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetError

func (x *Status) GetError() string

func (*Status) GetResult

func (x *Status) GetResult() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type SubAttesterID

type SubAttesterID struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*SubAttesterID) Descriptor deprecated

func (*SubAttesterID) Descriptor() ([]byte, []int)

Deprecated: Use SubAttesterID.ProtoReflect.Descriptor instead.

func (*SubAttesterID) GetName

func (x *SubAttesterID) GetName() string

func (*SubAttesterID) GetVersion

func (x *SubAttesterID) GetVersion() string

func (*SubAttesterID) ProtoMessage

func (*SubAttesterID) ProtoMessage()

func (*SubAttesterID) ProtoReflect

func (x *SubAttesterID) ProtoReflect() protoreflect.Message

func (*SubAttesterID) Reset

func (x *SubAttesterID) Reset()

func (*SubAttesterID) String

func (x *SubAttesterID) String() string

type SubAttesterIDOut

type SubAttesterIDOut struct {
	Status        *Status        `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	SubAttesterID *SubAttesterID `protobuf:"bytes,2,opt,name=subAttesterID,proto3" json:"subAttesterID,omitempty"`
	// contains filtered or unexported fields
}

func (*SubAttesterIDOut) Descriptor deprecated

func (*SubAttesterIDOut) Descriptor() ([]byte, []int)

Deprecated: Use SubAttesterIDOut.ProtoReflect.Descriptor instead.

func (*SubAttesterIDOut) GetStatus

func (x *SubAttesterIDOut) GetStatus() *Status

func (*SubAttesterIDOut) GetSubAttesterID

func (x *SubAttesterIDOut) GetSubAttesterID() *SubAttesterID

func (*SubAttesterIDOut) ProtoMessage

func (*SubAttesterIDOut) ProtoMessage()

func (*SubAttesterIDOut) ProtoReflect

func (x *SubAttesterIDOut) ProtoReflect() protoreflect.Message

func (*SubAttesterIDOut) Reset

func (x *SubAttesterIDOut) Reset()

func (*SubAttesterIDOut) String

func (x *SubAttesterIDOut) String() string

type SupportedFormatsOut

type SupportedFormatsOut struct {
	Status  *Status   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Formats []*Format `protobuf:"bytes,2,rep,name=formats,proto3" json:"formats,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportedFormatsOut) Descriptor deprecated

func (*SupportedFormatsOut) Descriptor() ([]byte, []int)

Deprecated: Use SupportedFormatsOut.ProtoReflect.Descriptor instead.

func (*SupportedFormatsOut) GetFormats

func (x *SupportedFormatsOut) GetFormats() []*Format

func (*SupportedFormatsOut) GetStatus

func (x *SupportedFormatsOut) GetStatus() *Status

func (*SupportedFormatsOut) ProtoMessage

func (*SupportedFormatsOut) ProtoMessage()

func (*SupportedFormatsOut) ProtoReflect

func (x *SupportedFormatsOut) ProtoReflect() protoreflect.Message

func (*SupportedFormatsOut) Reset

func (x *SupportedFormatsOut) Reset()

func (*SupportedFormatsOut) String

func (x *SupportedFormatsOut) String() string

type UnimplementedCompositorServer

type UnimplementedCompositorServer struct{}

UnimplementedCompositorServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCompositorServer) GetEvidence

func (UnimplementedCompositorServer) GetOptions

func (UnimplementedCompositorServer) GetSubAttesterID

func (UnimplementedCompositorServer) GetSupportedFormats

type UnsafeCompositorServer

type UnsafeCompositorServer interface {
	// contains filtered or unexported methods
}

UnsafeCompositorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CompositorServer will result in compilation errors.

Jump to

Keyboard shortcuts

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