This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package vendastacadence | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"timestamp": "2020-02-01T01:05:02.712Z", | |
"eventType": "WorkflowExecutionStarted", | |
"eventId": 1, | |
"details": { | |
"workflowType": { | |
"name": "workflow.StartMerchantReportWorkflow" | |
}, | |
"parentWorkflowDomain": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func GenCA(name string) (certPEM, keyPEM []byte, err error) { | |
now := time.Now().UTC() | |
tmpl := &x509.Certificate{ | |
SerialNumber: big.NewInt(1), | |
Subject: pkix.Name{CommonName: name}, | |
NotBefore: now, | |
NotAfter: now.Add(caMaxAge), | |
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, | |
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, | |
IsCA: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
API wrapper for cloud sql admin operations | |
""" | |
import httplib | |
import json | |
import logging | |
from google.appengine.api import app_identity, urlfetch | |
from google.appengine.ext.deferred import deferred |