Documentation ¶
Index ¶
- Variables
- func MapFromResponse(resp *ArtifactResponse) artifacts.Artifact
- func RegisterArtifactsServer(s grpc.ServiceRegistrar, srv ArtifactsServer)
- type ArtifactResponse
- func (*ArtifactResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArtifactResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *ArtifactResponse) GetId() string
- func (x *ArtifactResponse) GetKind() string
- func (x *ArtifactResponse) GetName() string
- func (*ArtifactResponse) ProtoMessage()
- func (x *ArtifactResponse) ProtoReflect() protoreflect.Message
- func (x *ArtifactResponse) Reset()
- func (x *ArtifactResponse) String() string
- type ArtifactsClient
- type ArtifactsRequest
- type ArtifactsServer
- type Artifacts_ArtifactsClient
- type Artifacts_ArtifactsServer
- type UnimplementedArtifactsServer
- type UnsafeArtifactsServer
Constants ¶
This section is empty.
Variables ¶
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)
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 ¶
func (UnimplementedArtifactsServer) Artifacts(*ArtifactsRequest, Artifacts_ArtifactsServer) error
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.