pb

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EvtType_name = map[int32]string{
	0: "LOG",
	1: "MSG",
	2: "SUCCESS",
	3: "ERROR",
	4: "SESS_START",
	5: "PRINT",
	6: "PRINT_ERR",
	7: "CODENAME",
	8: "STATE",
	9: "SETPW",
}
View Source
var EvtType_value = map[string]int32{
	"LOG":        0,
	"MSG":        1,
	"SUCCESS":    2,
	"ERROR":      3,
	"SESS_START": 4,
	"PRINT":      5,
	"PRINT_ERR":  6,
	"CODENAME":   7,
	"STATE":      8,
	"SETPW":      9,
}
View Source
var ProcessState_name = map[int32]string{
	0: "UNKNOWN",
	1: "MFG_STARTED",
	2: "MFG_SUCCEEDED",
	3: "MFG_FAILED",
	4: "FR_STARTED",
	5: "FR_SUCCEEDED",
	6: "FR_FAILED",
	7: "INIT_STARTED",
	8: "INIT_SUCCEEDED",
	9: "INIT_FAILED",
}
View Source
var ProcessState_value = map[string]int32{
	"UNKNOWN":        0,
	"MFG_STARTED":    1,
	"MFG_SUCCEEDED":  2,
	"MFG_FAILED":     3,
	"FR_STARTED":     4,
	"FR_SUCCEEDED":   5,
	"FR_FAILED":      6,
	"INIT_STARTED":   7,
	"INIT_SUCCEEDED": 8,
	"INIT_FAILED":    9,
}

Functions

func RegisterLogServiceServer

func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)

func RegisterRecordKeeperServer

func RegisterRecordKeeperServer(s *grpc.Server, srv RecordKeeperServer)

func RegisterSecretsServer

func RegisterSecretsServer(s *grpc.Server, srv SecretsServer)

func RegisterTimekeeperServer

func RegisterTimekeeperServer(s *grpc.Server, srv TimekeeperServer)

Types

type Codename

type Codename struct {
	SN                   string   `protobuf:"bytes,1,opt,name=SN,proto3" json:"SN,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Codename) Descriptor

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

func (*Codename) GetName

func (m *Codename) GetName() string

func (*Codename) GetSN

func (m *Codename) GetSN() string

func (*Codename) ProtoMessage

func (*Codename) ProtoMessage()

func (*Codename) Reset

func (m *Codename) Reset()

func (*Codename) String

func (m *Codename) String() string

func (*Codename) XXX_DiscardUnknown

func (m *Codename) XXX_DiscardUnknown()

func (*Codename) XXX_Marshal

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

func (*Codename) XXX_Merge

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

func (*Codename) XXX_Size

func (m *Codename) XXX_Size() int

func (*Codename) XXX_Unmarshal

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

type Credentials

type Credentials struct {
	OS                   string   `protobuf:"bytes,1,opt,name=OS,proto3" json:"OS,omitempty"`
	BIOS                 string   `protobuf:"bytes,2,opt,name=BIOS,proto3" json:"BIOS,omitempty"`
	IPMI                 string   `protobuf:"bytes,3,opt,name=IPMI,proto3" json:"IPMI,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Credentials) Descriptor

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

func (*Credentials) GetBIOS

func (m *Credentials) GetBIOS() string

func (*Credentials) GetIPMI

func (m *Credentials) GetIPMI() string

func (*Credentials) GetOS

func (m *Credentials) GetOS() string

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) Reset

func (m *Credentials) Reset()

func (*Credentials) String

func (m *Credentials) String() string

func (*Credentials) XXX_DiscardUnknown

func (m *Credentials) XXX_DiscardUnknown()

func (*Credentials) XXX_Marshal

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

func (*Credentials) XXX_Merge

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

func (*Credentials) XXX_Size

func (m *Credentials) XXX_Size() int

func (*Credentials) XXX_Unmarshal

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

type Document

