proto: go.chromium.org/chromiumos/infra/proto/go/tls Index | Files

package tls

import "go.chromium.org/chromiumos/infra/proto/go/tls"

Index

Package Files

common.pb.go wiring.pb.go

Variables

var CacheForDutResponse_Status_name = map[int32]string{
    0:  "STATUS_UNKNOWN",
    1:  "STATUS_OK",
    2:  "STATUS_CONTINUE",
    3:  "STATUS_NOT_FOUND",
    4:  "STATUS_TIMEOUT",
}
var CacheForDutResponse_Status_value = map[string]int32{
    "STATUS_UNKNOWN":   0,
    "STATUS_OK":        1,
    "STATUS_CONTINUE":  2,
    "STATUS_NOT_FOUND": 3,
    "STATUS_TIMEOUT":   4,
}
var CallServoXmlRpcResponse_Status_name = map[int32]string{
    0:  "STATUS_UNKNOWN",
    1:  "STATUS_OK",
    2:  "STATUS_BAD_DUT",
    3:  "STATUS_NO_METHOD",
    4:  "STATUS_NO_SERVO",
    5:  "STATUS_SERVO_ERROR",
}
var CallServoXmlRpcResponse_Status_value = map[string]int32{
    "STATUS_UNKNOWN":     0,
    "STATUS_OK":          1,
    "STATUS_BAD_DUT":     2,
    "STATUS_NO_METHOD":   3,
    "STATUS_NO_SERVO":    4,
    "STATUS_SERVO_ERROR": 5,
}
var OpenDutPortResponse_Status_name = map[int32]string{
    0:  "STATUS_UNKNOWN",
    1:  "STATUS_OK",
    2:  "STATUS_BAD_DUT",
    3:  "STATUS_DUT_UNREACHABLE",
}
var OpenDutPortResponse_Status_value = map[string]int32{
    "STATUS_UNKNOWN":         0,
    "STATUS_OK":              1,
    "STATUS_BAD_DUT":         2,
    "STATUS_DUT_UNREACHABLE": 3,
}
var SetDutPowerSupplyRequest_State_name = map[int32]string{
    0:  "STATE_UNKNOWN",
    1:  "STATE_ON",
    2:  "STATE_OFF",
}
var SetDutPowerSupplyRequest_State_value = map[string]int32{
    "STATE_UNKNOWN": 0,
    "STATE_ON":      1,
    "STATE_OFF":     2,
}
var SetDutPowerSupplyResponse_Status_name = map[int32]string{
    0:  "STATUS_UNKNOWN",
    1:  "STATUS_OK",
    2:  "STATUS_BAD_DUT",
    3:  "STATUS_BAD_REQUEST",
    4:  "STATUS_NO_RPM",
    5:  "STATUS_RPM_ERROR",
}
var SetDutPowerSupplyResponse_Status_value = map[string]int32{
    "STATUS_UNKNOWN":     0,
    "STATUS_OK":          1,
    "STATUS_BAD_DUT":     2,
    "STATUS_BAD_REQUEST": 3,
    "STATUS_NO_RPM":      4,
    "STATUS_RPM_ERROR":   5,
}

func RegisterCommonServer Uses

func RegisterCommonServer(s *grpc.Server, srv CommonServer)

func RegisterWiringServer Uses

func RegisterWiringServer(s *grpc.Server, srv WiringServer)

type CacheForDutRequest Uses

type CacheForDutRequest struct {
    // url identifies the resource to cache.
    // Only http, https, and gs are supported.
    Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CacheForDutRequest) Descriptor Uses

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

func (*CacheForDutRequest) GetUrl Uses

func (m *CacheForDutRequest) GetUrl() string

func (*CacheForDutRequest) ProtoMessage Uses

func (*CacheForDutRequest) ProtoMessage()

func (*CacheForDutRequest) Reset Uses

func (m *CacheForDutRequest) Reset()

func (*CacheForDutRequest) String Uses

func (m *CacheForDutRequest) String() string

