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

package skylab_local_state

import "go.chromium.org/chromiumos/infra/proto/go/test_platform/skylab_local_state"

Index

Package Files

common.pb.go host_info.pb.go load.pb.go multihost.pb.go receive.pb.go save.pb.go serialize.pb.go

type AutotestHostInfo Uses

type AutotestHostInfo struct {
    Attributes           map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Labels               []string          `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
    SerializerVersion    int32             `protobuf:"varint,3,opt,name=serializer_version,proto3" json:"serializer_version,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

AutotestHostInfo defines the structure of the host info file which is used to pass host information to Autotest and receive host information changes from Autotest.

func (*AutotestHostInfo) Descriptor Uses

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

func (*AutotestHostInfo) GetAttributes Uses

func (m *AutotestHostInfo) GetAttributes() map[string]string

func (*AutotestHostInfo) GetLabels Uses

func (m *AutotestHostInfo) GetLabels() []string

func (*AutotestHostInfo) GetSerializerVersion Uses

func (m *AutotestHostInfo) GetSerializerVersion() int32

func (*AutotestHostInfo) ProtoMessage Uses

func (*AutotestHostInfo) ProtoMessage()

func (*AutotestHostInfo) Reset Uses

func (m *AutotestHostInfo) Reset()

func (*AutotestHostInfo) String Uses

func (m *AutotestHostInfo) String() string

func (*AutotestHostInfo) XXX_DiscardUnknown Uses

func (m *AutotestHostInfo) XXX_DiscardUnknown()

func (*AutotestHostInfo) XXX_Marshal Uses

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

func (*AutotestHostInfo) XXX_Merge Uses

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

func (*AutotestHostInfo) XXX_Size Uses

func (m *AutotestHostInfo) XXX_Size() int

func (*AutotestHostInfo) XXX_Unmarshal Uses

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

type Config Uses

type Config struct {
    // Admin service host, e.g. foo.appspot.com.
    AdminService string `protobuf:"bytes,1,opt,name=admin_service,json=adminService,proto3" json:"admin_service,omitempty"`
    // Autotest directory on the drone, e.g. "/usr/local/autotest".
    AutotestDir          string   `protobuf:"bytes,2,opt,name=autotest_dir,json=autotestDir,proto3" json:"autotest_dir,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Config defines configuration parameters of skylab_local_state.

func (*Config) Descriptor Uses

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

func (*Config) GetAdminService Uses

func (m *Config) GetAdminService() string

func (*Config) GetAutotestDir Uses

func (m *Config) GetAutotestDir() string

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

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

func (*Config) XXX_Merge Uses

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

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

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

type LoadRequest Uses

type LoadRequest struct {
    Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
    // The path to the directory where the host info file will be placed. It will
    // be created it if does not exist yet.
    ResultsDir string `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
    // DUT hostname.
    DutName              string   `protobuf:"bytes,3,opt,name=dut_name,json=dutName,proto3" json:"dut_name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

LoadRequest defines the input of `skylab_local_state load`.

func (*LoadRequest) Descriptor Uses

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

func (*LoadRequest) GetConfig Uses

func (m *LoadRequest) GetConfig() *Config

func (*LoadRequest) GetDutName Uses

func (m *LoadRequest) GetDutName() string

func (*LoadRequest) GetResultsDir Uses

func (m *LoadRequest) GetResultsDir() string

func (*LoadRequest) ProtoMessage Uses

func (*LoadRequest) ProtoMessage()

func (*LoadRequest) Reset Uses

func (m *LoadRequest) Reset()

func (*LoadRequest) String Uses

func (m *LoadRequest) String() string

func (*LoadRequest) XXX_DiscardUnknown Uses

func (m *LoadRequest) XXX_DiscardUnknown()

func (*LoadRequest) XXX_Marshal Uses

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

func (*LoadRequest) XXX_Merge Uses

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

func (*LoadRequest) XXX_Size Uses

func (m *LoadRequest) XXX_Size() int

func (*LoadRequest) XXX_Unmarshal Uses

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

type LoadResponse Uses

type LoadResponse struct {
    // What is currently installed on the DUT, e.g.
    // "cros-version": "reef-release/R77-12345.0.0".
    ProvisionableLabels  map[string]string `protobuf:"bytes,1,rep,name=provisionable_labels,json=provisionableLabels,proto3" json:"provisionable_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

LoadResponse defines the output of `skylab_local_state load`.

func (*LoadResponse) Descriptor Uses

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

func (*LoadResponse) GetProvisionableLabels Uses

func (m *LoadResponse) GetProvisionableLabels() map[string]string

func (*LoadResponse) ProtoMessage Uses

func (*LoadResponse) ProtoMessage()

func (*LoadResponse) Reset Uses

func (m *LoadResponse) Reset()

func (*LoadResponse) String Uses

func (m *LoadResponse) String() string

func (*LoadResponse) XXX_DiscardUnknown Uses

func (m *LoadResponse) XXX_DiscardUnknown()

func (*LoadResponse) XXX_Marshal Uses

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

func (*LoadResponse) XXX_Merge Uses

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

func (*LoadResponse) XXX_Size Uses

func (m *LoadResponse) XXX_Size() int

func (*LoadResponse) XXX_Unmarshal Uses

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

type MultiBotHostInfo Uses

type MultiBotHostInfo struct {
    HostInfo *AutotestHostInfo `protobuf:"bytes,1,opt,name=host_info,json=hostInfo,proto3" json:"host_info,omitempty"`
    // DUT hostname.
    DutName              string   `protobuf:"bytes,2,opt,name=dut_name,json=dutName,proto3" json:"dut_name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Host info and other necessary info to be shared by follower tasks in a multi-bot job

func (*MultiBotHostInfo) Descriptor Uses

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

func (*MultiBotHostInfo) GetDutName Uses

func (m *MultiBotHostInfo) GetDutName() string

func (*MultiBotHostInfo) GetHostInfo Uses

func (m *MultiBotHostInfo) GetHostInfo() *AutotestHostInfo

func (*MultiBotHostInfo) ProtoMessage Uses

func (*MultiBotHostInfo) ProtoMessage()

func (*MultiBotHostInfo) Reset Uses

func (m *MultiBotHostInfo) Reset()

func (*MultiBotHostInfo) String Uses

func (m *MultiBotHostInfo) String() string

func (*MultiBotHostInfo) XXX_DiscardUnknown Uses

func (m *MultiBotHostInfo) XXX_DiscardUnknown()

func (*MultiBotHostInfo) XXX_Marshal Uses

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

func (*MultiBotHostInfo) XXX_Merge Uses

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

func (*MultiBotHostInfo) XXX_Size Uses

func (m *MultiBotHostInfo) XXX_Size() int

func (*MultiBotHostInfo) XXX_Unmarshal Uses

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

type ReceiveRequest Uses

type ReceiveRequest struct {
    // The path to the directory where host info file(s) will be placed. It will
    // be created it if does not exist yet.
    ResultsDir           string   `protobuf:"bytes,1,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
    MessageCount         int32    `protobuf:"varint,2,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ReceiveRequest defines the input of `skylab_local_state receive`.

func (*ReceiveRequest) Descriptor Uses

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

func (*ReceiveRequest) GetMessageCount Uses

func (m *ReceiveRequest) GetMessageCount() int32

func (*ReceiveRequest) GetResultsDir Uses

func (m *ReceiveRequest) GetResultsDir() string

func (*ReceiveRequest) ProtoMessage Uses

func (*ReceiveRequest) ProtoMessage()

func (*ReceiveRequest) Reset Uses

func (m *ReceiveRequest) Reset()

func (*ReceiveRequest) String Uses

func (m *ReceiveRequest) String() string

func (*ReceiveRequest) XXX_DiscardUnknown Uses

func (m *ReceiveRequest) XXX_DiscardUnknown()

func (*ReceiveRequest) XXX_Marshal Uses

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

func (*ReceiveRequest) XXX_Merge Uses

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

func (*ReceiveRequest) XXX_Size Uses

func (m *ReceiveRequest) XXX_Size() int

func (*ReceiveRequest) XXX_Unmarshal Uses

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

type ReceiveResponse Uses

type ReceiveResponse struct {
    ReceivedMessages     int32    `protobuf:"varint,1,opt,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ReceiveResponse defines the output of `skylab_local_state receive`.

func (*ReceiveResponse) Descriptor Uses

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

func (*ReceiveResponse) GetReceivedMessages Uses

func (m *ReceiveResponse) GetReceivedMessages() int32

func (*ReceiveResponse) ProtoMessage Uses

func (*ReceiveResponse) ProtoMessage()

func (*ReceiveResponse) Reset Uses

func (m *ReceiveResponse) Reset()

func (*ReceiveResponse) String Uses

func (m *ReceiveResponse) String() string

func (*ReceiveResponse) XXX_DiscardUnknown Uses

func (m *ReceiveResponse) XXX_DiscardUnknown()

func (*ReceiveResponse) XXX_Marshal Uses

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

func (*ReceiveResponse) XXX_Merge Uses

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

func (*ReceiveResponse) XXX_Size Uses

func (m *ReceiveResponse) XXX_Size() int

func (*ReceiveResponse) XXX_Unmarshal Uses

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

type SaveRequest Uses

type SaveRequest struct {
    Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
    // The path to the directory where the host info file is located.
    ResultsDir string `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
    // DUT hostname, used in the name of the host info file.
    DutName string `protobuf:"bytes,3,opt,name=dut_name,json=dutName,proto3" json:"dut_name,omitempty"`
    // DUT ID, used in the name of the DUT state cache file.
    DutId string `protobuf:"bytes,4,opt,name=dut_id,json=dutId,proto3" json:"dut_id,omitempty"`
    // E.g. "needs_repair", "ready" etc.
    DutState string `protobuf:"bytes,5,opt,name=dut_state,json=dutState,proto3" json:"dut_state,omitempty"`
    // If true, mark results directory as ready for offload.
    SealResultsDir       bool     `protobuf:"varint,6,opt,name=seal_results_dir,json=sealResultsDir,proto3" json:"seal_results_dir,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

SaveRequest defines the input of `skylab_local_state save`.

func (*SaveRequest) Descriptor Uses

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

func (*SaveRequest) GetConfig Uses

func (m *SaveRequest) GetConfig() *Config

func (*SaveRequest) GetDutId Uses

func (m *SaveRequest) GetDutId() string

func (*SaveRequest) GetDutName Uses

func (m *SaveRequest) GetDutName() string

func (*SaveRequest) GetDutState Uses

func (m *SaveRequest) GetDutState() string

func (*SaveRequest) GetResultsDir Uses

func (m *SaveRequest) GetResultsDir() string

func (*SaveRequest) GetSealResultsDir Uses

func (m *SaveRequest) GetSealResultsDir() bool

func (*SaveRequest) ProtoMessage Uses

func (*SaveRequest) ProtoMessage()

func (*SaveRequest) Reset Uses

func (m *SaveRequest) Reset()

func (*SaveRequest) String Uses

func (m *SaveRequest) String() string

func (*SaveRequest) XXX_DiscardUnknown Uses

func (m *SaveRequest) XXX_DiscardUnknown()

func (*SaveRequest) XXX_Marshal Uses

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

func (*SaveRequest) XXX_Merge Uses

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

func (*SaveRequest) XXX_Size Uses

func (m *SaveRequest) XXX_Size() int

func (*SaveRequest) XXX_Unmarshal Uses

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

type SerializeRequest Uses

type SerializeRequest struct {
    // The name of the DUT whose host info will be serialized
    DutName string `protobuf:"bytes,1,opt,name=dut_name,json=dutName,proto3" json:"dut_name,omitempty"`
    // Path to the directory where host info sits
    ResultsDir           string   `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

SerializeRequest defines the input of `skylab_local_state serialize`.

func (*SerializeRequest) Descriptor Uses

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

func (*SerializeRequest) GetDutName Uses

func (m *SerializeRequest) GetDutName() string

func (*SerializeRequest) GetResultsDir Uses

func (m *SerializeRequest) GetResultsDir() string

func (*SerializeRequest) ProtoMessage Uses

func (*SerializeRequest) ProtoMessage()

func (*SerializeRequest) Reset Uses

func (m *SerializeRequest) Reset()

func (*SerializeRequest) String Uses

func (m *SerializeRequest) String() string

func (*SerializeRequest) XXX_DiscardUnknown Uses

func (m *SerializeRequest) XXX_DiscardUnknown()

func (*SerializeRequest) XXX_Marshal Uses

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

func (*SerializeRequest) XXX_Merge Uses

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

func (*SerializeRequest) XXX_Size Uses

func (m *SerializeRequest) XXX_Size() int

func (*SerializeRequest) XXX_Unmarshal Uses

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

Package skylab_local_state imports 3 packages (graph) and is imported by 1 packages. Updated 2019-11-19. Refresh now. Tools for package owners.