adhocprofilesv1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdHocProfileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "adhocprofiles.v1.AdHocProfileService",
	HandlerType: (*AdHocProfileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Upload",
			Handler:    _AdHocProfileService_Upload_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _AdHocProfileService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _AdHocProfileService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "adhocprofiles/v1/adhocprofiles.proto",
}

AdHocProfileService_ServiceDesc is the grpc.ServiceDesc for AdHocProfileService 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_adhocprofiles_v1_adhocprofiles_proto protoreflect.FileDescriptor

Functions

func RegisterAdHocProfileServiceServer

func RegisterAdHocProfileServiceServer(s grpc.ServiceRegistrar, srv AdHocProfileServiceServer)

Types

type AdHocProfileServiceClient

type AdHocProfileServiceClient interface {
	// Upload a profile to the underlying store. The request contains a name and a base64 encoded pprof file. The response
	// contains a generated unique identifier, a flamegraph and a list of found sample types within the profile.
	Upload(ctx context.Context, in *AdHocProfilesUploadRequest, opts ...grpc.CallOption) (*AdHocProfilesGetResponse, error)
	// Retrieves a profile from the underlying store by id and an optional sample type. The response is similar to the one
	// for the upload method.
	Get(ctx context.Context, in *AdHocProfilesGetRequest, opts ...grpc.CallOption) (*AdHocProfilesGetResponse, error)
	// Retrieves a list of profiles found in the underlying store.
	List(ctx context.Context, in *AdHocProfilesListRequest, opts ...grpc.CallOption) (*AdHocProfilesListResponse, error)
}

AdHocProfileServiceClient is the client API for AdHocProfileService 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 AdHocProfileServiceServer

type AdHocProfileServiceServer interface {
	// Upload a profile to the underlying store. The request contains a name and a base64 encoded pprof file. The response
	// contains a generated unique identifier, a flamegraph and a list of found sample types within the profile.
	Upload(context.Context, *AdHocProfilesUploadRequest) (*AdHocProfilesGetResponse, error)
	// Retrieves a profile from the underlying store by id and an optional sample type. The response is similar to the one
	// for the upload method.
	Get(context.Context, *AdHocProfilesGetRequest) (*AdHocProfilesGetResponse, error)
	// Retrieves a list of profiles found in the underlying store.
	List(context.Context, *AdHocProfilesListRequest) (*AdHocProfilesListResponse, error)
	// contains filtered or unexported methods
}

AdHocProfileServiceServer is the server API for AdHocProfileService service. All implementations must embed UnimplementedAdHocProfileServiceServer for forward compatibility

type AdHocProfilesGetRequest

