`cni.md` format code (#443)

Co-authored-by: yanhao <yanhao@tinman.cn>
pull/444/head
haoyann 2021-04-26 11:13:23 +08:00 committed by GitHub
parent da4a82f85d
commit eb365fb6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ Kubernetes 源码的 `vendor/github.com/containernetworking/cni/libcni` 目录
CNI 的接口中包括以下几个方法: CNI 的接口中包括以下几个方法:
```go ```go
type CNI interface {AddNetworkList (net *NetworkConfigList, rt *RuntimeConf) (types.Result, error) type CNI interface {
AddNetworkList (net *NetworkConfigList, rt *RuntimeConf) (types.Result, error)
DelNetworkList (net *NetworkConfigList, rt *RuntimeConf) error DelNetworkList (net *NetworkConfigList, rt *RuntimeConf) error
AddNetwork (net *NetworkConfig, rt *RuntimeConf) (types.Result, error) AddNetwork (net *NetworkConfig, rt *RuntimeConf) (types.Result, error)
DelNetwork (net *NetworkConfig, rt *RuntimeConf) error DelNetwork (net *NetworkConfig, rt *RuntimeConf) error
} }