crash

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetUpCrashTestRequest_ConsentType_name = map[int32]string{
		0: "MOCK_CONSENT",
		1: "REAL_CONSENT",
	}
	SetUpCrashTestRequest_ConsentType_value = map[string]int32{
		"MOCK_CONSENT": 0,
		"REAL_CONSENT": 1,
	}
)

Enum value maps for SetUpCrashTestRequest_ConsentType.

View Source
var File_fixture_service_proto protoreflect.FileDescriptor

Functions

func RegisterFixtureServiceServer

func RegisterFixtureServiceServer(s *grpc.Server, srv FixtureServiceServer)

Types

type EnableCrashFilterRequest

type EnableCrashFilterRequest struct {

	// Name of the program to be handled by crash_reporter.
	// There are two special cases:
	// An empty string means all crashes should be handled. Equivalent to DisableCrashFilter.
	// A string "none" means no crashes should be handled at all regardless of process name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*EnableCrashFilterRequest) Descriptor deprecated

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

Deprecated: Use EnableCrashFilterRequest.ProtoReflect.Descriptor instead.

func (*EnableCrashFilterRequest) GetName

func (x *EnableCrashFilterRequest) GetName() string

func (*EnableCrashFilterRequest) ProtoMessage

func (*EnableCrashFilterRequest) ProtoMessage()

func (*EnableCrashFilterRequest) ProtoReflect

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

func (*EnableCrashFilterRequest) Reset

func (x *EnableCrashFilterRequest) Reset()

func (*EnableCrashFilterRequest) String

func (x *EnableCrashFilterRequest) String() string

type FixtureServiceClient

type FixtureServiceClient interface {
	// SetUp sets up the DUT for a crash test.
	// For more details on what, precisely, it does, see documentation for
	// "SetUpCrashTest" in the local/crash tast library.
	// After the test is complete, you must call TearDown to clean up the
	// associated resources.
	SetUp(ctx context.Context, in *SetUpCrashTestRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// EnableCrashFilter sets crash_reporter filter by process name.
	EnableCrashFilter(ctx context.Context, in *EnableCrashFilterRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// DisableCrashFilter disables crash_reporter filter.
	DisableCrashFilter(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// WaitForCrashFiles waits for the crash boot collector to finish, and then
	// for the specified crash files to be present.
	// See crash.go's WaitForCrashFiles for interface details.
	WaitForCrashFiles(ctx context.Context, in *WaitForCrashFilesRequest, opts ...grpc.CallOption) (*WaitForCrashFilesResponse, error)
	// RemoveAllFiles removes all files in the request.
	RemoveAllFiles(ctx context.Context, in *RemoveAllFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// SetConsent sets consent as specified in the request.
	SetConsent(ctx context.Context, in *SetConsentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// TearDown undoes the actions SetUp does and resets the machine to normal
	// state.
	TearDown(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

FixtureServiceClient is the client API for FixtureService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type FixtureServiceServer

type FixtureServiceServer interface {
	// SetUp sets up the DUT for a crash test.
	// For more details on what, precisely, it does, see documentation for
	// "SetUpCrashTest" in the local/crash tast library.
	// After the test is complete, you must call TearDown to clean up the
	// associated resources.
	SetUp(context.Context, *SetUpCrashTestRequest) (*empty.Empty, error)
	// EnableCrashFilter sets crash_reporter filter by process name.
	EnableCrashFilter(context.Context, *EnableCrashFilterRequest) (*empty.Empty, error)
	// DisableCrashFilter disables crash_reporter filter.
	DisableCrashFilter(context.Context, *empty.Empty) (*empty.Empty, error)
	// WaitForCrashFiles waits for the crash boot collector to finish, and then
	// for the specified crash files to be present.
	// See crash.go's WaitForCrashFiles for interface details.
	WaitForCrashFiles(context.Context, *WaitForCrashFilesRequest) (*WaitForCrashFilesResponse, error)
	// RemoveAllFiles removes all files in the request.
	RemoveAllFiles(context.Context, *RemoveAllFilesRequest) (*empty.Empty, error)
	// SetConsent sets consent as specified in the request.
	SetConsent(context.Context, *SetConsentRequest) (*empty.Empty, error)
	// TearDown undoes the actions SetUp does and resets the machine to normal
	// state.
	TearDown(context.Context, *empty.Empty) (*empty.Empty, error)
}

FixtureServiceServer is the server API for FixtureService service.

type RegexMatch

type RegexMatch struct {
	Regex string   `protobuf:"bytes,1,opt,name=regex,proto3" json:"regex,omitempty"`
	Files []string `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*RegexMatch) Descriptor deprecated

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

Deprecated: Use RegexMatch.ProtoReflect.Descriptor instead.

func (*RegexMatch) GetFiles

func (x *RegexMatch) GetFiles() []string

func (*RegexMatch) GetRegex

func (x *RegexMatch) GetRegex() string

func (*RegexMatch) ProtoMessage

func (*RegexMatch) ProtoMessage()

func (*RegexMatch) ProtoReflect

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

func (*RegexMatch) Reset

func (x *RegexMatch) Reset()

func (*RegexMatch) String

func (x *RegexMatch) String() string

type RemoveAllFilesRequest

type RemoveAllFilesRequest struct {
	Matches []*RegexMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveAllFilesRequest) Descriptor deprecated

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

Deprecated: Use RemoveAllFilesRequest.ProtoReflect.Descriptor instead.

func (*RemoveAllFilesRequest) GetMatches

func (x *RemoveAllFilesRequest) GetMatches() []*RegexMatch

func (*RemoveAllFilesRequest) ProtoMessage

func (*RemoveAllFilesRequest) ProtoMessage()

func (*RemoveAllFilesRequest) ProtoReflect

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

func (*RemoveAllFilesRequest) Reset

func (x *RemoveAllFilesRequest) Reset()

func (*RemoveAllFilesRequest) String

func (x *RemoveAllFilesRequest) String() string

type SetConsentRequest

type SetConsentRequest struct {
	Consent bool `protobuf:"varint,1,opt,name=consent,proto3" json:"consent,omitempty"`
	// contains filtered or unexported fields
}

func (*SetConsentRequest) Descriptor deprecated

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

Deprecated: Use SetConsentRequest.ProtoReflect.Descriptor instead.

func (*SetConsentRequest) GetConsent

func (x *SetConsentRequest) GetConsent() bool

func (*SetConsentRequest) ProtoMessage

func (*SetConsentRequest) ProtoMessage()

func (*SetConsentRequest) ProtoReflect

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

func (*SetConsentRequest) Reset

func (x *SetConsentRequest) Reset()

func (*SetConsentRequest) String

func (x *SetConsentRequest) String() string

type SetUpCrashTestRequest

type SetUpCrashTestRequest struct {
	Consent SetUpCrashTestRequest_ConsentType `protobuf:"varint,1,opt,name=consent,proto3,enum=tast.cros.crash.SetUpCrashTestRequest_ConsentType" json:"consent,omitempty"`
	// contains filtered or unexported fields
}

func (*SetUpCrashTestRequest) Descriptor deprecated

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

Deprecated: Use SetUpCrashTestRequest.ProtoReflect.Descriptor instead.

func (*SetUpCrashTestRequest) GetConsent

func (*SetUpCrashTestRequest) ProtoMessage

func (*SetUpCrashTestRequest) ProtoMessage()

func (*SetUpCrashTestRequest) ProtoReflect

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

func (*SetUpCrashTestRequest) Reset

func (x *SetUpCrashTestRequest) Reset()

func (*SetUpCrashTestRequest) String

func (x *SetUpCrashTestRequest) String() string

type SetUpCrashTestRequest_ConsentType

type SetUpCrashTestRequest_ConsentType int32
const (
	SetUpCrashTestRequest_MOCK_CONSENT SetUpCrashTestRequest_ConsentType = 0
	SetUpCrashTestRequest_REAL_CONSENT SetUpCrashTestRequest_ConsentType = 1
)

func (SetUpCrashTestRequest_ConsentType) Descriptor

func (SetUpCrashTestRequest_ConsentType) Enum

func (SetUpCrashTestRequest_ConsentType) EnumDescriptor deprecated

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

Deprecated: Use SetUpCrashTestRequest_ConsentType.Descriptor instead.

func (SetUpCrashTestRequest_ConsentType) Number

func (SetUpCrashTestRequest_ConsentType) String

func (SetUpCrashTestRequest_ConsentType) Type

type UnimplementedFixtureServiceServer

type UnimplementedFixtureServiceServer struct {
}

UnimplementedFixtureServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFixtureServiceServer) DisableCrashFilter

func (*UnimplementedFixtureServiceServer) EnableCrashFilter

func (*UnimplementedFixtureServiceServer) RemoveAllFiles

func (*UnimplementedFixtureServiceServer) SetConsent

func (*UnimplementedFixtureServiceServer) SetUp

func (*UnimplementedFixtureServiceServer) TearDown

func (*UnimplementedFixtureServiceServer) WaitForCrashFiles

type WaitForCrashFilesRequest

type WaitForCrashFilesRequest struct {
	Dirs    []string `protobuf:"bytes,1,rep,name=dirs,proto3" json:"dirs,omitempty"`
	Regexes []string `protobuf:"bytes,2,rep,name=regexes,proto3" json:"regexes,omitempty"`
	// contains filtered or unexported fields
}

This deliberately does NOT use the "oldFiles" parameter in WaitForCrashFiles because that is redundant with SetUp's function of moving crashes to a temporary stash directory (and will eventually be removed).

func (*WaitForCrashFilesRequest) Descriptor deprecated

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

Deprecated: Use WaitForCrashFilesRequest.ProtoReflect.Descriptor instead.

func (*WaitForCrashFilesRequest) GetDirs

func (x *WaitForCrashFilesRequest) GetDirs() []string

func (*WaitForCrashFilesRequest) GetRegexes

func (x *WaitForCrashFilesRequest) GetRegexes() []string

func (*WaitForCrashFilesRequest) ProtoMessage

func (*WaitForCrashFilesRequest) ProtoMessage()

func (*WaitForCrashFilesRequest) ProtoReflect

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

func (*WaitForCrashFilesRequest) Reset

func (x *WaitForCrashFilesRequest) Reset()

func (*WaitForCrashFilesRequest) String

func (x *WaitForCrashFilesRequest) String() string

type WaitForCrashFilesResponse

type WaitForCrashFilesResponse struct {
	Matches []*RegexMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	// contains filtered or unexported fields
}

func (*WaitForCrashFilesResponse) Descriptor deprecated

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

Deprecated: Use WaitForCrashFilesResponse.ProtoReflect.Descriptor instead.

func (*WaitForCrashFilesResponse) GetMatches

func (x *WaitForCrashFilesResponse) GetMatches() []*RegexMatch

func (*WaitForCrashFilesResponse) ProtoMessage

func (*WaitForCrashFilesResponse) ProtoMessage()

func (*WaitForCrashFilesResponse) ProtoReflect

func (*WaitForCrashFilesResponse) Reset

func (x *WaitForCrashFilesResponse) Reset()

func (*WaitForCrashFilesResponse) String

func (x *WaitForCrashFilesResponse) String() string

Jump to

Keyboard shortcuts

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