api

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionGadgetInfo        = 1
	VersionGadgetRunProtocol = 1
)
View Source
const (
	EventTypeGadgetPayload uint32 = 0
	EventTypeGadgetResult  uint32 = 1
	EventTypeGadgetDone    uint32 = 2
	EventTypeGadgetJobID   uint32 = 3

	// EventTypeGadgetInfo is transmitted after a gadget has been initialized; while GetGadgetInfo() can return
	// cached data, this payload will always be up-to-date and reflect the actual layout of the data that is
	// expected / sent.
	EventTypeGadgetInfo uint32 = 4

	EventLogShift = 16
)
View Source
const (
	GadgetServicePort = 8080
	DefaultDaemonPath = "unix:///var/run/ig/ig.socket"
)
View Source
const (
	TypeUnknown     = ""
	TypeBool        = "bool"
	TypeString      = "string"
	TypeBytes       = "bytes"
	TypeInt         = "int"
	TypeInt8        = "int8"
	TypeInt16       = "int16"
	TypeInt32       = "int32"
	TypeInt64       = "int64"
	TypeUint        = "uint"
	TypeUint8       = "uint8"
	TypeUint16      = "uint16"
	TypeUint32      = "uint32"
	TypeUint64      = "uint64"
	TypeFloat32     = "float32"
	TypeFloat64     = "float64"
	TypeDuration    = "duration"
	TypeIP          = "ip"
	TypeStringSlice = "[]string"
)
View Source
const (
	FetchCountAnnotation    = "fetch-count"
	FetchIntervalAnnotation = "fetch-interval"
)
View Source
const (
	DataSourceFlagsBigEndian uint32 = 1 << iota
)
View Source
const (
	// GadgetInfoRequestFlagUseInstance defines that the service should get gadget information from an existing gadget
	// instance; in this case the imageName of the GadgetInfoRequest is evaluated as the ID of the gadget instance
	GadgetInfoRequestFlagUseInstance = 1 << iota
)
View Source
const (
	// TagSrcEbpf defines that a field was extracted from eBPF
	TagSrcEbpf = "src:ebpf"
)

Variables

View Source
var (
	Kind_name = map[int32]string{
		0:  "Invalid",
		1:  "Bool",
		2:  "Int8",
		3:  "Int16",
		4:  "Int32",
		5:  "Int64",
		6:  "Uint8",
		7:  "Uint16",
		8:  "Uint32",
		9:  "Uint64",
		10: "Float32",
		11: "Float64",
		12: "String",
		13: "CString",
		14: "Bytes",
	}
	Kind_value = map[string]int32{
		"Invalid": 0,
		"Bool":    1,
		"Int8":    2,
		"Int16":   3,
		"Int32":   4,
		"Int64":   5,
		"Uint8":   6,
		"Uint16":  7,
		"Uint32":  8,
		"Uint64":  9,
		"Float32": 10,
		"Float64": 11,
		"String":  12,
		"CString": 13,
		"Bytes":   14,
	}
)

Enum value maps for Kind.

View Source
var BuiltInGadgetManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.BuiltInGadgetManager",
	HandlerType: (*BuiltInGadgetManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _BuiltInGadgetManager_GetInfo_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "RunBuiltInGadget",
			Handler:       _BuiltInGadgetManager_RunBuiltInGadget_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/api.proto",
}

BuiltInGadgetManager_ServiceDesc is the grpc.ServiceDesc for BuiltInGadgetManager 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_api_api_proto protoreflect.FileDescriptor
View Source
var GadgetInstanceManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.GadgetInstanceManager",
	HandlerType: (*GadgetInstanceManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateGadgetInstance",
			Handler:    _GadgetInstanceManager_CreateGadgetInstance_Handler,
		},
		{
			MethodName: "ListGadgetInstances",
			Handler:    _GadgetInstanceManager_ListGadgetInstances_Handler,
		},
		{
			MethodName: "GetGadgetInstance",
			Handler:    _GadgetInstanceManager_GetGadgetInstance_Handler,
		},
		{
			MethodName: "RemoveGadgetInstance",
			Handler:    _GadgetInstanceManager_RemoveGadgetInstance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

GadgetInstanceManager_ServiceDesc is the grpc.ServiceDesc for GadgetInstanceManager 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 GadgetManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.GadgetManager",
	HandlerType: (*GadgetManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGadgetInfo",
			Handler:    _GadgetManager_GetGadgetInfo_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "RunGadget",
			Handler:       _GadgetManager_RunGadget_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/api.proto",
}

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

Functions

func IsArrayKind added in v0.31.0

func IsArrayKind(kind Kind) bool

func IsValidInstanceID added in v0.33.0

func IsValidInstanceID(id string) bool

func IsValidInstanceName added in v0.33.0

func IsValidInstanceName(name string) bool

func NewInstanceID added in v0.33.0

func NewInstanceID() (string, error)

func ParseSocketAddress added in v0.22.0

func ParseSocketAddress(addr string) (string, string, error)

func RegisterBuiltInGadgetManagerServer added in v0.28.0

func RegisterBuiltInGadgetManagerServer(s grpc.ServiceRegistrar, srv BuiltInGadgetManagerServer)

func RegisterGadgetInstanceManagerServer added in v0.33.0

func RegisterGadgetInstanceManagerServer(s grpc.ServiceRegistrar, srv GadgetInstanceManagerServer)

func RegisterGadgetManagerServer

func RegisterGadgetManagerServer(s grpc.ServiceRegistrar, srv GadgetManagerServer)

Types

type BuiltInGadgetControlRequest added in v0.28.0

type BuiltInGadgetControlRequest struct {

	// Types that are assignable to Event:
	//	*BuiltInGadgetControlRequest_RunRequest
	//	*BuiltInGadgetControlRequest_StopRequest
	Event isBuiltInGadgetControlRequest_Event `protobuf_oneof:"Event"`
	// contains filtered or unexported fields
}

func (*BuiltInGadgetControlRequest) Descriptor deprecated added in v0.28.0

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

Deprecated: Use BuiltInGadgetControlRequest.ProtoReflect.Descriptor instead.

func (*BuiltInGadgetControlRequest) GetEvent added in v0.28.0

func (m *BuiltInGadgetControlRequest) GetEvent() isBuiltInGadgetControlRequest_Event

func (*BuiltInGadgetControlRequest) GetRunRequest added in v0.28.0

func (*BuiltInGadgetControlRequest) GetStopRequest added in v0.28.0

func (*BuiltInGadgetControlRequest) ProtoMessage added in v0.28.0

func (*BuiltInGadgetControlRequest) ProtoMessage()

func (*BuiltInGadgetControlRequest) ProtoReflect added in v0.28.0

func (*BuiltInGadgetControlRequest) Reset added in v0.28.0

func (x *BuiltInGadgetControlRequest) Reset()

func (*BuiltInGadgetControlRequest) String added in v0.28.0

func (x *BuiltInGadgetControlRequest) String() string

type BuiltInGadgetControlRequest_RunRequest added in v0.28.0

type BuiltInGadgetControlRequest_RunRequest struct {
	RunRequest *BuiltInGadgetRunRequest `protobuf:"bytes,1,opt,name=runRequest,proto3,oneof"`
}

type BuiltInGadgetControlRequest_StopRequest added in v0.28.0

type BuiltInGadgetControlRequest_StopRequest struct {
	StopRequest *BuiltInGadgetStopRequest `protobuf:"bytes,2,opt,name=stopRequest,proto3,oneof"`
}

type BuiltInGadgetManagerClient added in v0.28.0

type BuiltInGadgetManagerClient interface {
	GetInfo(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	RunBuiltInGadget(ctx context.Context, opts ...grpc.CallOption) (BuiltInGadgetManager_RunBuiltInGadgetClient, error)
}

BuiltInGadgetManagerClient is the client API for BuiltInGadgetManager 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 NewBuiltInGadgetManagerClient added in v0.28.0

func NewBuiltInGadgetManagerClient(cc grpc.ClientConnInterface) BuiltInGadgetManagerClient

type BuiltInGadgetManagerServer added in v0.28.0

type BuiltInGadgetManagerServer interface {
	GetInfo(context.Context, *InfoRequest) (*InfoResponse, error)
	RunBuiltInGadget(BuiltInGadgetManager_RunBuiltInGadgetServer) error
	// contains filtered or unexported methods
}

BuiltInGadgetManagerServer is the server API for BuiltInGadgetManager service. All implementations must embed UnimplementedBuiltInGadgetManagerServer for forward compatibility

type BuiltInGadgetManager_RunBuiltInGadgetClient added in v0.28.0

type BuiltInGadgetManager_RunBuiltInGadgetClient interface {
	Send(*BuiltInGadgetControlRequest) error
	Recv() (*GadgetEvent, error)
	grpc.ClientStream
}

type BuiltInGadgetManager_RunBuiltInGadgetServer added in v0.28.0

type BuiltInGadgetManager_RunBuiltInGadgetServer interface {
	Send(*GadgetEvent) error
	Recv() (*BuiltInGadgetControlRequest, error)
	grpc.ServerStream
}

type BuiltInGadgetRunRequest added in v0.28.0

type BuiltInGadgetRunRequest struct {

	// name of the gadget as returned by gadgetDesc.Name()
	GadgetName string `protobuf:"bytes,1,opt,name=gadgetName,proto3" json:"gadgetName,omitempty"`
	// category of the gadget as returned by gadgetDesc.Category()
	GadgetCategory string `protobuf:"bytes,2,opt,name=gadgetCategory,proto3" json:"gadgetCategory,omitempty"`
	// params is a combined map of all params a gadget could need (including those
	// of runtime and operators, which need specific prefixes, see implementation in
	// pkg/runtime/grpc)
	Params map[string]string `` /* 153-byte string literal not displayed */
	// args are all parameters which were not specified with a flag
	Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// a list of nodes the gadget should run on; if not specified, it should run
	// on all nodes
	Nodes []string `protobuf:"bytes,10,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// if set to true, the gadget service should forward the request to each node
	// from the nodes list (or each node it knows, if the list is empty) and combine
	// their output
	FanOut bool `protobuf:"varint,11,opt,name=fanOut,proto3" json:"fanOut,omitempty"`
	// sets the requested log level (see pkg/logger/logger.go)
	LogLevel uint32 `protobuf:"varint,12,opt,name=logLevel,proto3" json:"logLevel,omitempty"`
	// time that a gadget should run; use 0, if the gadget should run until it's being
	// stopped or done; time is in nanoseconds and directly converted to time.Duration
	Timeout int64 `protobuf:"varint,13,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*BuiltInGadgetRunRequest) Descriptor deprecated added in v0.28.0

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

Deprecated: Use BuiltInGadgetRunRequest.ProtoReflect.Descriptor instead.

func (*BuiltInGadgetRunRequest) GetArgs added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetArgs() []string

func (*BuiltInGadgetRunRequest) GetFanOut added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetFanOut() bool

func (*BuiltInGadgetRunRequest) GetGadgetCategory added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetGadgetCategory() string

func (*BuiltInGadgetRunRequest) GetGadgetName added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetGadgetName() string

func (*BuiltInGadgetRunRequest) GetLogLevel added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetLogLevel() uint32

func (*BuiltInGadgetRunRequest) GetNodes added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetNodes() []string

func (*BuiltInGadgetRunRequest) GetParams added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetParams() map[string]string

func (*BuiltInGadgetRunRequest) GetTimeout added in v0.28.0

func (x *BuiltInGadgetRunRequest) GetTimeout() int64

func (*BuiltInGadgetRunRequest) ProtoMessage added in v0.28.0

func (*BuiltInGadgetRunRequest) ProtoMessage()

func (*BuiltInGadgetRunRequest) ProtoReflect added in v0.28.0

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

func (*BuiltInGadgetRunRequest) Reset added in v0.28.0

func (x *BuiltInGadgetRunRequest) Reset()

func (*BuiltInGadgetRunRequest) String added in v0.28.0

func (x *BuiltInGadgetRunRequest) String() string

type BuiltInGadgetStopRequest added in v0.28.0

type BuiltInGadgetStopRequest struct {
	// contains filtered or unexported fields
}

func (*BuiltInGadgetStopRequest) Descriptor deprecated added in v0.28.0

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

Deprecated: Use BuiltInGadgetStopRequest.ProtoReflect.Descriptor instead.

func (*BuiltInGadgetStopRequest) ProtoMessage added in v0.28.0

func (*BuiltInGadgetStopRequest) ProtoMessage()

func (*BuiltInGadgetStopRequest) ProtoReflect added in v0.28.0

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

func (*BuiltInGadgetStopRequest) Reset added in v0.28.0

func (x *BuiltInGadgetStopRequest) Reset()

func (*BuiltInGadgetStopRequest) String added in v0.28.0

func (x *BuiltInGadgetStopRequest) String() string

type CreateGadgetInstanceRequest added in v0.33.0

type CreateGadgetInstanceRequest struct {
	GadgetInstance    *GadgetInstance `protobuf:"bytes,1,opt,name=gadgetInstance,proto3" json:"gadgetInstance,omitempty"`
	EventBufferLength int32           `protobuf:"varint,2,opt,name=eventBufferLength,proto3" json:"eventBufferLength,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateGadgetInstanceRequest) Descriptor deprecated added in v0.33.0

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

Deprecated: Use CreateGadgetInstanceRequest.ProtoReflect.Descriptor instead.

func (*CreateGadgetInstanceRequest) GetEventBufferLength added in v0.33.0

func (x *CreateGadgetInstanceRequest) GetEventBufferLength() int32

func (*CreateGadgetInstanceRequest) GetGadgetInstance added in v0.33.0

func (x *CreateGadgetInstanceRequest) GetGadgetInstance() *GadgetInstance

func (*CreateGadgetInstanceRequest) ProtoMessage added in v0.33.0

func (*CreateGadgetInstanceRequest) ProtoMessage()

func (*CreateGadgetInstanceRequest) ProtoReflect added in v0.33.0

func (*CreateGadgetInstanceRequest) Reset added in v0.33.0

func (x *CreateGadgetInstanceRequest) Reset()

func (*CreateGadgetInstanceRequest) String added in v0.33.0

func (x *CreateGadgetInstanceRequest) String() string

type CreateGadgetInstanceResponse added in v0.33.0

type CreateGadgetInstanceResponse struct {
	Result         int32           `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	GadgetInstance *GadgetInstance `protobuf:"bytes,2,opt,name=gadgetInstance,proto3" json:"gadgetInstance,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateGadgetInstanceResponse) Descriptor deprecated added in v0.33.0

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

Deprecated: Use CreateGadgetInstanceResponse.ProtoReflect.Descriptor instead.

func (*CreateGadgetInstanceResponse) GetGadgetInstance added in v0.33.0

func (x *CreateGadgetInstanceResponse) GetGadgetInstance() *GadgetInstance

func (*CreateGadgetInstanceResponse) GetResult added in v0.33.0

func (x *CreateGadgetInstanceResponse) GetResult() int32

func (*CreateGadgetInstanceResponse) ProtoMessage added in v0.33.0

func (*CreateGadgetInstanceResponse) ProtoMessage()

func (*CreateGadgetInstanceResponse) ProtoReflect added in v0.33.0

func (*CreateGadgetInstanceResponse) Reset added in v0.33.0

func (x *CreateGadgetInstanceResponse) Reset()

func (*CreateGadgetInstanceResponse) String added in v0.33.0

type DataElement added in v0.29.0

type DataElement struct {
	Payload [][]byte `protobuf:"bytes,1,rep,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*DataElement) Descriptor deprecated added in v0.29.0

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

Deprecated: Use DataElement.ProtoReflect.Descriptor instead.

func (*DataElement) GetPayload added in v0.29.0

func (x *DataElement) GetPayload() [][]byte

func (*DataElement) ProtoMessage added in v0.29.0

func (*DataElement) ProtoMessage()

func (*DataElement) ProtoReflect added in v0.29.0

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

func (*DataElement) Reset added in v0.29.0

func (x *DataElement) Reset()

func (*DataElement) String added in v0.29.0

func (x *DataElement) String() string

type DataSource added in v0.27.0

type DataSource struct {
	Id          uint32            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type        uint32            `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	Fields      []*Field          `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
	Tags        []string          `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	Flags       uint32            `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSource) Descriptor deprecated added in v0.27.0

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

Deprecated: Use DataSource.ProtoReflect.Descriptor instead.

func (*DataSource) GetAnnotations added in v0.27.0

func (x *DataSource) GetAnnotations() map[string]string

func (*DataSource) GetFields added in v0.27.0

func (x *DataSource) GetFields() []*Field

func (*DataSource) GetFlags added in v0.27.0

func (x *DataSource) GetFlags() uint32

func (*DataSource) GetId added in v0.27.0

func (x *DataSource) GetId() uint32

func (*DataSource) GetName added in v0.27.0

func (x *DataSource) GetName() string

func (*DataSource) GetTags added in v0.27.0

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

func (*DataSource) GetType added in v0.27.0

func (x *DataSource) GetType() uint32

func (*DataSource) ProtoMessage added in v0.27.0

func (*DataSource) ProtoMessage()

func (*DataSource) ProtoReflect added in v0.27.0

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

func (*DataSource) Reset added in v0.27.0

func (x *DataSource) Reset()

func (*DataSource) String added in v0.27.0

func (x *DataSource) String() string

type Field added in v0.27.0

type Field struct {

	// name contains the plain field name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// fullName contains a fully qualified field name
	// e.g. when it is a sub field of another, it's called
	// otherfieldsname.name
	FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
	// index holds the index to this field inside the
	// field array of the DataSource
	Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	// payloadIndex describes in which payload this field
	// is contained
	PayloadIndex uint32 `protobuf:"varint,4,opt,name=payloadIndex,proto3" json:"payloadIndex,omitempty"`
	// offs is the offset of the fields' contents inside the
	// payload specified by payloadIndex
	Offs uint32 `protobuf:"varint,5,opt,name=offs,proto3" json:"offs,omitempty"`
	// size is (if fixed) the size of the fields' content
	Size uint32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	// flags describe different attributes of the field, like
	// whether it has a parent, is virtual, etc.
	Flags uint32 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"`
	// kind describes how the content of the field should be
	// handled
	Kind Kind `protobuf:"varint,8,opt,name=kind,proto3,enum=api.Kind" json:"kind,omitempty"`
	// tags can contain multiple tags that describe the contents
	// of the field; they are used by operators to find
	// interesting fields, for example
	Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
	// annotations are additional information that can be used
	// by operators or third party consumers
	Annotations map[string]string `` /* 164-byte string literal not displayed */
	// parent holds the index of the field that is considered
	// this fields' parent; only true if the corresponding flag
	// is set in flags
	Parent uint32 `protobuf:"varint,11,opt,name=parent,proto3" json:"parent,omitempty"`
	// order determines the default position of this field when
	// ordering multiple fields
	Order int32 `protobuf:"varint,12,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated added in v0.27.0

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetAnnotations added in v0.27.0

func (x *Field) GetAnnotations() map[string]string

func (*Field) GetFlags added in v0.27.0

func (x *Field) GetFlags() uint32

func (*Field) GetFullName added in v0.27.0

func (x *Field) GetFullName() string

func (*Field) GetIndex added in v0.27.0

func (x *Field) GetIndex() uint32

func (*Field) GetKind added in v0.27.0

func (x *Field) GetKind() Kind

func (*Field) GetName added in v0.27.0

func (x *Field) GetName() string

func (*Field) GetOffs added in v0.27.0

func (x *Field) GetOffs() uint32

func (*Field) GetOrder added in v0.27.0

func (x *Field) GetOrder() int32

func (*Field) GetParent added in v0.27.0

func (x *Field) GetParent() uint32

func (*Field) GetPayloadIndex added in v0.27.0

func (x *Field) GetPayloadIndex() uint32

func (*Field) GetSize added in v0.27.0

func (x *Field) GetSize() uint32

func (*Field) GetTags added in v0.27.0

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

func (*Field) ProtoMessage added in v0.27.0

func (*Field) ProtoMessage()

func (*Field) ProtoReflect added in v0.27.0

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

func (*Field) Reset added in v0.27.0

func (x *Field) Reset()

func (*Field) String added in v0.27.0

func (x *Field) String() string

type GadgetAttachRequest added in v0.33.0

type GadgetAttachRequest struct {

	// id of the gadget to attach to
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// used to inform the server about the expected protocol version
	Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetAttachRequest) Descriptor deprecated added in v0.33.0

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

Deprecated: Use GadgetAttachRequest.ProtoReflect.Descriptor instead.

func (*GadgetAttachRequest) GetId added in v0.33.0

func (x *GadgetAttachRequest) GetId() string

func (*GadgetAttachRequest) GetVersion added in v0.33.0

func (x *GadgetAttachRequest) GetVersion() uint32

func (*GadgetAttachRequest) ProtoMessage added in v0.33.0

func (*GadgetAttachRequest) ProtoMessage()

func (*GadgetAttachRequest) ProtoReflect added in v0.33.0

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

func (*GadgetAttachRequest) Reset added in v0.33.0

func (x *GadgetAttachRequest) Reset()

func (*GadgetAttachRequest) String added in v0.33.0

func (x *GadgetAttachRequest) String() string

type GadgetControlRequest

type GadgetControlRequest struct {

	// Types that are assignable to Event:
	//	*GadgetControlRequest_RunRequest
	//	*GadgetControlRequest_StopRequest
	//	*GadgetControlRequest_AttachRequest
	Event isGadgetControlRequest_Event `protobuf_oneof:"Event"`
	// contains filtered or unexported fields
}

func (*GadgetControlRequest) Descriptor deprecated

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

Deprecated: Use GadgetControlRequest.ProtoReflect.Descriptor instead.

func (*GadgetControlRequest) GetAttachRequest added in v0.33.0

func (x *GadgetControlRequest) GetAttachRequest() *GadgetAttachRequest

func (*GadgetControlRequest) GetEvent

func (m *GadgetControlRequest) GetEvent() isGadgetControlRequest_Event

func (*GadgetControlRequest) GetRunRequest

func (x *GadgetControlRequest) GetRunRequest() *GadgetRunRequest

func (*GadgetControlRequest) GetStopRequest

func (x *GadgetControlRequest) GetStopRequest() *GadgetStopRequest

func (*GadgetControlRequest) ProtoMessage

func (*GadgetControlRequest) ProtoMessage()

func (*GadgetControlRequest) ProtoReflect

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

func (*GadgetControlRequest) Reset

func (x *GadgetControlRequest) Reset()

func (*GadgetControlRequest) String

func (x *GadgetControlRequest) String() string

type GadgetControlRequest_AttachRequest added in v0.33.0

type GadgetControlRequest_AttachRequest struct {
	AttachRequest *GadgetAttachRequest `protobuf:"bytes,3,opt,name=attachRequest,proto3,oneof"`
}

type GadgetControlRequest_RunRequest

type GadgetControlRequest_RunRequest struct {
	RunRequest *GadgetRunRequest `protobuf:"bytes,1,opt,name=runRequest,proto3,oneof"`
}

type GadgetControlRequest_StopRequest

type GadgetControlRequest_StopRequest struct {
	StopRequest *GadgetStopRequest `protobuf:"bytes,2,opt,name=stopRequest,proto3,oneof"`
}

type GadgetData added in v0.27.0

type GadgetData struct {
	Node string       `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	Seq  uint32       `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Data *DataElement `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetData) Descriptor deprecated added in v0.27.0

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

Deprecated: Use GadgetData.ProtoReflect.Descriptor instead.

func (*GadgetData) GetData added in v0.29.0

func (x *GadgetData) GetData() *DataElement

func (*GadgetData) GetNode added in v0.27.0

func (x *GadgetData) GetNode() string

func (*GadgetData) GetSeq added in v0.27.0

func (x *GadgetData) GetSeq() uint32

func (*GadgetData) ProtoMessage added in v0.27.0

func (*GadgetData) ProtoMessage()

func (*GadgetData) ProtoReflect added in v0.27.0

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

func (*GadgetData) Reset added in v0.27.0

func (x *GadgetData) Reset()

func (*GadgetData) String added in v0.27.0

func (x *GadgetData) String() string

type GadgetDataArray added in v0.29.0

type GadgetDataArray struct {
	Node      string         `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	Seq       uint32         `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
	DataArray []*DataElement `protobuf:"bytes,3,rep,name=dataArray,proto3" json:"dataArray,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetDataArray) Descriptor deprecated added in v0.29.0

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

Deprecated: Use GadgetDataArray.ProtoReflect.Descriptor instead.

func (*GadgetDataArray) GetDataArray added in v0.29.0

func (x *GadgetDataArray) GetDataArray() []*DataElement

func (*GadgetDataArray) GetNode added in v0.29.0

func (x *GadgetDataArray) GetNode() string

func (*GadgetDataArray) GetSeq added in v0.29.0

func (x *GadgetDataArray) GetSeq() uint32

func (*GadgetDataArray) ProtoMessage added in v0.29.0

func (*GadgetDataArray) ProtoMessage()

func (*GadgetDataArray) ProtoReflect added in v0.29.0

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

func (*GadgetDataArray) Reset added in v0.29.0

func (x *GadgetDataArray) Reset()

func (*GadgetDataArray) String added in v0.29.0

func (x *GadgetDataArray) String() string

type GadgetEvent

type GadgetEvent struct {

	// Types are specified in consts.go. Upper 16 bits are used for log severity levels
	Type         uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	Seq          uint32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Payload      []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	DataSourceID uint32 `protobuf:"varint,4,opt,name=dataSourceID,proto3" json:"dataSourceID,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetEvent) Descriptor deprecated

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

Deprecated: Use GadgetEvent.ProtoReflect.Descriptor instead.

func (*GadgetEvent) GetDataSourceID added in v0.27.0

func (x *GadgetEvent) GetDataSourceID() uint32

func (*GadgetEvent) GetPayload

func (x *GadgetEvent) GetPayload() []byte

func (*GadgetEvent) GetSeq

func (x *GadgetEvent) GetSeq() uint32

func (*GadgetEvent) GetType

func (x *GadgetEvent) GetType() uint32

func (*GadgetEvent) ProtoMessage

func (*GadgetEvent) ProtoMessage()

func (*GadgetEvent) ProtoReflect

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

func (*GadgetEvent) Reset

func (x *GadgetEvent) Reset()

func (*GadgetEvent) String

func (x *GadgetEvent) String() string

type GadgetInfo added in v0.27.0

type GadgetInfo struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ImageName   string            `protobuf:"bytes,2,opt,name=imageName,proto3" json:"imageName,omitempty"`
	DataSources []*DataSource     `protobuf:"bytes,4,rep,name=dataSources,proto3" json:"dataSources,omitempty"`
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	Metadata    []byte            `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Params      []*Param          `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"`
	Id          string            `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetInfo) Descriptor deprecated added in v0.27.0

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

Deprecated: Use GadgetInfo.ProtoReflect.Descriptor instead.

func (*GadgetInfo) GetAnnotations added in v0.27.0

func (x *GadgetInfo) GetAnnotations() map[string]string

func (*GadgetInfo) GetDataSources added in v0.27.0

func (x *GadgetInfo) GetDataSources() []*DataSource

func (*GadgetInfo) GetId added in v0.33.0

func (x *GadgetInfo) GetId() string

func (*GadgetInfo) GetImageName added in v0.27.0

func (x *GadgetInfo) GetImageName() string

func (*GadgetInfo) GetMetadata added in v0.27.0

func (x *GadgetInfo) GetMetadata() []byte

func (*GadgetInfo) GetName added in v0.27.0

func (x *GadgetInfo) GetName() string

func (*GadgetInfo) GetParams added in v0.27.0

func (x *GadgetInfo) GetParams() []*Param

func (*GadgetInfo) ProtoMessage added in v0.27.0

func (*GadgetInfo) ProtoMessage()

func (*GadgetInfo) ProtoReflect added in v0.27.0

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

func (*GadgetInfo) Reset added in v0.27.0

func (x *GadgetInfo) Reset()

func (*GadgetInfo) String added in v0.27.0

func (x *GadgetInfo) String() string

type GadgetInstance added in v0.33.0

type GadgetInstance struct {

	// id is the unique ID of the instance; this can be set by the client but overridden from the server, depending on the
	// environment; must contain only hex characters in lowercase
	Id           string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	GadgetConfig *GadgetRunRequest `protobuf:"bytes,2,opt,name=gadgetConfig,proto3" json:"gadgetConfig,omitempty"`
	// tags can hold multiple opaque strings so that users can more easily find their gadget instances
	Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// timeCreated holds the time the instance was created as a UNIX timestamp
	TimeCreated int64 `protobuf:"varint,4,opt,name=timeCreated,proto3" json:"timeCreated,omitempty"`
	// name is a (non-unique) string assigned to a gadget, set by the client
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// nodes is a list of nodes the gadget should run on; if empty, all nodes will run the gadget
	Nodes []string `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetInstance) Descriptor deprecated added in v0.33.0

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

Deprecated: Use GadgetInstance.ProtoReflect.Descriptor instead.

func (*GadgetInstance) GetGadgetConfig added in v0.33.0

func (x *GadgetInstance) GetGadgetConfig() *GadgetRunRequest

func (*GadgetInstance) GetId added in v0.33.0

func (x *GadgetInstance) GetId() string

func (*GadgetInstance) GetName added in v0.33.0

func (x *GadgetInstance) GetName() string

func (*GadgetInstance) GetNodes added in v0.34.0

func (x *GadgetInstance) GetNodes() []string

func (*GadgetInstance) GetTags added in v0.33.0

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

func (*GadgetInstance) GetTimeCreated added in v0.33.0

func (x *GadgetInstance) GetTimeCreated() int64

func (*GadgetInstance) ProtoMessage added in v0.33.0

func (*GadgetInstance) ProtoMessage()

func (*GadgetInstance) ProtoReflect added in v0.33.0

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

func (*GadgetInstance) Reset added in v0.33.0

func (x *GadgetInstance) Reset()

func (*GadgetInstance) String added in v0.33.0

func (x *GadgetInstance) String() string

type GadgetInstanceId added in v0.33.0

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

func (*GadgetInstanceId) Descriptor deprecated added in v0.33.0

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

Deprecated: Use GadgetInstanceId.ProtoReflect.Descriptor instead.

func (*GadgetInstanceId) GetId added in v0.33.0

func (x *GadgetInstanceId) GetId() string

func (*GadgetInstanceId) ProtoMessage added in v0.33.0

func (*GadgetInstanceId) ProtoMessage()

func (*GadgetInstanceId) ProtoReflect added in v0.33.0

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

func (*GadgetInstanceId) Reset added in v0.33.0

func (x *GadgetInstanceId) Reset()

func (*GadgetInstanceId) String added in v0.33.0

func (x *GadgetInstanceId) String() string

type GadgetInstanceManagerClient added in v0.33.0

type GadgetInstanceManagerClient interface {
	CreateGadgetInstance(ctx context.Context, in *CreateGadgetInstanceRequest, opts ...grpc.CallOption) (*CreateGadgetInstanceResponse, error)
	ListGadgetInstances(ctx context.Context, in *ListGadgetInstancesRequest, opts ...grpc.CallOption) (*ListGadgetInstanceResponse, error)
	GetGadgetInstance(ctx context.Context, in *GadgetInstanceId, opts ...grpc.CallOption) (*GadgetInstance, error)
	RemoveGadgetInstance(ctx context.Context, in *GadgetInstanceId, opts ...grpc.CallOption) (*StatusResponse, error)
}

GadgetInstanceManagerClient is the client API for GadgetInstanceManager 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 NewGadgetInstanceManagerClient added in v0.33.0

func NewGadgetInstanceManagerClient(cc grpc.ClientConnInterface) GadgetInstanceManagerClient

type GadgetInstanceManagerServer added in v0.33.0

type GadgetInstanceManagerServer interface {
	CreateGadgetInstance(context.Context, *CreateGadgetInstanceRequest) (*CreateGadgetInstanceResponse, error)
	ListGadgetInstances(context.Context, *ListGadgetInstancesRequest) (*ListGadgetInstanceResponse, error)
	GetGadgetInstance(context.Context, *GadgetInstanceId) (*GadgetInstance, error)
	RemoveGadgetInstance(context.Context, *GadgetInstanceId) (*StatusResponse, error)
	// contains filtered or unexported methods
}

GadgetInstanceManagerServer is the server API for GadgetInstanceManager service. All implementations must embed UnimplementedGadgetInstanceManagerServer for forward compatibility

type GadgetManagerClient

type GadgetManagerClient interface {
	GetGadgetInfo(ctx context.Context, in *GetGadgetInfoRequest, opts ...grpc.CallOption) (*GetGadgetInfoResponse, error)
	RunGadget(ctx context.Context, opts ...grpc.CallOption) (GadgetManager_RunGadgetClient, error)
}

GadgetManagerClient is the client API for GadgetManager 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 GadgetManagerServer

type GadgetManagerServer interface {
	GetGadgetInfo(context.Context, *GetGadgetInfoRequest) (*GetGadgetInfoResponse, error)
	RunGadget(GadgetManager_RunGadgetServer) error
	// contains filtered or unexported methods
}

GadgetManagerServer is the server API for GadgetManager service. All implementations must embed UnimplementedGadgetManagerServer for forward compatibility

type GadgetManager_RunGadgetClient

type GadgetManager_RunGadgetClient interface {
	Send(*GadgetControlRequest) error
	Recv() (*GadgetEvent, error)
	grpc.ClientStream
}

type GadgetManager_RunGadgetServer

type GadgetManager_RunGadgetServer interface {
	Send(*GadgetEvent) error
	Recv() (*GadgetControlRequest, error)
	grpc.ServerStream
}

type GadgetRunRequest

type GadgetRunRequest struct {
	ImageName string `protobuf:"bytes,1,opt,name=imageName,proto3" json:"imageName,omitempty"`
	// paramValues is a combined map of all params a gadget could need (including those
	// of runtime and operators, which need specific prefixes, see implementation in
	// pkg/runtime/grpc)
	ParamValues map[string]string `` /* 163-byte string literal not displayed */
	// args are all parameters which were not specified with a flag
	Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// used to inform the server about the expected protocol version
	Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// sets the requested log level (see pkg/logger/logger.go)
	LogLevel uint32 `protobuf:"varint,12,opt,name=logLevel,proto3" json:"logLevel,omitempty"`
	// time that a gadget should run; use 0, if the gadget should run until it's being
	// stopped or done; time is in nanoseconds and directly converted to time.Duration
	Timeout int64 `protobuf:"varint,13,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*GadgetRunRequest) Descriptor deprecated

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

Deprecated: Use GadgetRunRequest.ProtoReflect.Descriptor instead.

func (*GadgetRunRequest) GetArgs

func (x *GadgetRunRequest) GetArgs() []string

func (*GadgetRunRequest) GetImageName added in v0.28.0

func (x *GadgetRunRequest) GetImageName() string

func (*GadgetRunRequest) GetLogLevel

func (x *GadgetRunRequest) GetLogLevel() uint32

func (*GadgetRunRequest) GetParamValues added in v0.28.0

func (x *GadgetRunRequest) GetParamValues() map[string]string

func (*GadgetRunRequest) GetTimeout

func (x *GadgetRunRequest) GetTimeout() int64

func (*GadgetRunRequest) GetVersion added in v0.28.0

func (x *GadgetRunRequest) GetVersion() uint32

func (*GadgetRunRequest) ProtoMessage

func (*GadgetRunRequest) ProtoMessage()

func (*GadgetRunRequest) ProtoReflect

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

func (*GadgetRunRequest) Reset

func (x *GadgetRunRequest) Reset()

func (*GadgetRunRequest) String

func (x *GadgetRunRequest) String() string

type GadgetStopRequest

type GadgetStopRequest struct {
	// contains filtered or unexported fields
}

func (*GadgetStopRequest) Descriptor deprecated

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

Deprecated: Use GadgetStopRequest.ProtoReflect.Descriptor instead.

func (*GadgetStopRequest) ProtoMessage

func (*GadgetStopRequest) ProtoMessage()

func (*GadgetStopRequest) ProtoReflect

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

func (*GadgetStopRequest) Reset

func (x *GadgetStopRequest) Reset()

func (*GadgetStopRequest) String

func (x *GadgetStopRequest) String() string

type GetGadgetInfoRequest added in v0.22.0

type GetGadgetInfoRequest struct {

	// params are the gadget's parameters
	ParamValues map[string]string `` /* 163-byte string literal not displayed */
	ImageName   string            `protobuf:"bytes,2,opt,name=imageName,proto3" json:"imageName,omitempty"`
	// can be used to inform about the expected version of GadgetInfo
	Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	Flags   uint32 `protobuf:"varint,4,opt,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGadgetInfoRequest) Descriptor deprecated added in v0.22.0

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

Deprecated: Use GetGadgetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetGadgetInfoRequest) GetFlags added in v0.33.0

func (x *GetGadgetInfoRequest) GetFlags() uint32

func (*GetGadgetInfoRequest) GetImageName added in v0.28.0

func (x *GetGadgetInfoRequest) GetImageName() string

func (*GetGadgetInfoRequest) GetParamValues added in v0.28.0

func (x *GetGadgetInfoRequest) GetParamValues() map[string]string

func (*GetGadgetInfoRequest) GetVersion added in v0.28.0

func (x *GetGadgetInfoRequest) GetVersion() uint32

func (*GetGadgetInfoRequest) ProtoMessage added in v0.22.0

func (*GetGadgetInfoRequest) ProtoMessage()

func (*GetGadgetInfoRequest) ProtoReflect added in v0.22.0

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

func (*GetGadgetInfoRequest) Reset added in v0.22.0

func (x *GetGadgetInfoRequest) Reset()

func (*GetGadgetInfoRequest) String added in v0.22.0

func (x *GetGadgetInfoRequest) String() string

type GetGadgetInfoResponse added in v0.22.0

type GetGadgetInfoResponse struct {
	GadgetInfo *GadgetInfo `protobuf:"bytes,1,opt,name=gadgetInfo,proto3" json:"gadgetInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGadgetInfoResponse) Descriptor deprecated added in v0.22.0

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

Deprecated: Use GetGadgetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetGadgetInfoResponse) GetGadgetInfo added in v0.28.0

func (x *GetGadgetInfoResponse) GetGadgetInfo() *GadgetInfo

func (*GetGadgetInfoResponse) ProtoMessage added in v0.22.0

func (*GetGadgetInfoResponse) ProtoMessage()

func (*GetGadgetInfoResponse) ProtoReflect added in v0.22.0

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

func (*GetGadgetInfoResponse) Reset added in v0.22.0

func (x *GetGadgetInfoResponse) Reset()

func (*GetGadgetInfoResponse) String added in v0.22.0

func (x *GetGadgetInfoResponse) String() string

type InfoRequest

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

func (*InfoRequest) Descriptor deprecated

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

Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.

func (*InfoRequest) GetVersion

func (x *InfoRequest) GetVersion() string

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) ProtoReflect

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

func (*InfoRequest) Reset

func (x *InfoRequest) Reset()

func (*InfoRequest) String

func (x *InfoRequest) String() string

type InfoResponse

type InfoResponse struct {
	Version       string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Catalog       []byte `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"`
	Experimental  bool   `protobuf:"varint,3,opt,name=experimental,proto3" json:"experimental,omitempty"`
	ServerVersion string `protobuf:"bytes,4,opt,name=serverVersion,proto3" json:"serverVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoResponse) Descriptor deprecated

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

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) GetCatalog

func (x *InfoResponse) GetCatalog() []byte

func (*InfoResponse) GetExperimental

func (x *InfoResponse) GetExperimental() bool

func (*InfoResponse) GetServerVersion added in v0.28.0

func (x *InfoResponse) GetServerVersion() string

func (*InfoResponse) GetVersion

func (x *InfoResponse) GetVersion() string

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect

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

func (*InfoResponse) Reset

func (x *InfoResponse) Reset()

func (*InfoResponse) String

func (x *InfoResponse) String() string

type Kind added in v0.27.0

type Kind int32
const (
	Kind_Invalid Kind = 0
	Kind_Bool    Kind = 1
	Kind_Int8    Kind = 2
	Kind_Int16   Kind = 3
	Kind_Int32   Kind = 4
	Kind_Int64   Kind = 5
	Kind_Uint8   Kind = 6
	Kind_Uint16  Kind = 7
	Kind_Uint32  Kind = 8
	Kind_Uint64  Kind = 9
	Kind_Float32 Kind = 10
	Kind_Float64 Kind = 11
	Kind_String  Kind = 12
	Kind_CString Kind = 13
	Kind_Bytes   Kind = 14
)
const (
	KindFlagArray Kind = 0x10000000
)

func ArrayOf added in v0.31.0

func ArrayOf(kind Kind) Kind

func (Kind) Descriptor added in v0.27.0

func (Kind) Descriptor() protoreflect.EnumDescriptor

func (Kind) Enum added in v0.27.0

func (x Kind) Enum() *Kind

func (Kind) EnumDescriptor deprecated added in v0.27.0

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

Deprecated: Use Kind.Descriptor instead.

func (Kind) Number added in v0.27.0

func (x Kind) Number() protoreflect.EnumNumber

func (Kind) String added in v0.27.0

func (x Kind) String() string

func (Kind) Type added in v0.27.0

func (Kind) Type() protoreflect.EnumType

type ListGadgetInstanceResponse added in v0.33.0

type ListGadgetInstanceResponse struct {
	GadgetInstances []*GadgetInstance `protobuf:"bytes,1,rep,name=gadgetInstances,proto3" json:"gadgetInstances,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGadgetInstanceResponse) Descriptor deprecated added in v0.33.0

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

Deprecated: Use ListGadgetInstanceResponse.ProtoReflect.Descriptor instead.

func (*ListGadgetInstanceResponse) GetGadgetInstances added in v0.33.0

func (x *ListGadgetInstanceResponse) GetGadgetInstances() []*GadgetInstance

func (*ListGadgetInstanceResponse) ProtoMessage added in v0.33.0

func (*ListGadgetInstanceResponse) ProtoMessage()

func (*ListGadgetInstanceResponse) ProtoReflect added in v0.33.0

func (*ListGadgetInstanceResponse) Reset added in v0.33.0

func (x *ListGadgetInstanceResponse) Reset()

func (*ListGadgetInstanceResponse) String added in v0.33.0

func (x *ListGadgetInstanceResponse) String() string

type ListGadgetInstancesRequest added in v0.33.0

type ListGadgetInstancesRequest struct {
	// contains filtered or unexported fields
}

func (*ListGadgetInstancesRequest) Descriptor deprecated added in v0.33.0

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

Deprecated: Use ListGadgetInstancesRequest.ProtoReflect.Descriptor instead.

func (*ListGadgetInstancesRequest) ProtoMessage added in v0.33.0

func (*ListGadgetInstancesRequest) ProtoMessage()

func (*ListGadgetInstancesRequest) ProtoReflect added in v0.33.0

func (*ListGadgetInstancesRequest) Reset added in v0.33.0

func (x *ListGadgetInstancesRequest) Reset()

func (*ListGadgetInstancesRequest) String added in v0.33.0

func (x *ListGadgetInstancesRequest) String() string

type Param added in v0.27.0

type Param struct {
	Key            string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Description    string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	DefaultValue   string   `protobuf:"bytes,3,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"`
	TypeHint       string   `protobuf:"bytes,4,opt,name=typeHint,proto3" json:"typeHint,omitempty"`
	Title          string   `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Alias          string   `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"`
	Tags           []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	ValueHint      string   `protobuf:"bytes,8,opt,name=valueHint,proto3" json:"valueHint,omitempty"`
	PossibleValues []string `protobuf:"bytes,9,rep,name=possibleValues,proto3" json:"possibleValues,omitempty"`
	IsMandatory    bool     `protobuf:"varint,10,opt,name=isMandatory,proto3" json:"isMandatory,omitempty"`
	Prefix         string   `protobuf:"bytes,11,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*Param) AddPrefix added in v0.27.0

func (p *Param) AddPrefix(prefix string) *Param

func (*Param) Descriptor deprecated added in v0.27.0

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

Deprecated: Use Param.ProtoReflect.Descriptor instead.

func (*Param) GetAlias added in v0.27.0

func (x *Param) GetAlias() string

func (*Param) GetDefaultValue added in v0.27.0

func (x *Param) GetDefaultValue() string

func (*Param) GetDescription added in v0.27.0

func (x *Param) GetDescription() string

func (*Param) GetIsMandatory added in v0.27.0

func (x *Param) GetIsMandatory() bool

func (*Param) GetKey added in v0.27.0

func (x *Param) GetKey() string

func (*Param) GetPossibleValues added in v0.27.0

func (x *Param) GetPossibleValues() []string

func (*Param) GetPrefix added in v0.27.0

func (x *Param) GetPrefix() string

func (*Param) GetTags added in v0.27.0

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

func (*Param) GetTitle added in v0.27.0

func (x *Param) GetTitle() string

func (*Param) GetTypeHint added in v0.27.0

func (x *Param) GetTypeHint() string

func (*Param) GetValueHint added in v0.27.0

func (x *Param) GetValueHint() string

func (*Param) ProtoMessage added in v0.27.0

func (*Param) ProtoMessage()

func (*Param) ProtoReflect added in v0.27.0

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

func (*Param) Reset added in v0.27.0

func (x *Param) Reset()

func (*Param) String added in v0.27.0

func (x *Param) String() string

type ParamValues added in v0.27.0

type ParamValues map[string]string

func (ParamValues) ExtractPrefixedValues added in v0.27.0

func (pv ParamValues) ExtractPrefixedValues(prefix string) ParamValues

type Params added in v0.27.0

type Params []*Param

func (Params) AddPrefix added in v0.27.0

func (pv Params) AddPrefix(prefix string) Params

type StatusResponse added in v0.33.0

type StatusResponse struct {
	Result  int32  `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated added in v0.33.0

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

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetMessage added in v0.33.0

func (x *StatusResponse) GetMessage() string

func (*StatusResponse) GetResult added in v0.33.0

func (x *StatusResponse) GetResult() int32

func (*StatusResponse) ProtoMessage added in v0.33.0

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect added in v0.33.0

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

func (*StatusResponse) Reset added in v0.33.0

func (x *StatusResponse) Reset()

func (*StatusResponse) String added in v0.33.0

func (x *StatusResponse) String() string

type UnimplementedBuiltInGadgetManagerServer added in v0.28.0

type UnimplementedBuiltInGadgetManagerServer struct {
}

UnimplementedBuiltInGadgetManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedBuiltInGadgetManagerServer) GetInfo added in v0.28.0

func (UnimplementedBuiltInGadgetManagerServer) RunBuiltInGadget added in v0.28.0

type UnimplementedGadgetInstanceManagerServer added in v0.33.0

type UnimplementedGadgetInstanceManagerServer struct {
}

UnimplementedGadgetInstanceManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedGadgetInstanceManagerServer) CreateGadgetInstance added in v0.33.0

func (UnimplementedGadgetInstanceManagerServer) GetGadgetInstance added in v0.33.0

func (UnimplementedGadgetInstanceManagerServer) ListGadgetInstances added in v0.33.0

func (UnimplementedGadgetInstanceManagerServer) RemoveGadgetInstance added in v0.33.0

type UnimplementedGadgetManagerServer

type UnimplementedGadgetManagerServer struct {
}

UnimplementedGadgetManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedGadgetManagerServer) GetGadgetInfo added in v0.22.0

func (UnimplementedGadgetManagerServer) RunGadget

type UnsafeBuiltInGadgetManagerServer added in v0.28.0

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

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

type UnsafeGadgetInstanceManagerServer added in v0.33.0

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

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

type UnsafeGadgetManagerServer

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

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

Jump to

Keyboard shortcuts

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