Registry / cloud / kubernetes-csi-external-snapshotter-client-v6

kubernetes-csi-external-snapshotter-client-v6

JSON →
library6.3.0gogounverified

Client library for interacting with the Kubernetes CSI external snapshotter API.

go get github.com/kubernetes-csi/external-snapshotter/client/v6
INSTALL
IMPORT
SIG · KUBERNETES-CSI-EXT
K
kubernetes-csi-external-snapshotter-client-v6
cloudgov6.3.0
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.

client
github.com/kubernetes-csi/external-snapshotter/client/v6

List VolumeSnapshotClasses using the CSI snapshotter client

package main import ( "context" "fmt" clientset "github.com/kubernetes-csi/external-snapshotter/client/v6/clientset/versioned" "k8s.io/client-go/tools/clientcmd" ) func main() { config, err := clientcmd.BuildConfigFromFlags("", "") if err != nil { panic(err) } client, err := clientset.NewForConfig(config) if err != nil { panic(err) } volSnapClasses, err := client.SnapshotV1().VolumeSnapshotClasses().List(context.TODO(), metav1.ListOptions{}) if err != nil { panic(err) } fmt.Printf("Found %d VolumeSnapshotClasses\n", len(volSnapClasses.Items)) }
Debug
Known issues
breakingVersion 6.x requires Kubernetes 1.20+ and specific CRD versions
fix
Ensure your cluster has the required VolumeSnapshot CRDs installed and is running Kubernetes 1.20 or later.
affects: >=6.0.0
Upgrade
Version history
6.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Bingbot
1
OpenAI (training)
1
Resources
kubernetes-csi-external-snapshotter-client-v6 — go get kubernetes-csi-external-snapshotter-client-v6 · libregistry