proto_gen

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegistryService_QueryArtifacts_FullMethodName = "/registry.RegistryService/QueryArtifacts"
	RegistryService_PullArtifact_FullMethodName   = "/registry.RegistryService/PullArtifact"
	RegistryService_UploadArtifact_FullMethodName = "/registry.RegistryService/UploadArtifact"
	RegistryService_DeleteArtifact_FullMethodName = "/registry.RegistryService/DeleteArtifact"
	RegistryService_GetArtifact_FullMethodName    = "/registry.RegistryService/GetArtifact"
	RegistryService_AddTag_FullMethodName         = "/registry.RegistryService/AddTag"
	RegistryService_RemoveTag_FullMethodName      = "/registry.RegistryService/RemoveTag"
)

Variables

View Source
var File_registry_proto protoreflect.FileDescriptor
View Source
var RegistryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "registry.RegistryService",
	HandlerType: (*RegistryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "QueryArtifacts",
			Handler:    _RegistryService_QueryArtifacts_Handler,
		},
		{
			MethodName: "DeleteArtifact",
			Handler:    _RegistryService_DeleteArtifact_Handler,
		},
		{
			MethodName: "GetArtifact",
			Handler:    _RegistryService_GetArtifact_Handler,
		},
		{
			MethodName: "AddTag",
			Handler:    _RegistryService_AddTag_Handler,
		},
		{
			MethodName: "RemoveTag",
			Handler:    _RegistryService_RemoveTag_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "PullArtifact",
			Handler:       _RegistryService_PullArtifact_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "UploadArtifact",
			Handler:       _RegistryService_UploadArtifact_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "registry.proto",
}

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

Functions

func RegisterRegistryServiceServer

func RegisterRegistryServiceServer(s grpc.ServiceRegistrar, srv RegistryServiceServer)

Types

type AddRemoveTagRequest

type AddRemoveTagRequest struct {
	Fqn         *FullyQualifiedName `protobuf:"bytes,1,opt,name=fqn,proto3" json:"fqn,omitempty"`
	VersionHash string              `protobuf:"bytes,2,opt,name=versionHash,proto3" json:"versionHash,omitempty"`
	Tag         string              `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRemoveTagRequest) Descriptor deprecated

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

Deprecated: Use AddRemoveTagRequest.ProtoReflect.Descriptor instead.

func (*AddRemoveTagRequest) GetFqn

func (*AddRemoveTagRequest) GetTag

func (x *AddRemoveTagRequest) GetTag() string

func (*AddRemoveTagRequest) GetVersionHash

func (x *AddRemoveTagRequest) GetVersionHash() string

func (*AddRemoveTagRequest) ProtoMessage

func (*AddRemoveTagRequest) ProtoMessage()

func (*AddRemoveTagRequest) ProtoReflect

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

func (*AddRemoveTagRequest) Reset

func (x *AddRemoveTagRequest) Reset()

func (*AddRemoveTagRequest) String

func (x *AddRemoveTagRequest) String() string

type Artifact

type Artifact struct {
	Fqn         *FullyQualifiedName `protobuf:"bytes,1,opt,name=fqn,proto3" json:"fqn,omitempty"`
	VersionHash string              `protobuf:"bytes,2,opt,name=versionHash,proto3" json:"versionHash,omitempty"`
	Tags        []string            `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	Metadata    *MetaData           `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Artifact) Descriptor deprecated

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

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetFqn

func (x *Artifact) GetFqn() *FullyQualifiedName

func (*Artifact) GetMetadata

func (x *Artifact) GetMetadata() *MetaData

func (*Artifact) GetTags

func (x *Artifact) GetTags() []string

func (*Artifact) GetVersionHash

func (x *Artifact) GetVersionHash() string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

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

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type ArtifactContent

type ArtifactContent struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtifactContent) Descriptor deprecated

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

Deprecated: Use ArtifactContent.ProtoReflect.Descriptor instead.

func (*ArtifactContent) GetData

func (x *ArtifactContent) GetData() []byte

func (*ArtifactContent) ProtoMessage

func (*ArtifactContent) ProtoMessage()

func (*ArtifactContent) ProtoReflect

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

func (*ArtifactContent) Reset

func (x *ArtifactContent) Reset()

func (*ArtifactContent) String

func (x *ArtifactContent) String() string

type ArtifactIdentifier

type ArtifactIdentifier struct {
	Fqn *FullyQualifiedName `protobuf:"bytes,1,opt,name=fqn,proto3" json:"fqn,omitempty"`
	// Types that are valid to be assigned to Identifier:
	//
	//	*ArtifactIdentifier_VersionHash
	//	*ArtifactIdentifier_Tag
	Identifier isArtifactIdentifier_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

func (*ArtifactIdentifier) Descriptor deprecated

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

Deprecated: Use ArtifactIdentifier.ProtoReflect.Descriptor instead.

func (*ArtifactIdentifier) GetFqn

func (*ArtifactIdentifier) GetIdentifier

func (x *ArtifactIdentifier) GetIdentifier() isArtifactIdentifier_Identifier

func (*ArtifactIdentifier) GetTag

func (x *ArtifactIdentifier) GetTag() string

func (*ArtifactIdentifier) GetVersionHash

func (x *ArtifactIdentifier) GetVersionHash() string

func (*ArtifactIdentifier) ProtoMessage

func (*ArtifactIdentifier) ProtoMessage()

func (*ArtifactIdentifier) ProtoReflect

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

func (*ArtifactIdentifier) Reset

func (x *ArtifactIdentifier) Reset()

func (*ArtifactIdentifier) String

func (x *ArtifactIdentifier) String() string

type ArtifactIdentifier_Tag

type ArtifactIdentifier_Tag struct {
	Tag string `protobuf:"bytes,3,opt,name=tag,proto3,oneof"`
}

type ArtifactIdentifier_VersionHash

type ArtifactIdentifier_VersionHash struct {
	VersionHash string `protobuf:"bytes,2,opt,name=versionHash,proto3,oneof"`
}

type ArtifactListResponse

type ArtifactListResponse struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtifactListResponse) Descriptor deprecated

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

Deprecated: Use ArtifactListResponse.ProtoReflect.Descriptor instead.

func (*ArtifactListResponse) GetArtifacts

func (x *ArtifactListResponse) GetArtifacts() []*Artifact

func (*ArtifactListResponse) ProtoMessage

func (*ArtifactListResponse) ProtoMessage()

func (*ArtifactListResponse) ProtoReflect

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

func (*ArtifactListResponse) Reset

func (x *ArtifactListResponse) Reset()

func (*ArtifactListResponse) String

func (x *ArtifactListResponse) String() string

type ArtifactQuery

type ArtifactQuery struct {
	Source *string `protobuf:"bytes,1,opt,name=source,proto3,oneof" json:"source,omitempty"`
	Author *string `protobuf:"bytes,2,opt,name=author,proto3,oneof" json:"author,omitempty"`
	Name   *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtifactQuery) Descriptor deprecated

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

Deprecated: Use ArtifactQuery.ProtoReflect.Descriptor instead.

func (*ArtifactQuery) GetAuthor

func (x *ArtifactQuery) GetAuthor() string

func (*ArtifactQuery) GetName

func (x *ArtifactQuery) GetName() string

func (*ArtifactQuery) GetSource

func (x *ArtifactQuery) GetSource() string

func (*ArtifactQuery) ProtoMessage

func (*ArtifactQuery) ProtoMessage()

func (*ArtifactQuery) ProtoReflect

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

func (*ArtifactQuery) Reset

func (x *ArtifactQuery) Reset()

func (*ArtifactQuery) String

func (x *ArtifactQuery) String() string

type FullyQualifiedName

type FullyQualifiedName struct {
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FullyQualifiedName) Descriptor deprecated

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

Deprecated: Use FullyQualifiedName.ProtoReflect.Descriptor instead.

func (*FullyQualifiedName) GetAuthor

func (x *FullyQualifiedName) GetAuthor() string

func (*FullyQualifiedName) GetName

func (x *FullyQualifiedName) GetName() string

func (*FullyQualifiedName) GetSource

func (x *FullyQualifiedName) GetSource() string

func (*FullyQualifiedName) ProtoMessage

func (*FullyQualifiedName) ProtoMessage()

func (*FullyQualifiedName) ProtoReflect

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

func (*FullyQualifiedName) Reset

func (x *FullyQualifiedName) Reset()

func (*FullyQualifiedName) String

func (x *FullyQualifiedName) String() string

type MetaData

type MetaData struct {
	Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	Pulls   int64                  `protobuf:"varint,2,opt,name=pulls,proto3" json:"pulls,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaData) Descriptor deprecated

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

Deprecated: Use MetaData.ProtoReflect.Descriptor instead.

func (*MetaData) GetCreated

func (x *MetaData) GetCreated() *timestamppb.Timestamp

func (*MetaData) GetPulls

func (x *MetaData) GetPulls() int64

func (*MetaData) ProtoMessage

func (*MetaData) ProtoMessage()

func (*MetaData) ProtoReflect

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

func (*MetaData) Reset

func (x *MetaData) Reset()

func (*MetaData) String

func (x *MetaData) String() string

type RegistryServiceClient

type RegistryServiceClient interface {
	QueryArtifacts(ctx context.Context, in *ArtifactQuery, opts ...grpc.CallOption) (*ArtifactListResponse, error)
	PullArtifact(ctx context.Context, in *ArtifactIdentifier, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ArtifactContent], error)
	UploadArtifact(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[UploadArtifactRequest, Artifact], error)
	DeleteArtifact(ctx context.Context, in *ArtifactIdentifier, opts ...grpc.CallOption) (*Artifact, error)
	GetArtifact(ctx context.Context, in *ArtifactIdentifier, opts ...grpc.CallOption) (*Artifact, error)
	AddTag(ctx context.Context, in *AddRemoveTagRequest, opts ...grpc.CallOption) (*Artifact, error)
	RemoveTag(ctx context.Context, in *AddRemoveTagRequest, opts ...grpc.CallOption) (*Artifact, error)
}