type Document struct {
	SN                   string   `protobuf:"bytes,1,opt,name=SN,proto3" json:"SN,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Doctype              string   `protobuf:"bytes,3,opt,name=Doctype,proto3" json:"Doctype,omitempty"`
	Body                 []byte   `protobuf:"bytes,4,opt,name=Body,proto3" json:"Body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Document) Descriptor

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

func (*Document) GetBody

func (m *Document) GetBody() []byte

func (*Document) GetDoctype

func (m *Document) GetDoctype() string

func (*Document) GetName

func (m *Document) GetName() string

func (*Document) GetSN

func (m *Document) GetSN() string

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) Reset

func (m *Document) Reset()

func (*Document) String

func (m *Document) String() string

func (*Document) XXX_DiscardUnknown

func (m *Document) XXX_DiscardUnknown()

func (*Document) XXX_Marshal

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

func (*Document) XXX_Merge

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

func (*Document) XXX_Size

func (m *Document) XXX_Size() int

func (*Document) XXX_Unmarshal

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

type EvtType

type EvtType int32
const (
	EvtType_LOG        EvtType = 0
	EvtType_MSG        EvtType = 1
	EvtType_SUCCESS    EvtType = 2
	EvtType_ERROR      EvtType = 3
	EvtType_SESS_START EvtType = 4
	//following are used in server app; likely not useful on wire.
	EvtType_PRINT     EvtType = 5
	EvtType_PRINT_ERR EvtType = 6
	EvtType_CODENAME  EvtType = 7
	EvtType_STATE     EvtType = 8
	EvtType_SETPW     EvtType = 9
)

func (EvtType) EnumDescriptor

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

func (EvtType) String

func (x EvtType) String() string

type GenericResponse

