Go version 1.18 or newer is needed. "make" tool is also needed to utilize the Makefile.
To run the dpservice-cli client build the binary first and then use it with commands and flags:
make build
./bin/dpservice-cli -h
This will build the binary at bin/dpservice-cli
.
To install it on a system where GOBIN
is part of the PATH
,
run
make install
To generate autocompletion use:
dpservice-cli completion [bash|zsh|fish|powershell]
Or use -h to get more info and examples for specific shell:
dpservice-cli completion -h
This client uses golang bindings from repo dpservice-go.
Definition go files in proto folder are auto-generated from dpdk.proto file in dpservice repo.
In case of upgrade of dpservice-go, it is needed to pull the latest version:
go get github.com/ironcore-dev/dpservice-go@[<version>|latest]
In order to pull from private repository set the GOPRIVATE variable:
export GOPRIVATE=github.com/ironcore-dev/*
More info about gRPC can be found here.