type AdHocProfilesGetRequest struct {

	// The unique identifier of the profile.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The desired profile type (e.g., cpu, samples) for the returned flame graph. If omitted the first profile is returned.
	ProfileType *string `protobuf:"bytes,2,opt,name=profile_type,json=profileType,proto3,oneof" json:"profile_type,omitempty"`
	// Max nodes can be used to truncate the response.
	MaxNodes *int64 `protobuf:"varint,3,opt,name=max_nodes,json=maxNodes,proto3,oneof" json:"max_nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*AdHocProfilesGetRequest) CloneMessageVT

func (m *AdHocProfilesGetRequest) CloneMessageVT() proto.Message

func (*AdHocProfilesGetRequest) CloneVT

func (*AdHocProfilesGetRequest) Descriptor deprecated

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

Deprecated: Use AdHocProfilesGetRequest.ProtoReflect.Descriptor instead.

func (*AdHocProfilesGetRequest) EqualMessageVT

func (this *AdHocProfilesGetRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*AdHocProfilesGetRequest) EqualVT

func (*AdHocProfilesGetRequest) GetId

func (x *AdHocProfilesGetRequest) GetId() string

func (*AdHocProfilesGetRequest) GetMaxNodes

func (x *AdHocProfilesGetRequest) GetMaxNodes() int64

func (*AdHocProfilesGetRequest) GetProfileType

func (x *AdHocProfilesGetRequest) GetProfileType() string

func (*AdHocProfilesGetRequest) MarshalToSizedBufferVT

func (m *AdHocProfilesGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AdHocProfilesGetRequest) MarshalToVT

func (m *AdHocProfilesGetRequest) MarshalToVT(dAtA []byte) (int, error)

func (*AdHocProfilesGetRequest) MarshalVT

func (m *AdHocProfilesGetRequest) MarshalVT() (dAtA []byte, err error)

func (*AdHocProfilesGetRequest) ProtoMessage

func (*AdHocProfilesGetRequest) ProtoMessage()

func (*AdHocProfilesGetRequest) ProtoReflect

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

func (*AdHocProfilesGetRequest) Reset

func (x *AdHocProfilesGetRequest) Reset()

func (*AdHocProfilesGetRequest) SizeVT

func (m *AdHocProfilesGetRequest) SizeVT() (n int)

func (*AdHocProfilesGetRequest) String

func (x *AdHocProfilesGetRequest) String() string

func (*AdHocProfilesGetRequest) UnmarshalVT

func (m *AdHocProfilesGetRequest) UnmarshalVT(dAtA []byte) error

type AdHocProfilesGetResponse

type AdHocProfilesGetResponse struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// timestamp in milliseconds
	UploadedAt  int64  `protobuf:"varint,3,opt,name=uploaded_at,json=uploadedAt,proto3" json:"uploaded_at,omitempty"`
	ProfileType string `protobuf:"bytes,4,opt,name=profile_type,json=profileType,proto3" json:"profile_type,omitempty"`
	// Some profiles formats (like pprof) can contain multiple profile (sample) types inside. One of these can be passed
	// in the Get request using the profile_type field.
	ProfileTypes       []string `protobuf:"bytes,5,rep,name=profile_types,json=profileTypes,proto3" json:"profile_types,omitempty"`
	FlamebearerProfile string   `protobuf:"bytes,6,opt,name=flamebearer_profile,json=flamebearerProfile,proto3" json:"flamebearer_profile,omitempty"`
	// contains filtered or unexported fields
}

func (*AdHocProfilesGetResponse) CloneMessageVT

func (m *AdHocProfilesGetResponse) CloneMessageVT() proto.Message

func (*AdHocProfilesGetResponse) CloneVT

func (*AdHocProfilesGetResponse) Descriptor deprecated

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

Deprecated: Use AdHocProfilesGetResponse.ProtoReflect.Descriptor instead.

func (*AdHocProfilesGetResponse) EqualMessageVT

func (this *AdHocProfilesGetResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*AdHocProfilesGetResponse) EqualVT

func (*AdHocProfilesGetResponse) GetFlamebearerProfile

func (x *AdHocProfilesGetResponse) GetFlamebearerProfile() string

func (*AdHocProfilesGetResponse) GetId

func (x *AdHocProfilesGetResponse) GetId() string

func (*AdHocProfilesGetResponse) GetName

func (x *AdHocProfilesGetResponse) GetName() string

func (*AdHocProfilesGetResponse) GetProfileType

func (x *AdHocProfilesGetResponse) GetProfileType() string

func (*AdHocProfilesGetResponse) GetProfileTypes

func (x *AdHocProfilesGetResponse) GetProfileTypes() []string

func (*AdHocProfilesGetResponse) GetUploadedAt

func (x *AdHocProfilesGetResponse) GetUploadedAt() int64

func (*AdHocProfilesGetResponse) MarshalToSizedBufferVT

func (m *AdHocProfilesGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AdHocProfilesGetResponse) MarshalToVT

func (m *AdHocProfilesGetResponse) MarshalToVT(dAtA []byte) (int, error)

func (*AdHocProfilesGetResponse) MarshalVT

func (m *AdHocProfilesGetResponse) MarshalVT() (dAtA []byte, err error)

func (*AdHocProfilesGetResponse) ProtoMessage

func (*AdHocProfilesGetResponse) ProtoMessage()

func (*AdHocProfilesGetResponse) ProtoReflect

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

func (*AdHocProfilesGetResponse) Reset

func (x *AdHocProfilesGetResponse) Reset()

func (*AdHocProfilesGetResponse) SizeVT

func (m *AdHocProfilesGetResponse) SizeVT() (n int)

func (*AdHocProfilesGetResponse) String

func (x *AdHocProfilesGetResponse) String() string

func (*AdHocProfilesGetResponse) UnmarshalVT

func (m *AdHocProfilesGetResponse) UnmarshalVT(dAtA []byte) error

type AdHocProfilesListRequest

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

func (*AdHocProfilesListRequest) CloneMessageVT

func (m *AdHocProfilesListRequest) CloneMessageVT() proto.Message

func (*AdHocProfilesListRequest) CloneVT

func (*AdHocProfilesListRequest) Descriptor deprecated

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

Deprecated: Use AdHocProfilesListRequest.ProtoReflect.Descriptor instead.

func (*AdHocProfilesListRequest) EqualMessageVT

func (this *AdHocProfilesListRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*AdHocProfilesListRequest) EqualVT

func (*AdHocProfilesListRequest) MarshalToSizedBufferVT

func (m *AdHocProfilesListRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AdHocProfilesListRequest) MarshalToVT

func (m *AdHocProfilesListRequest) MarshalToVT(dAtA []byte) (int, error)

func (*AdHocProfilesListRequest) MarshalVT

func (m *AdHocProfilesListRequest) MarshalVT() (dAtA []byte, err error)

func (*AdHocProfilesListRequest) ProtoMessage

func (*AdHocProfilesListRequest) ProtoMessage()

func (*AdHocProfilesListRequest) ProtoReflect

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

func (*AdHocProfilesListRequest) Reset

func (x *AdHocProfilesListRequest) Reset()

func (*AdHocProfilesListRequest) SizeVT

func (m *AdHocProfilesListRequest) SizeVT() (n int)

func (*AdHocProfilesListRequest) String

func (x *AdHocProfilesListRequest) String() string

func (*AdHocProfilesListRequest) UnmarshalVT

func (m *AdHocProfilesListRequest) UnmarshalVT(dAtA []byte) error

type AdHocProfilesListResponse

type AdHocProfilesListResponse struct {
	Profiles []*AdHocProfilesProfileMetadata `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// contains filtered or unexported fields
}

func (*AdHocProfilesListResponse) CloneMessageVT

func (m *AdHocProfilesListResponse) CloneMessageVT() proto.Message

func (*AdHocProfilesListResponse) CloneVT

func (*AdHocProfilesListResponse) Descriptor deprecated

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

Deprecated: Use AdHocProfilesListResponse.ProtoReflect.Descriptor instead.

func (*AdHocProfilesListResponse) EqualMessageVT

func (this *AdHocProfilesListResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*AdHocProfilesListResponse) EqualVT

func (*AdHocProfilesListResponse) GetProfiles

func (*AdHocProfilesListResponse) MarshalToSizedBufferVT

func (m *AdHocProfilesListResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AdHocProfilesListResponse) MarshalToVT

func (m *AdHocProfilesListResponse) MarshalToVT(dAtA []byte) (int, error)

func (*AdHocProfilesListResponse) MarshalVT

func (m *AdHocProfilesListResponse) MarshalVT() (dAtA []byte, err error)

func (*AdHocProfilesListResponse) ProtoMessage

func (*AdHocProfilesListResponse) ProtoMessage()

func (*AdHocProfilesListResponse) ProtoReflect

func (*AdHocProfilesListResponse) Reset

func (x *AdHocProfilesListResponse) Reset()

func (*AdHocProfilesListResponse) SizeVT

func (m *AdHocProfilesListResponse) SizeVT() (n int)

func (*AdHocProfilesListResponse) String

func (x *AdHocProfilesListResponse) String() string

func (*AdHocProfilesListResponse) UnmarshalVT

func (m *AdHocProfilesListResponse) UnmarshalVT(dAtA []byte) error

type AdHocProfilesProfileMetadata

