blob: 77ede10591d145e6e36cd21d23f911fa2235ddf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package main
import (
"fmt"
"github.com/levigross/grequests"
"log"
certservice_provisioner "onap.org/oom-certservice/k8s-external-provider/src/certservice-provisioner"
)
func main() {
fmt.Println(" *** Hello World Golang App ***")
fmt.Println()
resp, err := grequests.Get("http://jenkins.onap.org/", nil)
if err != nil {
log.Fatalln("Unable to make request: ", err)
}
fmt.Println("Checking if jenkins.onap.org is reachable:", resp.StatusCode)
fmt.Println("Signing certificate...")
certservice_provisioner.SignCertificate()
}
|