Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultMSIResourceID is the default resource ID to use as the intended // audience of the MSI token. The current value is the service ID for the // Resource Manager API. DefaultMSIResourceID = "https://management.azure.com/" )
Variables ¶
This section is empty.
Functions ¶
func FetchMSIToken ¶
Types ¶
type ComputeMetadata ¶
type HTTPClientFunc ¶
type InstanceMetadata ¶
type InstanceMetadata struct {
Compute ComputeMetadata `json:"compute"`
}
func FetchInstanceMetadata ¶
func FetchInstanceMetadata(ctx context.Context, cl HTTPClient) (*InstanceMetadata, error)
type MSIAttestationData ¶
type MSIAttestationData struct {
Token string `json:"token"`
}
type MSITokenClaims ¶
func (*MSITokenClaims) AgentID ¶
func (c *MSITokenClaims) AgentID(trustDomain string) string
Click to show internal directories.
Click to hide internal directories.