type AdHocProfilesProfileMetadata struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// timestamp in milliseconds
	UploadedAt int64 `protobuf:"varint,3,opt,name=uploaded_at,json=uploadedAt,proto3" json:"uploaded_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AdHocProfilesProfileMetadata) CloneMessageVT

func (m *AdHocProfilesProfileMetadata) CloneMessageVT() proto.Message

func (*AdHocProfilesProfileMetadata) CloneVT

func (*AdHocProfilesProfileMetadata) Descriptor deprecated

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

Deprecated: Use AdHocProfilesProfileMetadata.ProtoReflect.Descriptor instead.

func (*AdHocProfilesProfileMetadata) EqualMessageVT

func (this *AdHocProfilesProfileMetadata) EqualMessageVT(thatMsg proto.Message) bool

func (*AdHocProfilesProfileMetadata) EqualVT

func (*AdHocProfilesProfileMetadata) GetId

func (*AdHocProfilesProfileMetadata) GetName

func (x *AdHocProfilesProfileMetadata) GetName() string

func (*AdHocProfilesProfileMetadata) GetUploadedAt

func (x *AdHocProfilesProfileMetadata) GetUploadedAt() int64

func (*AdHocProfilesProfileMetadata) MarshalToSizedBufferVT

func (m *AdHocProfilesProfileMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AdHocProfilesProfileMetadata) MarshalToVT

func (m *AdHocProfilesProfileMetadata) MarshalToVT(dAtA []byte) (int, error)

func (*AdHocProfilesProfileMetadata) MarshalVT

func (m *AdHocProfilesProfileMetadata) MarshalVT() (dAtA []byte, err error)

func (*AdHocProfilesProfileMetadata) ProtoMessage

func (*AdHocProfilesProfileMetadata) ProtoMessage()

func (*AdHocProfilesProfileMetadata) ProtoReflect

func (*AdHocProfilesProfileMetadata) Reset

func (x *AdHocProfilesProfileMetadata) Reset()

func (*AdHocProfilesProfileMetadata) SizeVT

func (m *AdHocProfilesProfileMetadata) SizeVT() (n int)

func (*AdHocProfilesProfileMetadata) String

func (*AdHocProfilesProfileMetadata) UnmarshalVT

func (m *AdHocProfilesProfileMetadata) UnmarshalVT(dAtA []byte) error

type AdHocProfilesUploadRequest

type AdHocProfilesUploadRequest struct {

	// This is typically the file name and it serves as a human readable name for the profile.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// This is the profile encoded in base64. The supported formats are pprof, json, collapsed and perf-script.
	Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	// Max nodes can be used to truncate the response.
	MaxNodes *int64 `protobuf:"varint,3,opt,name=max_nodes,json=maxNodes,proto3,oneof" json:"max_nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*AdHocProfilesUploadRequest) CloneMessageVT

func (m *AdHocProfilesUploadRequest) CloneMessageVT() proto.Message

func (*AdHocProfilesUploadRequest) CloneVT

func (*AdHocProfilesUploadRequest) Descriptor deprecated

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

Deprecated: Use AdHocProfilesUploadRequest.ProtoReflect.Descriptor instead.

func (*AdHocProfilesUploadRequest) EqualMessageVT

func (this *AdHocProfilesUploadRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*AdHocProfilesUploadRequest) EqualVT

func (*AdHocProfilesUploadRequest) GetMaxNodes

func (x *AdHocProfilesUploadRequest) GetMaxNodes() int64

func (*AdHocProfilesUploadRequest) GetName

func (x *AdHocProfilesUploadRequest) GetName() string

func (*AdHocProfilesUploadRequest) GetProfile

func (x *AdHocProfilesUploadRequest) GetProfile() string

func (*AdHocProfilesUploadRequest) MarshalToSizedBufferVT

func (m *AdHocProfilesUploadRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AdHocProfilesUploadRequest) MarshalToVT

func (m *AdHocProfilesUploadRequest) MarshalToVT(dAtA []byte) (int, error)

func (*AdHocProfilesUploadRequest) MarshalVT

func (m *AdHocProfilesUploadRequest) MarshalVT() (dAtA []byte, err error)

func (*AdHocProfilesUploadRequest) ProtoMessage

func (*AdHocProfilesUploadRequest) ProtoMessage()

func (*AdHocProfilesUploadRequest) ProtoReflect

func (*AdHocProfilesUploadRequest) Reset

func (x *AdHocProfilesUploadRequest) Reset()

func (*AdHocProfilesUploadRequest) SizeVT

func (m *AdHocProfilesUploadRequest) SizeVT() (n int)

func (*AdHocProfilesUploadRequest) String

func (x *AdHocProfilesUploadRequest) String() string

func (*AdHocProfilesUploadRequest) UnmarshalVT

func (m *AdHocProfilesUploadRequest) UnmarshalVT(dAtA []byte) error

type UnimplementedAdHocProfileServiceServer

type UnimplementedAdHocProfileServiceServer struct {
}

UnimplementedAdHocProfileServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAdHocProfileServiceServer) Get

type UnsafeAdHocProfileServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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