driver

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0, MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSIDriverName   = "gcs.csi.ofek.dev"
	BucketMountPath = "/var/lib/kubelet/pods"
	KeyStoragePath  = "/tmp/keys"
	DefaultGid      = 63147
	DefaultDirMode  = 0775
	DefaultFileMode = 0664
)

Variables

This section is empty.

Functions

func GetVersionJSON

func GetVersionJSON() (string, error)

Types

type GCSDriver

type GCSDriver struct {
	// contains filtered or unexported fields
}

func NewGCSDriver

func NewGCSDriver(name, node, endpoint string, version string, deleteOrphanedPods bool) (*GCSDriver, error)

func (*GCSDriver) ControllerGetVolume added in v0.9.0

func (*GCSDriver) CreateSnapshot

func (*GCSDriver) CreateVolume

func (*GCSDriver) DeleteSnapshot

func (*GCSDriver) DeleteVolume

func (*GCSDriver) GetCapacity

func (*GCSDriver) GetPluginCapabilities

func (*GCSDriver) GetPluginInfo

func (*GCSDriver) ListSnapshots

func (*GCSDriver) ListVolumes

func (*GCSDriver) NodeExpandVolume

func (driver *GCSDriver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)

func (*GCSDriver) NodeGetCapabilities

func (driver *GCSDriver) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)

func (*GCSDriver) NodeGetInfo

func (driver *GCSDriver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

func (*GCSDriver) NodeGetVolumeStats

func (driver *GCSDriver) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)

func (*GCSDriver) NodePublishVolume

func (driver *GCSDriver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)

func (*GCSDriver) NodeStageVolume

func (driver *GCSDriver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)

func (*GCSDriver) NodeUnpublishVolume

func (driver *GCSDriver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (response *csi.NodeUnpublishVolumeResponse, err error)

func (*GCSDriver) NodeUnstageVolume

func (driver *GCSDriver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)

func (*GCSDriver) Probe

func (d *GCSDriver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)

func (*GCSDriver) Run

func (d *GCSDriver) Run() error

func (*GCSDriver) RunPodCleanup

func (d *GCSDriver) RunPodCleanup() (err error)

type VersionInfo

type VersionInfo struct {
	DriverVersion string `json:"driverVersion"`
	GoVersion     string `json:"goVersion"`
	Compiler      string `json:"compiler"`
	Platform      string `json:"platform"`
}

func GetVersion

func GetVersion() VersionInfo

Jump to

Keyboard shortcuts

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