type GenericResponse struct {
	EventType            EvtType  `protobuf:"varint,1,opt,name=EventType,proto3,enum=pb.EvtType" json:"EventType,omitempty"`
	ErrMsg               string   `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GenericResponse) Descriptor

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

func (*GenericResponse) GetErrMsg

func (m *GenericResponse) GetErrMsg() string

func (*GenericResponse) GetEventType

func (m *GenericResponse) GetEventType() EvtType

func (*GenericResponse) ProtoMessage

func (*GenericResponse) ProtoMessage()

func (*GenericResponse) Reset

func (m *GenericResponse) Reset()

func (*GenericResponse) String

func (m *GenericResponse) String() string

func (*GenericResponse) XXX_DiscardUnknown

func (m *GenericResponse) XXX_DiscardUnknown()

func (*GenericResponse) XXX_Marshal

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

func (*GenericResponse) XXX_Merge

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

func (*GenericResponse) XXX_Size

func (m *GenericResponse) XXX_Size() int

func (*GenericResponse) XXX_Unmarshal

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

type Identifier

type Identifier struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Identifier) Descriptor

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

func (*Identifier) GetId

func (m *Identifier) GetId() string

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) Reset

func (m *Identifier) Reset()

func (*Identifier) String

func (m *Identifier) String() string

func (*Identifier) XXX_DiscardUnknown

func (m *Identifier) XXX_DiscardUnknown()

func (*Identifier) XXX_Marshal

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

func (*Identifier) XXX_Merge

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

func (*Identifier) XXX_Size

func (m *Identifier) XXX_Size() int

func (*Identifier) XXX_Unmarshal

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

type LogEvent

type LogEvent struct {
	SN                   string     `protobuf:"bytes,1,opt,name=SN,proto3" json:"SN,omitempty"`
	EventType            EvtType    `protobuf:"varint,2,opt,name=EventType,proto3,enum=pb.EvtType" json:"EventType,omitempty"`
	Time                 *Timestamp `protobuf:"bytes,3,opt,name=Time,proto3" json:"Time,omitempty"`
	Payload              string     `protobuf:"bytes,4,opt,name=Payload,proto3" json:"Payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*LogEvent) Descriptor

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

func (*LogEvent) GetEventType

func (m *LogEvent) GetEventType() EvtType

func (*LogEvent) GetPayload

func (m *LogEvent) GetPayload() string

func (*LogEvent) GetSN

func (m *LogEvent) GetSN() string

func (*LogEvent) GetTime

func (m *LogEvent) GetTime() *Timestamp

func (*LogEvent) ProtoMessage

func (*LogEvent) ProtoMessage()

func (*LogEvent) Reset

func (m *LogEvent) Reset()

func (*LogEvent) String

func (m *LogEvent) String() string

func (*LogEvent) XXX_DiscardUnknown

func (m *LogEvent) XXX_DiscardUnknown()

func (*LogEvent) XXX_Marshal

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

func (*LogEvent) XXX_Merge

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

func (*LogEvent) XXX_Size

func (m *LogEvent) XXX_Size() int

func (*LogEvent) XXX_Unmarshal

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

type LogEvents

type LogEvents struct {
	Evt                  []*LogEvent `protobuf:"bytes,1,rep,name=Evt,proto3" json:"Evt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

used for storage of multiple le's

func (*LogEvents) Descriptor

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

func (*LogEvents) GetEvt

func (m *LogEvents) GetEvt() []*LogEvent

func (*LogEvents) ProtoMessage

func (*LogEvents) ProtoMessage()

func (*LogEvents) Reset

func (m *LogEvents) Reset()

func (*LogEvents) String

func (m *LogEvents) String() string

func (*LogEvents) XXX_DiscardUnknown

func (m *LogEvents) XXX_DiscardUnknown()

func (*LogEvents) XXX_Marshal

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

func (*LogEvents) XXX_Merge

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

func (*LogEvents) XXX_Size

func (m *LogEvents) XXX_Size() int

func (*LogEvents) XXX_Unmarshal

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

type LogServiceClient

type LogServiceClient interface {
	//stream or no?
	Log(ctx context.Context, in *LogEvent, opts ...grpc.CallOption) (*GenericResponse, error)
}

LogServiceClient is the client API for LogService service.

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

func NewLogServiceClient

func NewLogServiceClient(cc *grpc.ClientConn) LogServiceClient

type LogServiceServer

type LogServiceServer interface {
	//stream or no?
	Log(context.Context, *LogEvent) (*GenericResponse, error)
}

LogServiceServer is the server API for LogService service.

type MACs

type MACs struct {
	SN                   string   `protobuf:"bytes,1,opt,name=SN,proto3" json:"SN,omitempty"`
	MAC                  []string `protobuf:"bytes,2,rep,name=MAC,proto3" json:"MAC,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MACs) Descriptor

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

func (*MACs) GetMAC

func (m *MACs) GetMAC() []string

func (*MACs) GetSN

func (m *MACs) GetSN() string

func (*MACs) ProtoMessage

func (*MACs) ProtoMessage()

func (*MACs) Reset

func (m *MACs) Reset()

func (*MACs) String

func (m *MACs) String() string

func (*MACs) XXX_DiscardUnknown

func (m *MACs) XXX_DiscardUnknown()

func (*MACs) XXX_Marshal

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

func (*MACs) XXX_Merge

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

func (*MACs) XXX_Size

func (m *MACs) XXX_Size() int

func (*MACs) XXX_Unmarshal

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

type ProcessStage

type ProcessStage struct {
	SN                   string       `protobuf:"bytes,1,opt,name=SN,proto3" json:"SN,omitempty"`
	State                ProcessState `protobuf:"varint,2,opt,name=State,proto3,enum=pb.ProcessState" json:"State,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ProcessStage) Descriptor

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

func (*ProcessStage) GetSN

func (m *ProcessStage) GetSN() string

func (*ProcessStage) GetState

func (m *ProcessStage) GetState() ProcessState

func (*ProcessStage) ProtoMessage

func (*ProcessStage) ProtoMessage()

func (*ProcessStage) Reset

func (m *ProcessStage) Reset()

func (*ProcessStage) String

func (m *ProcessStage) String() string

func (*ProcessStage) XXX_DiscardUnknown

func (m *ProcessStage) XXX_DiscardUnknown()

func (*ProcessStage) XXX_Marshal

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

func (*ProcessStage) XXX_Merge

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

func (*ProcessStage) XXX_Size

func (m *ProcessStage) XXX_Size() int

func (*ProcessStage) XXX_Unmarshal

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

type ProcessState

type ProcessState int32
const (
	ProcessState_UNKNOWN        ProcessState = 0
	ProcessState_MFG_STARTED    ProcessState = 1
	ProcessState_MFG_SUCCEEDED  ProcessState = 2
	ProcessState_MFG_FAILED     ProcessState = 3
	ProcessState_FR_STARTED     ProcessState = 4
	ProcessState_FR_SUCCEEDED   ProcessState = 5
	ProcessState_FR_FAILED      ProcessState = 6
	ProcessState_INIT_STARTED   ProcessState = 7
	ProcessState_INIT_SUCCEEDED ProcessState = 8
	ProcessState_INIT_FAILED    ProcessState = 9
)

func (ProcessState) EnumDescriptor

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

func (ProcessState) String

func (x ProcessState) String() string

type RecordKeeperClient

type RecordKeeperClient interface {
	StoreMACs(ctx context.Context, in *MACs, opts ...grpc.CallOption) (*GenericResponse, error)
	StoreIPMIMACs(ctx context.Context, in *MACs, opts ...grpc.CallOption) (*GenericResponse, error)
	ReportState(ctx context.Context, in *ProcessStage, opts ...grpc.CallOption) (*GenericResponse, error)
	ReportCodename(ctx context.Context, in *Codename, opts ...grpc.CallOption) (*GenericResponse, error)
	StoreDocument(ctx context.Context, in *Document, opts ...grpc.CallOption) (*GenericResponse, error)
}

RecordKeeperClient is the client API for RecordKeeper service.

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

func NewRecordKeeperClient

func NewRecordKeeperClient(cc *grpc.ClientConn) RecordKeeperClient

type RecordKeeperServer

type RecordKeeperServer interface {
	StoreMACs(context.Context, *MACs) (*GenericResponse, error)
	StoreIPMIMACs(context.Context, *MACs) (*GenericResponse, error)
	ReportState(context.Context, *ProcessStage) (*GenericResponse, error)
	ReportCodename(context.Context, *Codename) (*GenericResponse, error)
	StoreDocument(context.Context, *Document) (*GenericResponse, error)
}

RecordKeeperServer is the server API for RecordKeeper service.

type SecretsClient

type SecretsClient interface {
	GetCredentials(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Credentials, error)
}

SecretsClient is the client API for Secrets service.

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

func NewSecretsClient

func NewSecretsClient(cc *grpc.ClientConn) SecretsClient

type SecretsServer

type SecretsServer interface {
	GetCredentials(context.Context, *Identifier) (*Credentials, error)
}

SecretsServer is the server API for Secrets service.

type TimekeeperClient

type TimekeeperClient interface {
	GetTime(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Timestamp, error)
}

TimekeeperClient is the client API for Timekeeper service.

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

func NewTimekeeperClient

func NewTimekeeperClient(cc *grpc.ClientConn) TimekeeperClient

type TimekeeperServer

type TimekeeperServer interface {
	GetTime(context.Context, *empty.Empty) (*Timestamp, error)
}

TimekeeperServer is the server API for Timekeeper service.

type Timestamp

type Timestamp struct {
	TS                   int64    `protobuf:"varint,1,opt,name=TS,proto3" json:"TS,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Timestamp) Descriptor

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

func (*Timestamp) GetTS

func (m *Timestamp) GetTS() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset

func (m *Timestamp) Reset()

func (*Timestamp) String

func (m *Timestamp) String() string

func (*Timestamp) XXX_DiscardUnknown

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal

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

func (*Timestamp) XXX_Merge

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

func (*Timestamp) XXX_Size

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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