Documentation ¶
Index ¶
- Variables
- func RegisterFixtureServiceServer(s *grpc.Server, srv FixtureServiceServer)
- type EnableCrashFilterRequest
- func (*EnableCrashFilterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableCrashFilterRequest) GetName() string
- func (*EnableCrashFilterRequest) ProtoMessage()
- func (x *EnableCrashFilterRequest) ProtoReflect() protoreflect.Message
- func (x *EnableCrashFilterRequest) Reset()
- func (x *EnableCrashFilterRequest) String() string
- type FixtureServiceClient
- type FixtureServiceServer
- type RegexMatch
- type RemoveAllFilesRequest
- func (*RemoveAllFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveAllFilesRequest) GetMatches() []*RegexMatch
- func (*RemoveAllFilesRequest) ProtoMessage()
- func (x *RemoveAllFilesRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveAllFilesRequest) Reset()
- func (x *RemoveAllFilesRequest) String() string
- type SetConsentRequest
- type SetUpCrashTestRequest
- func (*SetUpCrashTestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetUpCrashTestRequest) GetConsent() SetUpCrashTestRequest_ConsentType
- func (*SetUpCrashTestRequest) ProtoMessage()
- func (x *SetUpCrashTestRequest) ProtoReflect() protoreflect.Message
- func (x *SetUpCrashTestRequest) Reset()
- func (x *SetUpCrashTestRequest) String() string
- type SetUpCrashTestRequest_ConsentType
- func (SetUpCrashTestRequest_ConsentType) Descriptor() protoreflect.EnumDescriptor
- func (x SetUpCrashTestRequest_ConsentType) Enum() *SetUpCrashTestRequest_ConsentType
- func (SetUpCrashTestRequest_ConsentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetUpCrashTestRequest_ConsentType) Number() protoreflect.EnumNumber
- func (x SetUpCrashTestRequest_ConsentType) String() string
- func (SetUpCrashTestRequest_ConsentType) Type() protoreflect.EnumType
- type UnimplementedFixtureServiceServer
- func (*UnimplementedFixtureServiceServer) DisableCrashFilter(context.Context, *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedFixtureServiceServer) EnableCrashFilter(context.Context, *EnableCrashFilterRequest) (*empty.Empty, error)
- func (*UnimplementedFixtureServiceServer) RemoveAllFiles(context.Context, *RemoveAllFilesRequest) (*empty.Empty, error)
- func (*UnimplementedFixtureServiceServer) SetConsent(context.Context, *SetConsentRequest) (*empty.Empty, error)
- func (*UnimplementedFixtureServiceServer) SetUp(context.Context, *SetUpCrashTestRequest) (*empty.Empty, error)
- func (*UnimplementedFixtureServiceServer) TearDown(context.Context, *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedFixtureServiceServer) WaitForCrashFiles(context.Context, *WaitForCrashFilesRequest) (*WaitForCrashFilesResponse, error)
- type WaitForCrashFilesRequest
- func (*WaitForCrashFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WaitForCrashFilesRequest) GetDirs() []string
- func (x *WaitForCrashFilesRequest) GetRegexes() []string
- func (*WaitForCrashFilesRequest) ProtoMessage()
- func (x *WaitForCrashFilesRequest) ProtoReflect() protoreflect.Message
- func (x *WaitForCrashFilesRequest) Reset()
- func (x *WaitForCrashFilesRequest) String() string
- type WaitForCrashFilesResponse
- func (*WaitForCrashFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WaitForCrashFilesResponse) GetMatches() []*RegexMatch
- func (*WaitForCrashFilesResponse) ProtoMessage()
- func (x *WaitForCrashFilesResponse) ProtoReflect() protoreflect.Message
- func (x *WaitForCrashFilesResponse) Reset()
- func (x *WaitForCrashFilesResponse) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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.
func NewFixtureServiceClient ¶
func NewFixtureServiceClient(cc grpc.ClientConnInterface) FixtureServiceClient
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 (x *SetUpCrashTestRequest) GetConsent() SetUpCrashTestRequest_ConsentType
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) Descriptor() protoreflect.EnumDescriptor
func (SetUpCrashTestRequest_ConsentType) Enum ¶
func (x SetUpCrashTestRequest_ConsentType) Enum() *SetUpCrashTestRequest_ConsentType
func (SetUpCrashTestRequest_ConsentType) EnumDescriptor
deprecated
func (SetUpCrashTestRequest_ConsentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetUpCrashTestRequest_ConsentType.Descriptor instead.
func (SetUpCrashTestRequest_ConsentType) Number ¶
func (x SetUpCrashTestRequest_ConsentType) Number() protoreflect.EnumNumber
func (SetUpCrashTestRequest_ConsentType) String ¶
func (x SetUpCrashTestRequest_ConsentType) String() string
func (SetUpCrashTestRequest_ConsentType) Type ¶
func (SetUpCrashTestRequest_ConsentType) Type() protoreflect.EnumType
type UnimplementedFixtureServiceServer ¶
type UnimplementedFixtureServiceServer struct { }
UnimplementedFixtureServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedFixtureServiceServer) DisableCrashFilter ¶
func (*UnimplementedFixtureServiceServer) EnableCrashFilter ¶
func (*UnimplementedFixtureServiceServer) EnableCrashFilter(context.Context, *EnableCrashFilterRequest) (*empty.Empty, error)
func (*UnimplementedFixtureServiceServer) RemoveAllFiles ¶
func (*UnimplementedFixtureServiceServer) RemoveAllFiles(context.Context, *RemoveAllFilesRequest) (*empty.Empty, error)
func (*UnimplementedFixtureServiceServer) SetConsent ¶
func (*UnimplementedFixtureServiceServer) SetConsent(context.Context, *SetConsentRequest) (*empty.Empty, error)
func (*UnimplementedFixtureServiceServer) SetUp ¶
func (*UnimplementedFixtureServiceServer) SetUp(context.Context, *SetUpCrashTestRequest) (*empty.Empty, error)
func (*UnimplementedFixtureServiceServer) WaitForCrashFiles ¶
func (*UnimplementedFixtureServiceServer) WaitForCrashFiles(context.Context, *WaitForCrashFilesRequest) (*WaitForCrashFilesResponse, error)
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 (x *WaitForCrashFilesResponse) ProtoReflect() protoreflect.Message
func (*WaitForCrashFilesResponse) Reset ¶
func (x *WaitForCrashFilesResponse) Reset()
func (*WaitForCrashFilesResponse) String ¶
func (x *WaitForCrashFilesResponse) String() string