Skip to content

Instantly share code, notes, and snippets.

@euank
Created June 1, 2016 23:43
Show Gist options
  • Select an option

  • Save euank/c6c4ebce967f914d945992cd44c95367 to your computer and use it in GitHub Desktop.

Select an option

Save euank/c6c4ebce967f914d945992cd44c95367 to your computer and use it in GitHub Desktop.
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