Documentation ¶
Index ¶
- Variables
- func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
- func RegisterRecordKeeperServer(s *grpc.Server, srv RecordKeeperServer)
- func RegisterSecretsServer(s *grpc.Server, srv SecretsServer)
- func RegisterTimekeeperServer(s *grpc.Server, srv TimekeeperServer)
- type Codename
- func (*Codename) Descriptor() ([]byte, []int)
- func (m *Codename) GetName() string
- func (m *Codename) GetSN() string
- func (*Codename) ProtoMessage()
- func (m *Codename) Reset()
- func (m *Codename) String() string
- func (m *Codename) XXX_DiscardUnknown()
- func (m *Codename) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Codename) XXX_Merge(src proto.Message)
- func (m *Codename) XXX_Size() int
- func (m *Codename) XXX_Unmarshal(b []byte) error
- type Credentials
- func (*Credentials) Descriptor() ([]byte, []int)
- func (m *Credentials) GetBIOS() string
- func (m *Credentials) GetIPMI() string
- func (m *Credentials) GetOS() string
- func (*Credentials) ProtoMessage()
- func (m *Credentials) Reset()
- func (m *Credentials) String() string
- func (m *Credentials) XXX_DiscardUnknown()
- func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Credentials) XXX_Merge(src proto.Message)
- func (m *Credentials) XXX_Size() int
- func (m *Credentials) XXX_Unmarshal(b []byte) error
- type Document
- func (*Document) Descriptor() ([]byte, []int)
- func (m *Document) GetBody() []byte
- func (m *Document) GetDoctype() string
- func (m *Document) GetName() string
- func (m *Document) GetSN() string
- func (*Document) ProtoMessage()
- func (m *Document) Reset()
- func (m *Document) String() string
- func (m *Document) XXX_DiscardUnknown()
- func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Document) XXX_Merge(src proto.Message)
- func (m *Document) XXX_Size() int
- func (m *Document) XXX_Unmarshal(b []byte) error
- type EvtType
- type GenericResponse
- func (*GenericResponse) Descriptor() ([]byte, []int)
- func (m *GenericResponse) GetErrMsg() string
- func (m *GenericResponse) GetEventType() EvtType
- func (*GenericResponse) ProtoMessage()
- func (m *GenericResponse) Reset()
- func (m *GenericResponse) String() string
- func (m *GenericResponse) XXX_DiscardUnknown()
- func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenericResponse) XXX_Merge(src proto.Message)
- func (m *GenericResponse) XXX_Size() int
- func (m *GenericResponse) XXX_Unmarshal(b []byte) error
- type Identifier
- func (*Identifier) Descriptor() ([]byte, []int)
- func (m *Identifier) GetId() string
- func (*Identifier) ProtoMessage()
- func (m *Identifier) Reset()
- func (m *Identifier) String() string
- func (m *Identifier) XXX_DiscardUnknown()
- func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Identifier) XXX_Merge(src proto.Message)
- func (m *Identifier) XXX_Size() int
- func (m *Identifier) XXX_Unmarshal(b []byte) error
- type LogEvent
- func (*LogEvent) Descriptor() ([]byte, []int)
- func (m *LogEvent) GetEventType() EvtType
- func (m *LogEvent) GetPayload() string
- func (m *LogEvent) GetSN() string
- func (m *LogEvent) GetTime() *Timestamp
- func (*LogEvent) ProtoMessage()
- func (m *LogEvent) Reset()
- func (m *LogEvent) String() string
- func (m *LogEvent) XXX_DiscardUnknown()
- func (m *LogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogEvent) XXX_Merge(src proto.Message)
- func (m *LogEvent) XXX_Size() int
- func (m *LogEvent) XXX_Unmarshal(b []byte) error
- type LogEvents
- func (*LogEvents) Descriptor() ([]byte, []int)
- func (m *LogEvents) GetEvt() []*LogEvent
- func (*LogEvents) ProtoMessage()
- func (m *LogEvents) Reset()
- func (m *LogEvents) String() string
- func (m *LogEvents) XXX_DiscardUnknown()
- func (m *LogEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogEvents) XXX_Merge(src proto.Message)
- func (m *LogEvents) XXX_Size() int
- func (m *LogEvents) XXX_Unmarshal(b []byte) error
- type LogServiceClient
- type LogServiceServer
- type MACs
- func (*MACs) Descriptor() ([]byte, []int)
- func (m *MACs) GetMAC() []string
- func (m *MACs) GetSN() string
- func (*MACs) ProtoMessage()
- func (m *MACs) Reset()
- func (m *MACs) String() string
- func (m *MACs) XXX_DiscardUnknown()
- func (m *MACs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MACs) XXX_Merge(src proto.Message)
- func (m *MACs) XXX_Size() int
- func (m *MACs) XXX_Unmarshal(b []byte) error
- type ProcessStage
- func (*ProcessStage) Descriptor() ([]byte, []int)
- func (m *ProcessStage) GetSN() string
- func (m *ProcessStage) GetState() ProcessState
- func (*ProcessStage) ProtoMessage()
- func (m *ProcessStage) Reset()
- func (m *ProcessStage) String() string
- func (m *ProcessStage) XXX_DiscardUnknown()
- func (m *ProcessStage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessStage) XXX_Merge(src proto.Message)
- func (m *ProcessStage) XXX_Size() int
- func (m *ProcessStage) XXX_Unmarshal(b []byte) error
- type ProcessState
- type RecordKeeperClient
- type RecordKeeperServer
- type SecretsClient
- type SecretsServer
- type TimekeeperClient
- type TimekeeperServer
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) GetTS() int64
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) String() string
- func (m *Timestamp) XXX_DiscardUnknown()
- func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Timestamp) XXX_Merge(src proto.Message)
- func (m *Timestamp) XXX_Size() int
- func (m *Timestamp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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",
}
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,
}
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",
}
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) ProtoMessage ¶
func (*Codename) ProtoMessage()
func (*Codename) XXX_DiscardUnknown ¶
func (m *Codename) XXX_DiscardUnknown()
func (*Codename) XXX_Marshal ¶
func (*Codename) XXX_Unmarshal ¶
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) GetDoctype ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) XXX_DiscardUnknown ¶
func (m *Document) XXX_DiscardUnknown()
func (*Document) XXX_Marshal ¶
func (*Document) XXX_Unmarshal ¶
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 ¶
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) GetEventType ¶
func (*LogEvent) GetPayload ¶
func (*LogEvent) ProtoMessage ¶
func (*LogEvent) ProtoMessage()
func (*LogEvent) XXX_DiscardUnknown ¶
func (m *LogEvent) XXX_DiscardUnknown()
func (*LogEvent) XXX_Marshal ¶
func (*LogEvent) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*LogEvents) ProtoMessage()
func (*LogEvents) XXX_DiscardUnknown ¶
func (m *LogEvents) XXX_DiscardUnknown()
func (*LogEvents) XXX_Marshal ¶
func (*LogEvents) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*MACs) ProtoMessage()
func (*MACs) XXX_DiscardUnknown ¶
func (m *MACs) XXX_DiscardUnknown()
func (*MACs) XXX_Unmarshal ¶
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 ¶
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) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) XXX_DiscardUnknown ¶
func (m *Timestamp) XXX_DiscardUnknown()