Created
June 1, 2016 23:43
-
-
Save euank/c6c4ebce967f914d945992cd44c95367 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 main | |
| import ( | |
| "fmt" | |
| rktapi "github.com/coreos/rkt/api/v1alpha" | |
| "golang.org/x/net/context" | |
| "google.golang.org/grpc" | |
| ) | |
| func main() { | |
| apisvcConn, err := grpc.Dial("localhost:15441", grpc.WithInsecure()) | |
| if err != nil { | |
| panic(err) | |
| } | |
| rkt := rktapi.NewPublicAPIClient(apisvcConn) | |
| r, e := rkt.ListPods(context.Background(), &rktapi.ListPodsRequest{ | |
| Detail: true, | |
| }) | |
| fmt.Printf("Err: %v, Resp: %v", e, r) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment