proto

package
v0.0.0-...-ccb4162 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Artifacts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "artifacts.Artifacts",
	HandlerType: (*ArtifactsServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Artifacts",
			Handler:       _Artifacts_Artifacts_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "proto/artifacts.proto",
}

Artifacts_ServiceDesc is the grpc.ServiceDesc for Artifacts 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_proto_artifacts_proto protoreflect.FileDescriptor

Functions

func MapFromResponse

func MapFromResponse(resp *ArtifactResponse) artifacts.Artifact

func RegisterArtifactsServer

func RegisterArtifactsServer(s grpc.ServiceRegistrar, srv ArtifactsServer)

Types

type ArtifactResponse

type ArtifactResponse struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Kind      string                 `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Name      string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func MapToResponse

func MapToResponse(a artifacts.Artifact) *ArtifactResponse

func (*ArtifactResponse) Descriptor deprecated

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

Deprecated: Use ArtifactResponse.ProtoReflect.Descriptor instead.

func (*ArtifactResponse) GetCreatedAt

func (x *ArtifactResponse) GetCreatedAt() *timestamppb.Timestamp

func (*ArtifactResponse) GetId

func (x *ArtifactResponse) GetId() string

func (*ArtifactResponse) GetKind

func (x *ArtifactResponse) GetKind() string

func (*ArtifactResponse) GetName

func (x *ArtifactResponse) GetName() string

func (*ArtifactResponse) ProtoMessage

func (*ArtifactResponse) ProtoMessage()

func (*ArtifactResponse) ProtoReflect

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

func (*ArtifactResponse) Reset

func (x *ArtifactResponse) Reset()

func (*ArtifactResponse) String

func (x *ArtifactResponse) String() string

type ArtifactsClient

type ArtifactsClient interface {
	Artifacts(ctx context.Context, in *ArtifactsRequest, opts ...grpc.CallOption) (Artifacts_ArtifactsClient, error)
}

ArtifactsClient is the client API for Artifacts 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 NewArtifactsClient

func NewArtifactsClient(cc grpc.ClientConnInterface) ArtifactsClient

type ArtifactsRequest

type ArtifactsRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtifactsRequest) Descriptor deprecated

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

Deprecated: Use ArtifactsRequest.ProtoReflect.Descriptor instead.

func (*ArtifactsRequest) GetNamespace

func (x *ArtifactsRequest) GetNamespace() string

func (*ArtifactsRequest) ProtoMessage

func (*ArtifactsRequest) ProtoMessage()

func (*ArtifactsRequest) ProtoReflect

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

func (*ArtifactsRequest) Reset

func (x *ArtifactsRequest) Reset()

func (*ArtifactsRequest) String

func (x *ArtifactsRequest) String() string

type ArtifactsServer

type ArtifactsServer interface {
	Artifacts(*ArtifactsRequest, Artifacts_ArtifactsServer) error
	// contains filtered or unexported methods
}

ArtifactsServer is the server API for Artifacts service. All implementations must embed UnimplementedArtifactsServer for forward compatibility

type Artifacts_ArtifactsClient

type Artifacts_ArtifactsClient interface {
	Recv() (*ArtifactResponse, error)
	grpc.ClientStream
}

type Artifacts_ArtifactsServer

type Artifacts_ArtifactsServer interface {
	Send(*ArtifactResponse) error
	grpc.ServerStream
}

type UnimplementedArtifactsServer

type UnimplementedArtifactsServer struct {
}

UnimplementedArtifactsServer must be embedded to have forward compatible implementations.

func (UnimplementedArtifactsServer) Artifacts

type UnsafeArtifactsServer

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

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

Jump to

Keyboard shortcuts

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