Versions in this module Expand all Collapse all v0 v0.9.2 Oct 11, 2023 Changes in this version + func GetEdgeModuleEnvironmentVariables() (map[string]string, error) + func ParseConnectionString(cs string, require ...string) (map[string]string, error) + func RootCAs() *x509.CertPool + func TrustBundle(workloadURI string) (*x509.CertPool, error) + type ConnectionAuthMethod struct + Issuer string + Scope string + Type string + type EdgeSignRequestPayload struct + Algo string + Data string + KeyID string + func (esrp *EdgeSignRequestPayload) Validate() error + type EdgeSignRequestResponse struct + Digest string + Message string + type Message struct + ConnectionAuthMethod *ConnectionAuthMethod + ConnectionDeviceGenerationID string + ConnectionDeviceID string + CorrelationID string + EnqueuedTime *time.Time + ExpiryTime *time.Time + MessageID string + MessageSource string + Payload []byte + Properties map[string]string + To string + TransportOptions map[string]interface{} + UserID string + type SharedAccessKey struct + HostName string + SharedAccessKey string + SharedAccessKeyName string + func NewSharedAccessKey(hostname, policy, key string) *SharedAccessKey + func (c *SharedAccessKey) Token(resource string, lifetime time.Duration) (*SharedAccessSignature, error) + func (c *SharedAccessKey) TokenFromEdge(workloadURI, module, genid, resource string, lifetime time.Duration) (*SharedAccessSignature, error) + type SharedAccessSignature struct + Se time.Time + Sig string + Skn string + Sr string + func NewSharedAccessSignature(resource, policy, key string, expiry time.Time) (*SharedAccessSignature, error) + func NewSharedAccessSignatureFromEdge(workloadURI, module, genid, resource string, expiry time.Time) (*SharedAccessSignature, error) + func (sas *SharedAccessSignature) String() string + type TrustBundleResponse struct + Certificate string