Documentation ¶
Overview ¶
Package bundle contains internal code that corresponds to the public bundle package.
Index ¶
- Variables
- func RegisterFixtureServiceServer(s *grpc.Server, srv FixtureServiceServer)
- type FixtureServiceClient
- type FixtureServiceServer
- type FixtureService_RunFixtureClient
- type FixtureService_RunFixtureServer
- type RunFixtureConfig
- func (*RunFixtureConfig) Descriptor() ([]byte, []int)
- func (m *RunFixtureConfig) GetDataDir() string
- func (m *RunFixtureConfig) GetKeyDir() string
- func (m *RunFixtureConfig) GetKeyFile() string
- func (m *RunFixtureConfig) GetLocalBundleDir() string
- func (m *RunFixtureConfig) GetOutDir() string
- func (m *RunFixtureConfig) GetTarget() string
- func (m *RunFixtureConfig) GetTempDir() string
- func (m *RunFixtureConfig) GetTestVars() map[string]string
- func (*RunFixtureConfig) ProtoMessage()
- func (m *RunFixtureConfig) Reset()
- func (m *RunFixtureConfig) String() string
- func (m *RunFixtureConfig) XXX_DiscardUnknown()
- func (m *RunFixtureConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunFixtureConfig) XXX_Merge(src proto.Message)
- func (m *RunFixtureConfig) XXX_Size() int
- func (m *RunFixtureConfig) XXX_Unmarshal(b []byte) error
- type RunFixtureError
- func (*RunFixtureError) Descriptor() ([]byte, []int)
- func (m *RunFixtureError) GetFile() string
- func (m *RunFixtureError) GetLine() int32
- func (m *RunFixtureError) GetReason() string
- func (m *RunFixtureError) GetStack() string
- func (*RunFixtureError) ProtoMessage()
- func (m *RunFixtureError) Reset()
- func (m *RunFixtureError) String() string
- func (m *RunFixtureError) XXX_DiscardUnknown()
- func (m *RunFixtureError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunFixtureError) XXX_Merge(src proto.Message)
- func (m *RunFixtureError) XXX_Size() int
- func (m *RunFixtureError) XXX_Unmarshal(b []byte) error
- type RunFixtureRequest
- func (*RunFixtureRequest) Descriptor() ([]byte, []int)
- func (m *RunFixtureRequest) GetConfig() *RunFixtureConfig
- func (m *RunFixtureRequest) GetMethod() RunFixtureRequest_Method
- func (m *RunFixtureRequest) GetName() string
- func (*RunFixtureRequest) ProtoMessage()
- func (m *RunFixtureRequest) Reset()
- func (m *RunFixtureRequest) String() string
- func (m *RunFixtureRequest) XXX_DiscardUnknown()
- func (m *RunFixtureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunFixtureRequest) XXX_Merge(src proto.Message)
- func (m *RunFixtureRequest) XXX_Size() int
- func (m *RunFixtureRequest) XXX_Unmarshal(b []byte) error
- type RunFixtureRequest_Method
- type RunFixtureResponse
- func (*RunFixtureResponse) Descriptor() ([]byte, []int)
- func (m *RunFixtureResponse) GetControl() isRunFixtureResponse_Control
- func (m *RunFixtureResponse) GetError() *RunFixtureError
- func (m *RunFixtureResponse) GetLog() string
- func (m *RunFixtureResponse) GetTimestamp() *timestamp.Timestamp
- func (*RunFixtureResponse) ProtoMessage()
- func (m *RunFixtureResponse) Reset()
- func (m *RunFixtureResponse) String() string
- func (m *RunFixtureResponse) XXX_DiscardUnknown()
- func (m *RunFixtureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RunFixtureResponse) XXX_Merge(src proto.Message)
- func (*RunFixtureResponse) XXX_OneofWrappers() []interface{}
- func (m *RunFixtureResponse) XXX_Size() int
- func (m *RunFixtureResponse) XXX_Unmarshal(b []byte) error
- type RunFixtureResponse_Error
- type RunFixtureResponse_Log
- type UnimplementedFixtureServiceServer
Constants ¶
This section is empty.
Variables ¶
var RunFixtureRequest_Method_name = map[int32]string{
0: "SetUp",
1: "TearDown",
}
var RunFixtureRequest_Method_value = map[string]int32{
"SetUp": 0,
"TearDown": 1,
}
Functions ¶
func RegisterFixtureServiceServer ¶
func RegisterFixtureServiceServer(s *grpc.Server, srv FixtureServiceServer)
Types ¶
type FixtureServiceClient ¶
type FixtureServiceClient interface {
RunFixture(ctx context.Context, in *RunFixtureRequest, opts ...grpc.CallOption) (FixtureService_RunFixtureClient, 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.ClientConn) FixtureServiceClient
type FixtureServiceServer ¶
type FixtureServiceServer interface {
RunFixture(*RunFixtureRequest, FixtureService_RunFixtureServer) error
}
FixtureServiceServer is the server API for FixtureService service.
type FixtureService_RunFixtureClient ¶
type FixtureService_RunFixtureClient interface { Recv() (*RunFixtureResponse, error) grpc.ClientStream }
type FixtureService_RunFixtureServer ¶
type FixtureService_RunFixtureServer interface { Send(*RunFixtureResponse) error grpc.ServerStream }
type RunFixtureConfig ¶
type RunFixtureConfig struct { // TastVars contains names and values of runtime variables used to pass out-of-band data to // the fixture. TestVars map[string]string `` /* 173-byte string literal not displayed */ // DataDir is the path to the directory containing fixture data files. DataDir string `protobuf:"bytes,2,opt,name=data_dir,json=dataDir,proto3" json:"data_dir,omitempty"` // OutDir is the path to the base directory under which fixtures should write output files. OutDir string `protobuf:"bytes,3,opt,name=out_dir,json=outDir,proto3" json:"out_dir,omitempty"` // TempDir is the path to the directory under which temporary files for fixtures are written. TempDir string `protobuf:"bytes,4,opt,name=temp_dir,json=tempDir,proto3" json:"temp_dir,omitempty"` // Target is the DUT connection spec as [<user>@]host[:<port>]. Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` // KeyFile is the path to the SSH private key to use to connect to the DUT. KeyFile string `protobuf:"bytes,6,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"` // KeyDir is the directory containing SSH private keys (typically $HOME/.ssh). KeyDir string `protobuf:"bytes,7,opt,name=key_dir,json=keyDir,proto3" json:"key_dir,omitempty"` // LocalBundleDir is the directory on the DUT where local test bundle executables are // located. This path is used by remote fixture to invoke gRPC services in local test. LocalBundleDir string `protobuf:"bytes,8,opt,name=local_bundle_dir,json=localBundleDir,proto3" json:"local_bundle_dir,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RunFixtureConfig contains information the framework needs to run fixtures.
func (*RunFixtureConfig) Descriptor ¶
func (*RunFixtureConfig) Descriptor() ([]byte, []int)
func (*RunFixtureConfig) GetDataDir ¶
func (m *RunFixtureConfig) GetDataDir() string
func (*RunFixtureConfig) GetKeyDir ¶
func (m *RunFixtureConfig) GetKeyDir() string
func (*RunFixtureConfig) GetKeyFile ¶
func (m *RunFixtureConfig) GetKeyFile() string
func (*RunFixtureConfig) GetLocalBundleDir ¶
func (m *RunFixtureConfig) GetLocalBundleDir() string
func (*RunFixtureConfig) GetOutDir ¶
func (m *RunFixtureConfig) GetOutDir() string
func (*RunFixtureConfig) GetTarget ¶
func (m *RunFixtureConfig) GetTarget() string
func (*RunFixtureConfig) GetTempDir ¶
func (m *RunFixtureConfig) GetTempDir() string
func (*RunFixtureConfig) GetTestVars ¶
func (m *RunFixtureConfig) GetTestVars() map[string]string
func (*RunFixtureConfig) ProtoMessage ¶
func (*RunFixtureConfig) ProtoMessage()
func (*RunFixtureConfig) Reset ¶
func (m *RunFixtureConfig) Reset()
func (*RunFixtureConfig) String ¶
func (m *RunFixtureConfig) String() string
func (*RunFixtureConfig) XXX_DiscardUnknown ¶
func (m *RunFixtureConfig) XXX_DiscardUnknown()
func (*RunFixtureConfig) XXX_Marshal ¶
func (m *RunFixtureConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunFixtureConfig) XXX_Merge ¶
func (m *RunFixtureConfig) XXX_Merge(src proto.Message)
func (*RunFixtureConfig) XXX_Size ¶
func (m *RunFixtureConfig) XXX_Size() int
func (*RunFixtureConfig) XXX_Unmarshal ¶
func (m *RunFixtureConfig) XXX_Unmarshal(b []byte) error
type RunFixtureError ¶
type RunFixtureError struct { Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"` Stack string `protobuf:"bytes,4,opt,name=stack,proto3" json:"stack,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RunFixtureError describes an error encountered while running fixtures.
func (*RunFixtureError) Descriptor ¶
func (*RunFixtureError) Descriptor() ([]byte, []int)
func (*RunFixtureError) GetFile ¶
func (m *RunFixtureError) GetFile() string
func (*RunFixtureError) GetLine ¶
func (m *RunFixtureError) GetLine() int32
func (*RunFixtureError) GetReason ¶
func (m *RunFixtureError) GetReason() string
func (*RunFixtureError) GetStack ¶
func (m *RunFixtureError) GetStack() string
func (*RunFixtureError) ProtoMessage ¶
func (*RunFixtureError) ProtoMessage()
func (*RunFixtureError) Reset ¶
func (m *RunFixtureError) Reset()
func (*RunFixtureError) String ¶
func (m *RunFixtureError) String() string
func (*RunFixtureError) XXX_DiscardUnknown ¶
func (m *RunFixtureError) XXX_DiscardUnknown()
func (*RunFixtureError) XXX_Marshal ¶
func (m *RunFixtureError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunFixtureError) XXX_Merge ¶
func (m *RunFixtureError) XXX_Merge(src proto.Message)
func (*RunFixtureError) XXX_Size ¶
func (m *RunFixtureError) XXX_Size() int
func (*RunFixtureError) XXX_Unmarshal ¶
func (m *RunFixtureError) XXX_Unmarshal(b []byte) error
type RunFixtureRequest ¶
type RunFixtureRequest struct { // Name is the name of the fixture to run method. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Method is the method of the fixture to run. Method RunFixtureRequest_Method `protobuf:"varint,2,opt,name=method,proto3,enum=tast.core.RunFixtureRequest_Method" json:"method,omitempty"` // Config is the configuration the framework needs to run the fixture. Config *RunFixtureConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RunFixtureRequest is the request to RunFixture.
func (*RunFixtureRequest) Descriptor ¶
func (*RunFixtureRequest) Descriptor() ([]byte, []int)
func (*RunFixtureRequest) GetConfig ¶
func (m *RunFixtureRequest) GetConfig() *RunFixtureConfig
func (*RunFixtureRequest) GetMethod ¶
func (m *RunFixtureRequest) GetMethod() RunFixtureRequest_Method
func (*RunFixtureRequest) GetName ¶
func (m *RunFixtureRequest) GetName() string
func (*RunFixtureRequest) ProtoMessage ¶
func (*RunFixtureRequest) ProtoMessage()
func (*RunFixtureRequest) Reset ¶
func (m *RunFixtureRequest) Reset()
func (*RunFixtureRequest) String ¶
func (m *RunFixtureRequest) String() string
func (*RunFixtureRequest) XXX_DiscardUnknown ¶
func (m *RunFixtureRequest) XXX_DiscardUnknown()
func (*RunFixtureRequest) XXX_Marshal ¶
func (m *RunFixtureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunFixtureRequest) XXX_Merge ¶
func (m *RunFixtureRequest) XXX_Merge(src proto.Message)
func (*RunFixtureRequest) XXX_Size ¶
func (m *RunFixtureRequest) XXX_Size() int
func (*RunFixtureRequest) XXX_Unmarshal ¶
func (m *RunFixtureRequest) XXX_Unmarshal(b []byte) error
type RunFixtureRequest_Method ¶
type RunFixtureRequest_Method int32
const ( RunFixtureRequest_SetUp RunFixtureRequest_Method = 0 RunFixtureRequest_TearDown RunFixtureRequest_Method = 1 )
func (RunFixtureRequest_Method) EnumDescriptor ¶
func (RunFixtureRequest_Method) EnumDescriptor() ([]byte, []int)
func (RunFixtureRequest_Method) String ¶
func (x RunFixtureRequest_Method) String() string
type RunFixtureResponse ¶
type RunFixtureResponse struct { // Types that are valid to be assigned to Control: // *RunFixtureResponse_Log // *RunFixtureResponse_Error Control isRunFixtureResponse_Control `protobuf_oneof:"control"` // Timestamp is the timestamp of the event. Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RunFixtureResponse is the control message the server streams to the caller.
func (*RunFixtureResponse) Descriptor ¶
func (*RunFixtureResponse) Descriptor() ([]byte, []int)
func (*RunFixtureResponse) GetControl ¶
func (m *RunFixtureResponse) GetControl() isRunFixtureResponse_Control
func (*RunFixtureResponse) GetError ¶
func (m *RunFixtureResponse) GetError() *RunFixtureError
func (*RunFixtureResponse) GetLog ¶
func (m *RunFixtureResponse) GetLog() string
func (*RunFixtureResponse) GetTimestamp ¶
func (m *RunFixtureResponse) GetTimestamp() *timestamp.Timestamp
func (*RunFixtureResponse) ProtoMessage ¶
func (*RunFixtureResponse) ProtoMessage()
func (*RunFixtureResponse) Reset ¶
func (m *RunFixtureResponse) Reset()
func (*RunFixtureResponse) String ¶
func (m *RunFixtureResponse) String() string
func (*RunFixtureResponse) XXX_DiscardUnknown ¶
func (m *RunFixtureResponse) XXX_DiscardUnknown()
func (*RunFixtureResponse) XXX_Marshal ¶
func (m *RunFixtureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RunFixtureResponse) XXX_Merge ¶
func (m *RunFixtureResponse) XXX_Merge(src proto.Message)
func (*RunFixtureResponse) XXX_OneofWrappers ¶
func (*RunFixtureResponse) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RunFixtureResponse) XXX_Size ¶
func (m *RunFixtureResponse) XXX_Size() int
func (*RunFixtureResponse) XXX_Unmarshal ¶
func (m *RunFixtureResponse) XXX_Unmarshal(b []byte) error
type RunFixtureResponse_Error ¶
type RunFixtureResponse_Error struct {
Error *RunFixtureError `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}
type RunFixtureResponse_Log ¶
type RunFixtureResponse_Log struct {
Log string `protobuf:"bytes,1,opt,name=log,proto3,oneof"`
}
type UnimplementedFixtureServiceServer ¶
type UnimplementedFixtureServiceServer struct { }
UnimplementedFixtureServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedFixtureServiceServer) RunFixture ¶
func (*UnimplementedFixtureServiceServer) RunFixture(req *RunFixtureRequest, srv FixtureService_RunFixtureServer) error