Documentation ¶
Index ¶
- Variables
- func RegisterArtifactStoreServer(s grpc.ServiceRegistrar, srv ArtifactStoreServer)
- type ArtifactStoreClient
- type ArtifactStoreServer
- type ArtifactStore_GetArtifactClient
- type ArtifactStore_GetArtifactServer
- type GetArtifactRequest
- func (*GetArtifactRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetArtifactRequest) GetKey() string
- func (x *GetArtifactRequest) GetKind() GetArtifactRequest_Kind
- func (*GetArtifactRequest) ProtoMessage()
- func (x *GetArtifactRequest) ProtoReflect() protoreflect.Message
- func (x *GetArtifactRequest) Reset()
- func (x *GetArtifactRequest) String() string
- type GetArtifactRequest_Kind
- func (GetArtifactRequest_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x GetArtifactRequest_Kind) Enum() *GetArtifactRequest_Kind
- func (GetArtifactRequest_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetArtifactRequest_Kind) Number() protoreflect.EnumNumber
- func (x GetArtifactRequest_Kind) String() string
- func (GetArtifactRequest_Kind) Type() protoreflect.EnumType
- type UnimplementedArtifactStoreServer
- type UnsafeArtifactStoreServer
Constants ¶
This section is empty.
Variables ¶
var ( GetArtifactRequest_Kind_name = map[int32]string{ 0: "UNKNOWN", 1: "BPF", 2: "METADATA", 3: "BPF_SOURCE", 5: "SPEC", 6: "SNAPSHOT_PROGRAM", } GetArtifactRequest_Kind_value = map[string]int32{ "UNKNOWN": 0, "BPF": 1, "METADATA": 2, "BPF_SOURCE": 3, "SPEC": 5, "SNAPSHOT_PROGRAM": 6, } )
Enum value maps for GetArtifactRequest_Kind.
var ArtifactStore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "artifacts.ArtifactStore", HandlerType: (*ArtifactStoreServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GetArtifact", Handler: _ArtifactStore_GetArtifact_Handler, ServerStreams: true, }, }, Metadata: "artifacts.proto", }
ArtifactStore_ServiceDesc is the grpc.ServiceDesc for ArtifactStore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_artifacts_proto protoreflect.FileDescriptor
Functions ¶
func RegisterArtifactStoreServer ¶
func RegisterArtifactStoreServer(s grpc.ServiceRegistrar, srv ArtifactStoreServer)
Types ¶
type ArtifactStoreClient ¶
type ArtifactStoreClient interface {
GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (ArtifactStore_GetArtifactClient, error)
}
ArtifactStoreClient is the client API for ArtifactStore 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 NewArtifactStoreClient ¶
func NewArtifactStoreClient(cc grpc.ClientConnInterface) ArtifactStoreClient
type ArtifactStoreServer ¶
type ArtifactStoreServer interface { GetArtifact(*GetArtifactRequest, ArtifactStore_GetArtifactServer) error // contains filtered or unexported methods }
ArtifactStoreServer is the server API for ArtifactStore service. All implementations must embed UnimplementedArtifactStoreServer for forward compatibility
type ArtifactStore_GetArtifactClient ¶
type ArtifactStore_GetArtifactClient interface { Recv() (*chunkpb.Chunk, error) grpc.ClientStream }
type ArtifactStore_GetArtifactServer ¶
type ArtifactStore_GetArtifactServer interface { Send(*chunkpb.Chunk) error grpc.ServerStream }
type GetArtifactRequest ¶
type GetArtifactRequest struct { // The key associated with this artifact. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The kind of artifact to retrieve. Kind GetArtifactRequest_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=artifacts.GetArtifactRequest_Kind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*GetArtifactRequest) Descriptor
deprecated
func (*GetArtifactRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArtifactRequest.ProtoReflect.Descriptor instead.
func (*GetArtifactRequest) GetKey ¶
func (x *GetArtifactRequest) GetKey() string
func (*GetArtifactRequest) GetKind ¶
func (x *GetArtifactRequest) GetKind() GetArtifactRequest_Kind
func (*GetArtifactRequest) ProtoMessage ¶
func (*GetArtifactRequest) ProtoMessage()
func (*GetArtifactRequest) ProtoReflect ¶
func (x *GetArtifactRequest) ProtoReflect() protoreflect.Message
func (*GetArtifactRequest) Reset ¶
func (x *GetArtifactRequest) Reset()
func (*GetArtifactRequest) String ¶
func (x *GetArtifactRequest) String() string
type GetArtifactRequest_Kind ¶
type GetArtifactRequest_Kind int32
const ( GetArtifactRequest_UNKNOWN GetArtifactRequest_Kind = 0 GetArtifactRequest_BPF GetArtifactRequest_Kind = 1 GetArtifactRequest_METADATA GetArtifactRequest_Kind = 2 GetArtifactRequest_BPF_SOURCE GetArtifactRequest_Kind = 3 GetArtifactRequest_SPEC GetArtifactRequest_Kind = 5 GetArtifactRequest_SNAPSHOT_PROGRAM GetArtifactRequest_Kind = 6 )
func (GetArtifactRequest_Kind) Descriptor ¶
func (GetArtifactRequest_Kind) Descriptor() protoreflect.EnumDescriptor
func (GetArtifactRequest_Kind) Enum ¶
func (x GetArtifactRequest_Kind) Enum() *GetArtifactRequest_Kind
func (GetArtifactRequest_Kind) EnumDescriptor
deprecated
func (GetArtifactRequest_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetArtifactRequest_Kind.Descriptor instead.
func (GetArtifactRequest_Kind) Number ¶
func (x GetArtifactRequest_Kind) Number() protoreflect.EnumNumber
func (GetArtifactRequest_Kind) String ¶
func (x GetArtifactRequest_Kind) String() string
func (GetArtifactRequest_Kind) Type ¶
func (GetArtifactRequest_Kind) Type() protoreflect.EnumType
type UnimplementedArtifactStoreServer ¶
type UnimplementedArtifactStoreServer struct { }
UnimplementedArtifactStoreServer must be embedded to have forward compatible implementations.
func (UnimplementedArtifactStoreServer) GetArtifact ¶
func (UnimplementedArtifactStoreServer) GetArtifact(*GetArtifactRequest, ArtifactStore_GetArtifactServer) error
type UnsafeArtifactStoreServer ¶
type UnsafeArtifactStoreServer interface {
// contains filtered or unexported methods
}
UnsafeArtifactStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArtifactStoreServer will result in compilation errors.