godpu

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

godpu

Linters CodeQL OpenSSF Scorecard Go Docker License codecov Go Report Card Go Doc Pulls Last Release GitHub stars GitHub Contributors

Go library and cli to communicate with DPUs and IPUs.

I Want To Contribute

This project welcomes contributions and suggestions. We are happy to have the Community involved via submission of Issues and Pull Requests (with substantive content or even just fixes). We are hoping for the documents, test framework, etc. to become a community process with active engagement. PRs can be reviewed by any number of people, and a maintainer may accept.

See CONTRIBUTING and GitHub Basic Process for more details.

Installation

There are several ways of running this CLI.

Docker
docker pull opiproject/godpu:<version>

You can specify a version like 0.1.1 or use latest to get the most up-to-date version.

Run latest version of the CLI in a container:

docker run --rm opiproject/godpu:latest --help

Replace --help with any godpu command, without godpu itself.

Golang
go install -v github.com/opiproject/godpu@latest

or import

import (
        "github.com/opiproject/godpu"
)

Tests

Test your APIs even if unmerged using your private fork like this:

chmod a+w go.*
docker run --rm -it -v `pwd`:/app -w /app golang:alpine go mod edit -replace github.com/opiproject/opi-api@main=github.com/YOURUSERNAME/opi-api@main
docker run --rm -it -v `pwd`:/app -w /app golang:alpine go get -u github.com/YOURUSERNAME/opi-api/storage/v1alpha1/gen/go@a98ca449468a
docker run --rm -it -v `pwd`:/app -w /app golang:alpine go mod tidy

Generate mocks like this:

go install github.com/vektra/mockery/v2@latest
make mock-generate

Documentation

Overview

Package main implements the CLI commands

Directories

Path Synopsis
Package cmd implements the CLI commands
Package cmd implements the CLI commands
Package grpc wraps common operations to create grpc connections
Package grpc wraps common operations to create grpc connections
Package inventory implements the go library for OPI to be used to query inventory
Package inventory implements the go library for OPI to be used to query inventory
Package ipsec implements the go library for OPI to be used to establish ipsec
Package ipsec implements the go library for OPI to be used to establish ipsec
Package network implements the go library for OPI to be used to establish networking
Package network implements the go library for OPI to be used to establish networking
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers
testing
mock-server/server
Package server implements mock gRPC services
Package server implements mock gRPC services
mock-server/stub
Package stub provides stub related functions
Package stub provides stub related functions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL