*: appc/cni -> containernetworking/cni

The project has been moved so internally we simply rename everything.
Consumers are recommended to update their vendored version of cni.
This commit is contained in:
Stefan Junker 2016-05-04 16:06:05 +02:00
parent dbcecbcec6
commit ed5f8dfeb2
34 changed files with 76 additions and 76 deletions

View File

@ -14,9 +14,9 @@ contribution. See the [DCO](DCO) file for details.
# Email and Chat # Email and Chat
The project uses the the cni-dev email list and #appc on Freenode for chat: The project uses the the cni-dev email list and IRC chat:
- Email: [cni-dev](https://groups.google.com/forum/#!forum/cni-dev) - Email: [cni-dev](https://groups.google.com/forum/#!forum/cni-dev)
- IRC: #[appc](irc://irc.freenode.org:6667/#appc) IRC channel on freenode.org - IRC: #[containernetworking](irc://irc.freenode.org:6667/#containernetworking) channel on freenode.org
Please avoid emailing maintainers found in the MAINTAINERS file directly. They Please avoid emailing maintainers found in the MAINTAINERS file directly. They
are very busy and read the mailing lists. are very busy and read the mailing lists.

View File

@ -3,7 +3,7 @@
## Overview ## Overview
With dhcp plugin the containers can get an IP allocated by a DHCP server already running on your network. With dhcp plugin the containers can get an IP allocated by a DHCP server already running on your network.
This can be especially useful with plugin types such as [macvlan](https://github.com/appc/cni/blob/master/Documentation/macvlan.md). This can be especially useful with plugin types such as [macvlan](https://github.com/containernetworking/cni/blob/master/Documentation/macvlan.md).
Because a DHCP lease must be periodically renewed for the duration of container lifetime, a separate daemon is required to be running. Because a DHCP lease must be periodically renewed for the duration of container lifetime, a separate daemon is required to be running.
The same plugin binary can also be run in the daemon mode. The same plugin binary can also be run in the daemon mode.

View File

@ -32,7 +32,7 @@ It stores the state locally on the host filesystem, therefore ensuring uniquenes
* `routes` (string, optional): list of routes to add to the container namespace. Each route is a dictionary with "dst" and optional "gw" fields. If "gw" is omitted, value of "gateway" will be used. * `routes` (string, optional): list of routes to add to the container namespace. Each route is a dictionary with "dst" and optional "gw" fields. If "gw" is omitted, value of "gateway" will be used.
## Supported arguments ## Supported arguments
The following [CNI_ARGS](https://github.com/appc/cni/blob/master/SPEC.md#parameters) are supported: The following [CNI_ARGS](https://github.com/containernetworking/cni/blob/master/SPEC.md#parameters) are supported:
* `ip`: request a specific IP address from the subnet. If it's not available, the plugin will exit with an error * `ip`: request a specific IP address from the subnet. If it's not available, the plugin will exit with an error

2
Godeps/Godeps.json generated
View File

@ -1,5 +1,5 @@
{ {
"ImportPath": "github.com/appc/cni", "ImportPath": "github.com/containernetworking/cni",
"GoVersion": "go1.6", "GoVersion": "go1.6",
"Packages": [ "Packages": [
"./..." "./..."

View File

@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/appc/cni.svg?branch=master)](https://travis-ci.org/appc/cni) [![Build Status](https://travis-ci.org/containernetworking/cni.svg?branch=master)](https://travis-ci.org/containernetworking/cni)
[![Coverage Status](https://coveralls.io/repos/github/appc/cni/badge.svg?branch=master)](https://coveralls.io/github/appc/cni?branch=master) [![Coverage Status](https://coveralls.io/repos/github/containernetworking/cni/badge.svg?branch=master)](https://coveralls.io/github/containernetworking/cni?branch=master)
# CNI - the Container Network Interface # CNI - the Container Network Interface
@ -34,7 +34,7 @@ Hence we are proposing this specification, along with an initial set of plugins
## Contributing to CNI ## Contributing to CNI
We welcome contributions, including [bug reports](https://github.com/appc/cni/issues), and code and documentation improvements. We welcome contributions, including [bug reports](https://github.com/containernetworking/cni/issues), and code and documentation improvements.
If you intend to contribute to code or documentation, please read [CONTRIBUTING.md](CONTRIBUTING.md). Also see the [contact section](#contact) in this README. If you intend to contribute to code or documentation, please read [CONTRIBUTING.md](CONTRIBUTING.md). Also see the [contact section](#contact) in this README.
## How do I use CNI? ## How do I use CNI?
@ -156,6 +156,6 @@ If these topics of are interest please contact the team via the mailing list or
## Contact ## Contact
For any questions about CNI, please reach out on the mailing list or IRC: For any questions about CNI, please reach out on the mailing list:
- Email: [cni-dev](https://groups.google.com/forum/#!forum/cni-dev) - Email: [cni-dev](https://groups.google.com/forum/#!forum/cni-dev)
- IRC: #[appc](irc://irc.freenode.org:6667/#appc) IRC channel on freenode.org - IRC: #[containernetworking](irc://irc.freenode.org:6667/#containernetworking) channel on freenode.org

2
build
View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
ORG_PATH="github.com/appc" ORG_PATH="github.com/containernetworking"
REPO_PATH="${ORG_PATH}/cni" REPO_PATH="${ORG_PATH}/cni"
if [ ! -h gopath/src/${REPO_PATH} ]; then if [ ! -h gopath/src/${REPO_PATH} ]; then

View File

@ -20,7 +20,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/appc/cni/libcni" "github.com/containernetworking/cni/libcni"
) )
const ( const (

View File

@ -17,8 +17,8 @@ package libcni
import ( import (
"strings" "strings"
"github.com/appc/cni/pkg/invoke" "github.com/containernetworking/cni/pkg/invoke"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
type RuntimeConf struct { type RuntimeConf struct {

View File

@ -19,7 +19,7 @@ import (
"os" "os"
"strings" "strings"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
func DelegateAdd(delegatePlugin string, netconf []byte) (*types.Result, error) { func DelegateAdd(delegatePlugin string, netconf []byte) (*types.Result, error) {

View File

@ -21,7 +21,7 @@ import (
"os" "os"
"os/exec" "os/exec"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
func pluginErr(err error, output []byte) error { func pluginErr(err error, output []byte) error {

View File

@ -19,7 +19,7 @@ import (
"io/ioutil" "io/ioutil"
"path/filepath" "path/filepath"
"github.com/appc/cni/pkg/invoke" "github.com/containernetworking/cni/pkg/invoke"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )

View File

@ -20,7 +20,7 @@ import (
"net" "net"
"os" "os"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )

View File

@ -18,9 +18,9 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/appc/cni/pkg/invoke" "github.com/containernetworking/cni/pkg/invoke"
"github.com/appc/cni/pkg/ip" "github.com/containernetworking/cni/pkg/ip"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )

View File

@ -22,8 +22,8 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/testhelpers" "github.com/containernetworking/cni/pkg/testhelpers"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )

View File

@ -22,7 +22,7 @@ import (
"log" "log"
"os" "os"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
// CmdArgs captures all the arguments passed in to the plugin // CmdArgs captures all the arguments passed in to the plugin

View File

@ -25,7 +25,7 @@ import (
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
"github.com/appc/cni/pkg/testhelpers" "github.com/containernetworking/cni/pkg/testhelpers"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )

View File

@ -17,7 +17,7 @@ package types_test
import ( import (
"reflect" "reflect"
. "github.com/appc/cni/pkg/types" . "github.com/containernetworking/cni/pkg/types"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/ginkgo/extensions/table"

View File

@ -27,8 +27,8 @@ import (
"runtime" "runtime"
"sync" "sync"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/coreos/go-systemd/activation" "github.com/coreos/go-systemd/activation"
) )

View File

@ -27,8 +27,8 @@ import (
"github.com/d2g/dhcp4client" "github.com/d2g/dhcp4client"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
// RFC 2131 suggests using exponential backoff, starting with 4sec // RFC 2131 suggests using exponential backoff, starting with 4sec

View File

@ -20,8 +20,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
const socketPath = "/run/cni/dhcp.sock" const socketPath = "/run/cni/dhcp.sock"

View File

@ -20,7 +20,7 @@ import (
"net" "net"
"time" "time"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/d2g/dhcp4" "github.com/d2g/dhcp4"
) )

View File

@ -18,7 +18,7 @@ import (
"net" "net"
"testing" "testing"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/d2g/dhcp4" "github.com/d2g/dhcp4"
) )

View File

@ -18,9 +18,9 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/appc/cni/pkg/ip" "github.com/containernetworking/cni/pkg/ip"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/appc/cni/plugins/ipam/host-local/backend" "github.com/containernetworking/cni/plugins/ipam/host-local/backend"
) )
type IPAllocator struct { type IPAllocator struct {

View File

@ -19,7 +19,7 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
// IPAMConfig represents the IP related network configuration. // IPAMConfig represents the IP related network configuration.

View File

@ -15,10 +15,10 @@
package main package main
import ( import (
"github.com/appc/cni/plugins/ipam/host-local/backend/disk" "github.com/containernetworking/cni/plugins/ipam/host-local/backend/disk"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
func main() { func main() {

View File

@ -23,12 +23,12 @@ import (
"runtime" "runtime"
"syscall" "syscall"
"github.com/appc/cni/pkg/ip" "github.com/containernetworking/cni/pkg/ip"
"github.com/appc/cni/pkg/ipam" "github.com/containernetworking/cni/pkg/ipam"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/appc/cni/pkg/utils" "github.com/containernetworking/cni/pkg/utils"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )

View File

@ -21,11 +21,11 @@ import (
"os" "os"
"runtime" "runtime"
"github.com/appc/cni/pkg/ip" "github.com/containernetworking/cni/pkg/ip"
"github.com/appc/cni/pkg/ipam" "github.com/containernetworking/cni/pkg/ipam"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )

View File

@ -17,9 +17,9 @@ package main
import ( import (
"os" "os"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )

View File

@ -32,7 +32,7 @@ func TestLoopback(t *testing.T) {
var _ = BeforeSuite(func() { var _ = BeforeSuite(func() {
var err error var err error
pathToLoPlugin, err = gexec.Build("github.com/appc/cni/plugins/main/loopback") pathToLoPlugin, err = gexec.Build("github.com/containernetworking/cni/plugins/main/loopback")
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
}) })

View File

@ -21,8 +21,8 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/testhelpers" "github.com/containernetworking/cni/pkg/testhelpers"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/gbytes"

View File

@ -21,12 +21,12 @@ import (
"os" "os"
"runtime" "runtime"
"github.com/appc/cni/pkg/ip" "github.com/containernetworking/cni/pkg/ip"
"github.com/appc/cni/pkg/ipam" "github.com/containernetworking/cni/pkg/ipam"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/appc/cni/pkg/utils/sysctl" "github.com/containernetworking/cni/pkg/utils/sysctl"
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
) )

View File

@ -24,12 +24,12 @@ import (
"github.com/vishvananda/netlink" "github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ip" "github.com/containernetworking/cni/pkg/ip"
"github.com/appc/cni/pkg/ipam" "github.com/containernetworking/cni/pkg/ipam"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
"github.com/appc/cni/pkg/utils" "github.com/containernetworking/cni/pkg/utils"
) )
func init() { func init() {

View File

@ -29,9 +29,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/appc/cni/pkg/invoke" "github.com/containernetworking/cni/pkg/invoke"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
const ( const (

View File

@ -25,9 +25,9 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/appc/cni/pkg/ns" "github.com/containernetworking/cni/pkg/ns"
"github.com/appc/cni/pkg/skel" "github.com/containernetworking/cni/pkg/skel"
"github.com/appc/cni/pkg/types" "github.com/containernetworking/cni/pkg/types"
) )
// TuningConf represents the network tuning configuration. // TuningConf represents the network tuning configuration.