artifactspb

package
v0.0.0-...-1f6a333 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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.

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 (*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) Enum

func (GetArtifactRequest_Kind) EnumDescriptor deprecated

func (GetArtifactRequest_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetArtifactRequest_Kind.Descriptor instead.

func (GetArtifactRequest_Kind) Number

func (GetArtifactRequest_Kind) String

func (x GetArtifactRequest_Kind) String() string

func (GetArtifactRequest_Kind) Type

type UnimplementedArtifactStoreServer

type UnimplementedArtifactStoreServer struct {
}

UnimplementedArtifactStoreServer must be embedded to have forward compatible implementations.

func (UnimplementedArtifactStoreServer) GetArtifact

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.

Jump to

Keyboard shortcuts

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