Documentation ¶
Overview ¶
Package nodeidentity contains types and helper functions for GKE Nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CloudComputeInstanceIdentifierOID = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 1, 21}
CloudComputeInstanceIdentifierOID is an x509 Extension OID for VM Identity info.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct { Zone string `json:"zone"` ID uint64 `json:"id"` Name string `json:"name"` ProjectID uint64 `json:"project_id"` ProjectName string `json:"project_name"` }
Identity uniquely identifies a GCE VM.
func FromAIKCert ¶
func FromAIKCert(cert *x509.Certificate) (Identity, error)
FromAIKCert extracts VM Identity from cloudComputeInstanceIdentifier extension in cert.
func FromMetadata ¶
FromMetadata builds VM Identity from GCE Metadata using default client.
Click to show internal directories.
Click to hide internal directories.