Registry / networking / k8snetworkplumbingwg-network-attachment-definition-client

k8snetworkplumbingwg-network-attachment-definition-client

JSON →
library1.7.7gogounverified

Package network-attachment-definition-client provides a client for managing Kubernetes NetworkAttachmentDefinition custom resources.

go get github.com/k8snetworkplumbingwg/network-attachment-definition-client
INSTALL
IMPORT
SIG · K8SNETWORKPLUMBING
K
k8snetworkplumbingwg-network-attachment-definition-client
networkinggov1.7.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

networkattachmentdefinitionclient
github.com/k8snetworkplumbingwg/network-attachment-definition-client

List NetworkAttachmentDefinitions in a Kubernetes cluster.

package main import ( "context" "fmt" "github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/client/clientset/versioned" "k8s.io/client-go/tools/clientcmd" ) func main() { config, _ := clientcmd.BuildConfigFromFlags("", "") clientset, _ := versioned.NewForConfig(config) list, _ := clientset.K8sCniCncfIoV1().NetworkAttachmentDefinitions("default").List(context.TODO(), metav1.ListOptions{}) fmt.Println(len(list.Items)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.7.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
k8snetworkplumbingwg-network-attachment-definition-client — go get k8snetworkplumbingwg-network-attachment-definition-client · libregistry