Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeAccessList ¶
type RuntimeAccessList struct { // RuntimeID is the runtime ID of the runtime this access list is for. RuntimeID common.Namespace `json:"runtime_id"` // Peers is a list of peers that are allowed to call protected methods. Peers []core.PeerID `json:"peers"` }
RuntimeAccessList is an access control lists for a runtime.
type Status ¶
type Status struct { // Status is a concise status of the key manager worker. Status StatusState `json:"status"` // MayGenerate returns whether the enclave can generate a master secret. MayGenerate bool `json:"may_generate"` // RuntimeID is the runtime ID of the key manager. RuntimeID *common.Namespace `json:"runtime_id"` // ClientRuntimes is a list of compute runtimes that use this key manager. ClientRuntimes []common.Namespace `json:"client_runtimes"` // AccessList is per-runtime list of peers that are allowed to call protected methods. AccessList []RuntimeAccessList `json:"access_list"` // PrivatePeers is a list of peers that are always allowed to call protected methods. PrivatePeers []core.PeerID `json:"private_peers"` }
Status is the key manager worker status.
type StatusState ¶
type StatusState uint8
StatusState is the concise status state of the key manager worker.
const ( // StatusStateReady is the ready status state. StatusStateReady StatusState = 0 // StatusStateStarting is the starting status state. StatusStateStarting StatusState = 1 // StatusStateStopped is the stopped status state. StatusStateStopped StatusState = 2 // StatusStateDisabled is the disabled status state. StatusStateDisabled StatusState = 3 )
func (StatusState) MarshalText ¶
func (s StatusState) MarshalText() ([]byte, error)
MarshalText encodes a StatusState into text form.
func (StatusState) String ¶
func (s StatusState) String() string
String returns a string representation of a status state.
func (*StatusState) UnmarshalText ¶
func (s *StatusState) UnmarshalText(text []byte) error
UnmarshalText decodes a text slice into a StatusState.
Click to show internal directories.
Click to hide internal directories.