RegistryServiceClient is the client API for RegistryService 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 RegistryServiceServer

type RegistryServiceServer interface {
	QueryArtifacts(context.Context, *ArtifactQuery) (*ArtifactListResponse, error)
	PullArtifact(*ArtifactIdentifier, grpc.ServerStreamingServer[ArtifactContent]) error
	UploadArtifact(grpc.ClientStreamingServer[UploadArtifactRequest, Artifact]) error
	DeleteArtifact(context.Context, *ArtifactIdentifier) (*Artifact, error)
	GetArtifact(context.Context, *ArtifactIdentifier) (*Artifact, error)
	AddTag(context.Context, *AddRemoveTagRequest) (*Artifact, error)
	RemoveTag(context.Context, *AddRemoveTagRequest) (*Artifact, error)
	// contains filtered or unexported methods
}

RegistryServiceServer is the server API for RegistryService service. All implementations must embed UnimplementedRegistryServiceServer for forward compatibility.

type RegistryService_PullArtifactClient

type RegistryService_PullArtifactClient = grpc.ServerStreamingClient[ArtifactContent]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type RegistryService_PullArtifactServer

type RegistryService_PullArtifactServer = grpc.ServerStreamingServer[ArtifactContent]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type RegistryService_UploadArtifactClient

type RegistryService_UploadArtifactClient = grpc.ClientStreamingClient[UploadArtifactRequest, Artifact]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type RegistryService_UploadArtifactServer

type RegistryService_UploadArtifactServer = grpc.ClientStreamingServer[UploadArtifactRequest, Artifact]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Task

type Task struct {
	Artifact *ArtifactIdentifier `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"`
	Function string              `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
	Input    []byte              `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetArtifact

func (x *Task) GetArtifact() *ArtifactIdentifier

func (*Task) GetFunction

func (x *Task) GetFunction() string

func (*Task) GetInput

func (x *Task) GetInput() []byte

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type UnimplementedRegistryServiceServer

type UnimplementedRegistryServiceServer struct{}

UnimplementedRegistryServiceServer 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 (UnimplementedRegistryServiceServer) AddTag

func (UnimplementedRegistryServiceServer) DeleteArtifact

func (UnimplementedRegistryServiceServer) GetArtifact

func (UnimplementedRegistryServiceServer) PullArtifact

func (UnimplementedRegistryServiceServer) QueryArtifacts

func (UnimplementedRegistryServiceServer) RemoveTag

func (UnimplementedRegistryServiceServer) UploadArtifact

type UnsafeRegistryServiceServer

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

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

type UploadArtifactRequest

type UploadArtifactRequest struct {

	// Types that are valid to be assigned to Request:
	//
	//	*UploadArtifactRequest_Metadata
	//	*UploadArtifactRequest_Content
	Request isUploadArtifactRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*UploadArtifactRequest) Descriptor deprecated

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

Deprecated: Use UploadArtifactRequest.ProtoReflect.Descriptor instead.

func (*UploadArtifactRequest) GetContent

func (x *UploadArtifactRequest) GetContent() *ArtifactContent

func (*UploadArtifactRequest) GetMetadata

func (x *UploadArtifactRequest) GetMetadata() *UploadMetadata

func (*UploadArtifactRequest) GetRequest

func (x *UploadArtifactRequest) GetRequest() isUploadArtifactRequest_Request

func (*UploadArtifactRequest) ProtoMessage

func (*UploadArtifactRequest) ProtoMessage()

func (*UploadArtifactRequest) ProtoReflect

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

func (*UploadArtifactRequest) Reset

func (x *UploadArtifactRequest) Reset()

func (*UploadArtifactRequest) String

func (x *UploadArtifactRequest) String() string

type UploadArtifactRequest_Content

type UploadArtifactRequest_Content struct {
	Content *ArtifactContent `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
}

type UploadArtifactRequest_Metadata

type UploadArtifactRequest_Metadata struct {
	Metadata *UploadMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

type UploadMetadata

type UploadMetadata struct {
	Fqn  *FullyQualifiedName `protobuf:"bytes,1,opt,name=fqn,proto3" json:"fqn,omitempty"`
	Tags []string            `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadMetadata) Descriptor deprecated

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

Deprecated: Use UploadMetadata.ProtoReflect.Descriptor instead.

func (*UploadMetadata) GetFqn

func (x *UploadMetadata) GetFqn() *FullyQualifiedName

func (*UploadMetadata) GetTags

func (x *UploadMetadata) GetTags() []string

func (*UploadMetadata) ProtoMessage

func (*UploadMetadata) ProtoMessage()

func (*UploadMetadata) ProtoReflect

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

func (*UploadMetadata) Reset

func (x *UploadMetadata) Reset()

func (*UploadMetadata) String

func (x *UploadMetadata) String() string

Jump to

Keyboard shortcuts

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