factory

package
v0.0.0-...-683b059 Latest Latest
Warning

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

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

Documentation

Overview

Package factory provides gRPC service definitions for factory tests.

Index

Constants

This section is empty.

Variables

View Source
var File_toolkit_proto protoreflect.FileDescriptor

Functions

func RegisterToolkitServer

func RegisterToolkitServer(s *grpc.Server, srv ToolkitServer)

Types

type InstallRequest

type InstallRequest struct {

	// --no-enable option in toolkit installer, do not enable factory tests after
	// installing.
	NoEnable bool `protobuf:"varint,1,opt,name=no_enable,json=noEnable,proto3" json:"no_enable,omitempty"`
	// contains filtered or unexported fields
}

func (*InstallRequest) Descriptor deprecated

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

Deprecated: Use InstallRequest.ProtoReflect.Descriptor instead.

func (*InstallRequest) GetNoEnable

func (x *InstallRequest) GetNoEnable() bool

func (*InstallRequest) ProtoMessage

func (*InstallRequest) ProtoMessage()

func (*InstallRequest) ProtoReflect

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

func (*InstallRequest) Reset

func (x *InstallRequest) Reset()

func (*InstallRequest) String

func (x *InstallRequest) String() string

type InstallResponse

type InstallResponse struct {

	// Version installed of the toolkit.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*InstallResponse) Descriptor deprecated

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

Deprecated: Use InstallResponse.ProtoReflect.Descriptor instead.

func (*InstallResponse) GetVersion

func (x *InstallResponse) GetVersion() string

func (*InstallResponse) ProtoMessage

func (*InstallResponse) ProtoMessage()

func (*InstallResponse) ProtoReflect

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

func (*InstallResponse) Reset

func (x *InstallResponse) Reset()

func (*InstallResponse) String

func (x *InstallResponse) String() string

type ToolkitClient

type ToolkitClient interface {
	// Install instructs DUT to perform install command with the installer on DUT.
	Install(ctx context.Context, in *InstallRequest, opts ...grpc.CallOption) (*InstallResponse, error)
	// Uninstall instructs DUT to perform uninstall command.
	Uninstall(ctx context.Context, in *UninstallRequest, opts ...grpc.CallOption) (*UninstallResponse, error)
}

ToolkitClient is the client API for Toolkit service.

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

func NewToolkitClient

func NewToolkitClient(cc grpc.ClientConnInterface) ToolkitClient

type ToolkitServer

type ToolkitServer interface {
	// Install instructs DUT to perform install command with the installer on DUT.
	Install(context.Context, *InstallRequest) (*InstallResponse, error)
	// Uninstall instructs DUT to perform uninstall command.
	Uninstall(context.Context, *UninstallRequest) (*UninstallResponse, error)
}

ToolkitServer is the server API for Toolkit service.

type UnimplementedToolkitServer

type UnimplementedToolkitServer struct {
}

UnimplementedToolkitServer can be embedded to have forward compatible implementations.

func (*UnimplementedToolkitServer) Install

func (*UnimplementedToolkitServer) Uninstall

type UninstallRequest

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

func (*UninstallRequest) Descriptor deprecated

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

Deprecated: Use UninstallRequest.ProtoReflect.Descriptor instead.

func (*UninstallRequest) ProtoMessage

func (*UninstallRequest) ProtoMessage()

func (*UninstallRequest) ProtoReflect

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

func (*UninstallRequest) Reset

func (x *UninstallRequest) Reset()

func (*UninstallRequest) String

func (x *UninstallRequest) String() string

type UninstallResponse

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

func (*UninstallResponse) Descriptor deprecated

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

Deprecated: Use UninstallResponse.ProtoReflect.Descriptor instead.

func (*UninstallResponse) ProtoMessage

func (*UninstallResponse) ProtoMessage()

func (*UninstallResponse) ProtoReflect

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

func (*UninstallResponse) Reset

func (x *UninstallResponse) Reset()

func (*UninstallResponse) String

func (x *UninstallResponse) String() string

Jump to

Keyboard shortcuts

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