func (*CacheForDutRequest) XXX_DiscardUnknown Uses

func (m *CacheForDutRequest) XXX_DiscardUnknown()

func (*CacheForDutRequest) XXX_Marshal Uses

func (m *CacheForDutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheForDutRequest) XXX_Merge Uses

func (m *CacheForDutRequest) XXX_Merge(src proto.Message)

func (*CacheForDutRequest) XXX_Size Uses

func (m *CacheForDutRequest) XXX_Size() int

func (*CacheForDutRequest) XXX_Unmarshal Uses

func (m *CacheForDutRequest) XXX_Unmarshal(b []byte) error

type CacheForDutResponse Uses

type CacheForDutResponse struct {
    Status CacheForDutResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=tls.CacheForDutResponse_Status" json:"status,omitempty"`
    // url is where the resource is cached at.
    // This should be accessible to the DUT.
    // If the host is a name, it should be resolveable by the DUT via
    // standard name resolution facilities.
    Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
    // reason provides human friendly context for any error status.
    Reason               string   `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CacheForDutResponse) Descriptor Uses

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

func (*CacheForDutResponse) GetReason Uses

func (m *CacheForDutResponse) GetReason() string

func (*CacheForDutResponse) GetStatus Uses

func (m *CacheForDutResponse) GetStatus() CacheForDutResponse_Status

func (*CacheForDutResponse) GetUrl Uses

func (m *CacheForDutResponse) GetUrl() string

func (*CacheForDutResponse) ProtoMessage Uses

func (*CacheForDutResponse) ProtoMessage()

func (*CacheForDutResponse) Reset Uses

func (m *CacheForDutResponse) Reset()

func (*CacheForDutResponse) String Uses

func (m *CacheForDutResponse) String() string

func (*CacheForDutResponse) XXX_DiscardUnknown Uses

func (m *CacheForDutResponse) XXX_DiscardUnknown()

func (*CacheForDutResponse) XXX_Marshal Uses

func (m *CacheForDutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheForDutResponse) XXX_Merge Uses

func (m *CacheForDutResponse) XXX_Merge(src proto.Message)

func (*CacheForDutResponse) XXX_Size Uses

func (m *CacheForDutResponse) XXX_Size() int

func (*CacheForDutResponse) XXX_Unmarshal Uses

func (m *CacheForDutResponse) XXX_Unmarshal(b []byte) error

type CacheForDutResponse_Status Uses

type CacheForDutResponse_Status int32
const (
    CacheForDutResponse_STATUS_UNKNOWN   CacheForDutResponse_Status = 0
    CacheForDutResponse_STATUS_OK        CacheForDutResponse_Status = 1
    CacheForDutResponse_STATUS_CONTINUE  CacheForDutResponse_Status = 2
    CacheForDutResponse_STATUS_NOT_FOUND CacheForDutResponse_Status = 3
    CacheForDutResponse_STATUS_TIMEOUT   CacheForDutResponse_Status = 4
)

func (CacheForDutResponse_Status) EnumDescriptor Uses

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

func (CacheForDutResponse_Status) String Uses

func (x CacheForDutResponse_Status) String() string

type CallServoXmlRpcRequest Uses

type CallServoXmlRpcRequest struct {
    Dut                  string          `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
    Method               string          `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
    Args                 []*xmlrpc.Value `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

func (*CallServoXmlRpcRequest) Descriptor Uses

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

func (*CallServoXmlRpcRequest) GetArgs Uses

func (m *CallServoXmlRpcRequest) GetArgs() []*xmlrpc.Value

func (*CallServoXmlRpcRequest) GetDut Uses

func (m *CallServoXmlRpcRequest) GetDut() string

func (*CallServoXmlRpcRequest) GetMethod Uses

func (m *CallServoXmlRpcRequest) GetMethod() string

func (*CallServoXmlRpcRequest) ProtoMessage Uses

func (*CallServoXmlRpcRequest) ProtoMessage()

func (*CallServoXmlRpcRequest) Reset Uses

func (m *CallServoXmlRpcRequest) Reset()

func (*CallServoXmlRpcRequest) String Uses

func (m *CallServoXmlRpcRequest) String() string

func (*CallServoXmlRpcRequest) XXX_DiscardUnknown Uses

func (m *CallServoXmlRpcRequest) XXX_DiscardUnknown()

func (*CallServoXmlRpcRequest) XXX_Marshal Uses

func (m *CallServoXmlRpcRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CallServoXmlRpcRequest) XXX_Merge Uses

func (m *CallServoXmlRpcRequest) XXX_Merge(src proto.Message)

func (*CallServoXmlRpcRequest) XXX_Size Uses

func (m *CallServoXmlRpcRequest) XXX_Size() int

func (*CallServoXmlRpcRequest) XXX_Unmarshal Uses

func (m *CallServoXmlRpcRequest) XXX_Unmarshal(b []byte) error

type CallServoXmlRpcResponse Uses

type CallServoXmlRpcResponse struct {
    Status CallServoXmlRpcResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=tls.CallServoXmlRpcResponse_Status" json:"status,omitempty"`
    Value  *xmlrpc.Value                  `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // fault indicates that the servo XML-RPC returned a fault.
    // The fault value is stored in the value field.
    Fault                bool     `protobuf:"varint,3,opt,name=fault,proto3" json:"fault,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CallServoXmlRpcResponse) Descriptor Uses

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

func (*CallServoXmlRpcResponse) GetFault Uses

func (m *CallServoXmlRpcResponse) GetFault() bool

func (*CallServoXmlRpcResponse) GetStatus Uses

func (m *CallServoXmlRpcResponse) GetStatus() CallServoXmlRpcResponse_Status

func (*CallServoXmlRpcResponse) GetValue Uses

func (m *CallServoXmlRpcResponse) GetValue() *xmlrpc.Value

func (*CallServoXmlRpcResponse) ProtoMessage Uses

func (*CallServoXmlRpcResponse) ProtoMessage()

func (*CallServoXmlRpcResponse) Reset Uses

func (m *CallServoXmlRpcResponse) Reset()

func (*CallServoXmlRpcResponse) String Uses

func (m *CallServoXmlRpcResponse) String() string

func (*CallServoXmlRpcResponse) XXX_DiscardUnknown Uses

func (m *CallServoXmlRpcResponse) XXX_DiscardUnknown()

func (*CallServoXmlRpcResponse) XXX_Marshal Uses

func (m *CallServoXmlRpcResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CallServoXmlRpcResponse) XXX_Merge Uses

func (m *CallServoXmlRpcResponse) XXX_Merge(src proto.Message)

func (*CallServoXmlRpcResponse) XXX_Size Uses

func (m *CallServoXmlRpcResponse) XXX_Size() int

func (*CallServoXmlRpcResponse) XXX_Unmarshal Uses

func (m *CallServoXmlRpcResponse) XXX_Unmarshal(b []byte) error

type CallServoXmlRpcResponse_Status Uses

type CallServoXmlRpcResponse_Status int32
const (
    CallServoXmlRpcResponse_STATUS_UNKNOWN CallServoXmlRpcResponse_Status = 0
    CallServoXmlRpcResponse_STATUS_OK      CallServoXmlRpcResponse_Status = 1
    // STATUS_BAD_DUT indicates that the DUT is not known,
    // or the caller does not have access to it.
    CallServoXmlRpcResponse_STATUS_BAD_DUT CallServoXmlRpcResponse_Status = 2
    // STATUS_NO_METHOD indicates that the requested method does not
    // exist.
    CallServoXmlRpcResponse_STATUS_NO_METHOD   CallServoXmlRpcResponse_Status = 3
    CallServoXmlRpcResponse_STATUS_NO_SERVO    CallServoXmlRpcResponse_Status = 4
    CallServoXmlRpcResponse_STATUS_SERVO_ERROR CallServoXmlRpcResponse_Status = 5
)

func (CallServoXmlRpcResponse_Status) EnumDescriptor Uses

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

func (CallServoXmlRpcResponse_Status) String Uses

func (x CallServoXmlRpcResponse_Status) String() string

type CommonClient Uses

type CommonClient interface {
    // Runs a shell command with the default shell.
    // Does not spawn a tty.
    DutShell(ctx context.Context, in *DutShellRequest, opts ...grpc.CallOption) (Common_DutShellClient, error)
}

CommonClient is the client API for Common service.

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

func NewCommonClient Uses

func NewCommonClient(cc *grpc.ClientConn) CommonClient

type CommonServer Uses

type CommonServer interface {
    // Runs a shell command with the default shell.
    // Does not spawn a tty.
    DutShell(*DutShellRequest, Common_DutShellServer) error
}

CommonServer is the server API for Common service.

type Common_DutShellClient Uses

type Common_DutShellClient interface {
    Recv() (*DutShellResponse, error)
    grpc.ClientStream
}

type Common_DutShellServer Uses

type Common_DutShellServer interface {
    Send(*DutShellResponse) error
    grpc.ServerStream
}

type DutShellRequest Uses

type DutShellRequest struct {
    // dut is some identifier for the DUT.  This could be the DUT
    // hostname, but the caller shouldn't know or care whether this is a
    // hostname or not, as they would not be able to use the hostname to
    // SSH or otherwise interact with the DUT directly.
    Dut                  string   `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
    Command              string   `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DutShellRequest) Descriptor Uses

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

func (*DutShellRequest) GetCommand Uses

func (m *DutShellRequest) GetCommand() string

func (*DutShellRequest) GetDut Uses

func (m *DutShellRequest) GetDut() string

func (*DutShellRequest) ProtoMessage Uses

func (*DutShellRequest) ProtoMessage()

func (*DutShellRequest) Reset Uses

func (m *DutShellRequest) Reset()

func (*DutShellRequest) String Uses

func (m *DutShellRequest) String() string

func (*DutShellRequest) XXX_DiscardUnknown Uses

func (m *DutShellRequest) XXX_DiscardUnknown()

func (*DutShellRequest) XXX_Marshal Uses

func (m *DutShellRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DutShellRequest) XXX_Merge Uses

func (m *DutShellRequest) XXX_Merge(src proto.Message)

func (*DutShellRequest) XXX_Size Uses

func (m *DutShellRequest) XXX_Size() int

func (*DutShellRequest) XXX_Unmarshal Uses

func (m *DutShellRequest) XXX_Unmarshal(b []byte) error

type DutShellResponse Uses

type DutShellResponse struct {
    Status               int32    `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
    Exited               bool     `protobuf:"varint,2,opt,name=exited,proto3" json:"exited,omitempty"`
    Stdout               []byte   `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"`
    Stderr               []byte   `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

For the last response in the stream, exited will be true and status will be set.

func (*DutShellResponse) Descriptor Uses

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

func (*DutShellResponse) GetExited Uses

func (m *DutShellResponse) GetExited() bool

func (*DutShellResponse) GetStatus Uses

func (m *DutShellResponse) GetStatus() int32

func (*DutShellResponse) GetStderr Uses

func (m *DutShellResponse) GetStderr() []byte

func (*DutShellResponse) GetStdout Uses

func (m *DutShellResponse) GetStdout() []byte

func (*DutShellResponse) ProtoMessage Uses

func (*DutShellResponse) ProtoMessage()

func (*DutShellResponse) Reset Uses

func (m *DutShellResponse) Reset()

func (*DutShellResponse) String Uses

func (m *DutShellResponse) String() string

func (*DutShellResponse) XXX_DiscardUnknown Uses

func (m *DutShellResponse) XXX_DiscardUnknown()

func (*DutShellResponse) XXX_Marshal Uses

func (m *DutShellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DutShellResponse) XXX_Merge Uses

func (m *DutShellResponse) XXX_Merge(src proto.Message)

func (*DutShellResponse) XXX_Size Uses

func (m *DutShellResponse) XXX_Size() int

func (*DutShellResponse) XXX_Unmarshal Uses

func (m *DutShellResponse) XXX_Unmarshal(b []byte) error

type OpenDutPortRequest Uses

type OpenDutPortRequest struct {
    // dut is some identifier for the DUT.
    // The DUT ID is passed to the RTD when it is started.
    // This could be the DUT hostname, but the caller should not be able
    // to use the hostname to SSH or otherwise interact with the DUT
    // directly.
    Dut string `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
    // Port to open on the DUT.
    DutPort              int32    `protobuf:"varint,2,opt,name=dut_port,json=dutPort,proto3" json:"dut_port,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*OpenDutPortRequest) Descriptor Uses

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

func (*OpenDutPortRequest) GetDut Uses

func (m *OpenDutPortRequest) GetDut() string

func (*OpenDutPortRequest) GetDutPort Uses

func (m *OpenDutPortRequest) GetDutPort() int32

func (*OpenDutPortRequest) ProtoMessage Uses

func (*OpenDutPortRequest) ProtoMessage()

func (*OpenDutPortRequest) Reset Uses

func (m *OpenDutPortRequest) Reset()

func (*OpenDutPortRequest) String Uses

func (m *OpenDutPortRequest) String() string

func (*OpenDutPortRequest) XXX_DiscardUnknown Uses

func (m *OpenDutPortRequest) XXX_DiscardUnknown()

func (*OpenDutPortRequest) XXX_Marshal Uses

func (m *OpenDutPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OpenDutPortRequest) XXX_Merge Uses

func (m *OpenDutPortRequest) XXX_Merge(src proto.Message)

func (*OpenDutPortRequest) XXX_Size Uses

func (m *OpenDutPortRequest) XXX_Size() int

func (*OpenDutPortRequest) XXX_Unmarshal Uses

func (m *OpenDutPortRequest) XXX_Unmarshal(b []byte) error

type OpenDutPortResponse Uses

type OpenDutPortResponse struct {
    Status OpenDutPortResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=tls.OpenDutPortResponse_Status" json:"status,omitempty"`
    // address which is forwarded to the DUT, in the form host:port.
    // TLEs should return an IP address to avoid name resolution issues.
    // If TLEs return a hostname, they should ensure that the hostname is
    // resolveable by the RTD via standard name resolution facilities.
    Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
    // reason provides human friendly context for any error status.
    Reason               string   `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*OpenDutPortResponse) Descriptor Uses

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

func (*OpenDutPortResponse) GetAddress Uses

func (m *OpenDutPortResponse) GetAddress() string

func (*OpenDutPortResponse) GetReason Uses

func (m *OpenDutPortResponse) GetReason() string

func (*OpenDutPortResponse) GetStatus Uses

func (m *OpenDutPortResponse) GetStatus() OpenDutPortResponse_Status

func (*OpenDutPortResponse) ProtoMessage Uses

func (*OpenDutPortResponse) ProtoMessage()

func (*OpenDutPortResponse) Reset Uses

func (m *OpenDutPortResponse) Reset()

func (*OpenDutPortResponse) String Uses

func (m *OpenDutPortResponse) String() string

func (*OpenDutPortResponse) XXX_DiscardUnknown Uses

func (m *OpenDutPortResponse) XXX_DiscardUnknown()

func (*OpenDutPortResponse) XXX_Marshal Uses

func (m *OpenDutPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OpenDutPortResponse) XXX_Merge Uses

func (m *OpenDutPortResponse) XXX_Merge(src proto.Message)

func (*OpenDutPortResponse) XXX_Size Uses

func (m *OpenDutPortResponse) XXX_Size() int

func (*OpenDutPortResponse) XXX_Unmarshal Uses

func (m *OpenDutPortResponse) XXX_Unmarshal(b []byte) error

type OpenDutPortResponse_Status Uses

type OpenDutPortResponse_Status int32
const (
    OpenDutPortResponse_STATUS_UNKNOWN OpenDutPortResponse_Status = 0
    OpenDutPortResponse_STATUS_OK      OpenDutPortResponse_Status = 1
    // STATUS_BAD_DUT indicates that the DUT is not known,
    // or the caller does not have access to it.
    OpenDutPortResponse_STATUS_BAD_DUT OpenDutPortResponse_Status = 2
    // STATUS_DUT_UNREACHABLE indicates that the DUT is not reachable
    // over the network.
    OpenDutPortResponse_STATUS_DUT_UNREACHABLE OpenDutPortResponse_Status = 3
)

func (OpenDutPortResponse_Status) EnumDescriptor Uses

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

func (OpenDutPortResponse_Status) String Uses

func (x OpenDutPortResponse_Status) String() string

type SetDutPowerSupplyRequest Uses

type SetDutPowerSupplyRequest struct {
    Dut                  string                         `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
    State                SetDutPowerSupplyRequest_State `protobuf:"varint,2,opt,name=state,proto3,enum=tls.SetDutPowerSupplyRequest_State" json:"state,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
    XXX_unrecognized     []byte                         `json:"-"`
    XXX_sizecache        int32                          `json:"-"`
}

func (*SetDutPowerSupplyRequest) Descriptor Uses

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

func (*SetDutPowerSupplyRequest) GetDut Uses

func (m *SetDutPowerSupplyRequest) GetDut() string

func (*SetDutPowerSupplyRequest) GetState Uses

func (m *SetDutPowerSupplyRequest) GetState() SetDutPowerSupplyRequest_State

func (*SetDutPowerSupplyRequest) ProtoMessage Uses

func (*SetDutPowerSupplyRequest) ProtoMessage()

func (*SetDutPowerSupplyRequest) Reset Uses

func (m *SetDutPowerSupplyRequest) Reset()

func (*SetDutPowerSupplyRequest) String Uses

func (m *SetDutPowerSupplyRequest) String() string

func (*SetDutPowerSupplyRequest) XXX_DiscardUnknown Uses

func (m *SetDutPowerSupplyRequest) XXX_DiscardUnknown()

func (*SetDutPowerSupplyRequest) XXX_Marshal Uses

func (m *SetDutPowerSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetDutPowerSupplyRequest) XXX_Merge Uses

func (m *SetDutPowerSupplyRequest) XXX_Merge(src proto.Message)

func (*SetDutPowerSupplyRequest) XXX_Size Uses

func (m *SetDutPowerSupplyRequest) XXX_Size() int

func (*SetDutPowerSupplyRequest) XXX_Unmarshal Uses

func (m *SetDutPowerSupplyRequest) XXX_Unmarshal(b []byte) error

type SetDutPowerSupplyRequest_State Uses

type SetDutPowerSupplyRequest_State int32
const (
    SetDutPowerSupplyRequest_STATE_UNKNOWN SetDutPowerSupplyRequest_State = 0
    SetDutPowerSupplyRequest_STATE_ON      SetDutPowerSupplyRequest_State = 1
    SetDutPowerSupplyRequest_STATE_OFF     SetDutPowerSupplyRequest_State = 2
)

func (SetDutPowerSupplyRequest_State) EnumDescriptor Uses

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

func (SetDutPowerSupplyRequest_State) String Uses

func (x SetDutPowerSupplyRequest_State) String() string

type SetDutPowerSupplyResponse Uses

type SetDutPowerSupplyResponse struct {
    Status SetDutPowerSupplyResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=tls.SetDutPowerSupplyResponse_Status" json:"status,omitempty"`
    // reason provides human friendly context for any error status.
    Reason               string   `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SetDutPowerSupplyResponse) Descriptor Uses

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

func (*SetDutPowerSupplyResponse) GetReason Uses

func (m *SetDutPowerSupplyResponse) GetReason() string

func (*SetDutPowerSupplyResponse) GetStatus Uses

func (m *SetDutPowerSupplyResponse) GetStatus() SetDutPowerSupplyResponse_Status

func (*SetDutPowerSupplyResponse) ProtoMessage Uses

func (*SetDutPowerSupplyResponse) ProtoMessage()

func (*SetDutPowerSupplyResponse) Reset Uses

func (m *SetDutPowerSupplyResponse) Reset()

func (*SetDutPowerSupplyResponse) String Uses

func (m *SetDutPowerSupplyResponse) String() string

func (*SetDutPowerSupplyResponse) XXX_DiscardUnknown Uses

func (m *SetDutPowerSupplyResponse) XXX_DiscardUnknown()

func (*SetDutPowerSupplyResponse) XXX_Marshal Uses

func (m *SetDutPowerSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetDutPowerSupplyResponse) XXX_Merge Uses

func (m *SetDutPowerSupplyResponse) XXX_Merge(src proto.Message)

func (*SetDutPowerSupplyResponse) XXX_Size Uses

func (m *SetDutPowerSupplyResponse) XXX_Size() int

func (*SetDutPowerSupplyResponse) XXX_Unmarshal Uses

func (m *SetDutPowerSupplyResponse) XXX_Unmarshal(b []byte) error

type SetDutPowerSupplyResponse_Status Uses

type SetDutPowerSupplyResponse_Status int32
const (
    SetDutPowerSupplyResponse_STATUS_UNKNOWN SetDutPowerSupplyResponse_Status = 0
    SetDutPowerSupplyResponse_STATUS_OK      SetDutPowerSupplyResponse_Status = 1
    // STATUS_BAD_DUT indicates that the DUT is not known,
    // or the caller does not have access to it.
    SetDutPowerSupplyResponse_STATUS_BAD_DUT SetDutPowerSupplyResponse_Status = 2
    // STATUS_BAD_REQUEST indicates that the request was invalid,
    // e.g., passing an invalid state.
    SetDutPowerSupplyResponse_STATUS_BAD_REQUEST SetDutPowerSupplyResponse_Status = 3
    SetDutPowerSupplyResponse_STATUS_NO_RPM      SetDutPowerSupplyResponse_Status = 4
    SetDutPowerSupplyResponse_STATUS_RPM_ERROR   SetDutPowerSupplyResponse_Status = 5
)

func (SetDutPowerSupplyResponse_Status) EnumDescriptor Uses

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

func (SetDutPowerSupplyResponse_Status) String Uses

func (x SetDutPowerSupplyResponse_Status) String() string

type UnimplementedCommonServer Uses

type UnimplementedCommonServer struct {
}

UnimplementedCommonServer can be embedded to have forward compatible implementations.

func (*UnimplementedCommonServer) DutShell Uses

func (*UnimplementedCommonServer) DutShell(req *DutShellRequest, srv Common_DutShellServer) error

type UnimplementedWiringServer Uses

type UnimplementedWiringServer struct {
}

UnimplementedWiringServer can be embedded to have forward compatible implementations.

func (*UnimplementedWiringServer) CacheForDut Uses

func (*UnimplementedWiringServer) CacheForDut(req *CacheForDutRequest, srv Wiring_CacheForDutServer) error

func (*UnimplementedWiringServer) CallServoXmlRpc Uses

func (*UnimplementedWiringServer) CallServoXmlRpc(ctx context.Context, req *CallServoXmlRpcRequest) (*CallServoXmlRpcResponse, error)

func (*UnimplementedWiringServer) OpenDutPort Uses

func (*UnimplementedWiringServer) OpenDutPort(ctx context.Context, req *OpenDutPortRequest) (*OpenDutPortResponse, error)

func (*UnimplementedWiringServer) SetDutPowerSupply Uses

func (*UnimplementedWiringServer) SetDutPowerSupply(ctx context.Context, req *SetDutPowerSupplyRequest) (*SetDutPowerSupplyResponse, error)

type WiringClient Uses

type WiringClient interface {
    // Open a port on the DUT for the caller.
    // The TLE attempts to keep this port open for the duration of the
    // RTD's runtime.
    // This RPC can be called repeatedly for the same RTD, DUT, and port.
    // On subsequent calls, the implementation should attempt to return the same address.
    // If the implementation lost and cannot reobtain the previous
    // address, it should return a new address.
    OpenDutPort(ctx context.Context, in *OpenDutPortRequest, opts ...grpc.CallOption) (*OpenDutPortResponse, error)
    // SetDutPowerSupply sets the connected power state for the DUT.  It is
    // the caller's responsibility to wait for the effects of the call
    // to propagate, e.g. waiting in between calls to set the power OFF
    // and ON.
    SetDutPowerSupply(ctx context.Context, in *SetDutPowerSupplyRequest, opts ...grpc.CallOption) (*SetDutPowerSupplyResponse, error)
    // CacheForDut caches some data to be accesible for the DUT.
    // This will be made available to the DUT via a returned URL.
    // The service will periodically return STATUS_CONTINUE messages to keep the stream alive.
    // Implementations should use a reasonable interval (e.g., one minute)
    // to ensure the stream does not time out.
    // The client should continue streaming replies until getting success or failure.
    //
    // Experimental
    CacheForDut(ctx context.Context, in *CacheForDutRequest, opts ...grpc.CallOption) (Wiring_CacheForDutClient, error)
    // CallServoXmlRpc performs an XML-RPC call against the servo connected to a DUT.
    //
    // This RPC mirrors the XML-RPC specification (http://xmlrpc.com/spec.md).
    //
    // Experimental
    CallServoXmlRpc(ctx context.Context, in *CallServoXmlRpcRequest, opts ...grpc.CallOption) (*CallServoXmlRpcResponse, error)
}

WiringClient is the client API for Wiring service.

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

func NewWiringClient Uses

func NewWiringClient(cc *grpc.ClientConn) WiringClient

type WiringServer Uses

type WiringServer interface {
    // Open a port on the DUT for the caller.
    // The TLE attempts to keep this port open for the duration of the
    // RTD's runtime.
    // This RPC can be called repeatedly for the same RTD, DUT, and port.
    // On subsequent calls, the implementation should attempt to return the same address.
    // If the implementation lost and cannot reobtain the previous
    // address, it should return a new address.
    OpenDutPort(context.Context, *OpenDutPortRequest) (*OpenDutPortResponse, error)
    // SetDutPowerSupply sets the connected power state for the DUT.  It is
    // the caller's responsibility to wait for the effects of the call
    // to propagate, e.g. waiting in between calls to set the power OFF
    // and ON.
    SetDutPowerSupply(context.Context, *SetDutPowerSupplyRequest) (*SetDutPowerSupplyResponse, error)
    // CacheForDut caches some data to be accesible for the DUT.
    // This will be made available to the DUT via a returned URL.
    // The service will periodically return STATUS_CONTINUE messages to keep the stream alive.
    // Implementations should use a reasonable interval (e.g., one minute)
    // to ensure the stream does not time out.
    // The client should continue streaming replies until getting success or failure.
    //
    // Experimental
    CacheForDut(*CacheForDutRequest, Wiring_CacheForDutServer) error
    // CallServoXmlRpc performs an XML-RPC call against the servo connected to a DUT.
    //
    // This RPC mirrors the XML-RPC specification (http://xmlrpc.com/spec.md).
    //
    // Experimental
    CallServoXmlRpc(context.Context, *CallServoXmlRpcRequest) (*CallServoXmlRpcResponse, error)
}

WiringServer is the server API for Wiring service.

type Wiring_CacheForDutClient Uses

type Wiring_CacheForDutClient interface {
    Recv() (*CacheForDutResponse, error)
    grpc.ClientStream
}

type Wiring_CacheForDutServer Uses

type Wiring_CacheForDutServer interface {
    Send(*CacheForDutResponse) error
    grpc.ServerStream
}

Package tls imports 8 packages (graph). Updated 2020-04-05. Refresh now. Tools for package owners.