Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientStateTypeV2 = "client-state/2" ClientStateTypeV3 = "client-state/3" ClientStateType = ClientStateTypeV3 // DefaultVendorSubdir is the name of the subdirectory we create in various common locations (f.e. /var, /etc) to store our data // note: if you change this name, you also have to modify the reference in the windows installer wix main xml file DefaultVendorSubdir string = "immune-guard" )
Variables ¶
Functions ¶
func DefaultStateDirs ¶
func DefaultStateDirs() []string
DefaultStateDir returns all candidates for the config data dir in order of writing.
Types ¶
type DeviceKey ¶
type DeviceKey DeviceKeyV3
type DeviceKeyV3 ¶
type StateTpmKey ¶
type StateV2 ¶
type StateV2 struct { Ty string `json:"type"` EndorsementKey api.PublicKey `json:"ek"` EndorsementCertificate *api.Certificate `json:"ek-certificate"` RootKeyAuth string `json:"root-key-auth"` QuoteKey StateTpmKey `json:"quote-key"` }
Mutable run time data.
type StateV3 ¶
type StateV3 struct { Ty string `json:"type"` // v3.1 (deprecated) StubSeed api.Buffer `json:"stub-seed,omitempty"` // v3.2 StubState *StubState `json:"stub-state,omitempty"` // /v2/enroll Keys map[string]DeviceKeyV3 `json:"keys"` Root RootKeyV3 `json:"root"` EndorsementKey api.PublicKey `json:"ek"` EndorsementCertificate *api.Certificate `json:"ek-certificate"` // /v2/configuration LastUpdate time.Time `json:"last_update,string"` Config api.Configuration `json:"config"` }
func (*StateV3) EnsureFresh ¶
returns true if a new config was fetched
func (*StateV3) IsEnrolled ¶
Click to show internal directories.
Click to hide internal directories.