Versions in this module Expand all Collapse all v1 v1.0.0 Mar 26, 2024 Changes in this version + func NewFakeSafeFormatAndMounter(fakeMounter mount.Interface) *mount.SafeFormatAndMount + func NewSafeMounter() *mount.SafeFormatAndMount + type FakeMetadataGetter struct + func NewFakeMetadataGetter(instID, zoneID string) *FakeMetadataGetter + func (f *FakeMetadataGetter) InstanceID() (string, error) + func (f *FakeMetadataGetter) ZoneID() (string, error) + type FakeVolumeStats struct + func (f FakeVolumeStats) GetVolumeStats(s string) (bytesStats, inodeStats *VolStats, err error) + type FileXattrs interface + SetImmutable func(target string) error + UnsetImmutable func(target string) error + type Options struct + MaxVolumesPerNode int + func DefaultOptions() Options + type Service struct + func New(mounter *mount.SafeFormatAndMount, hostUtil hostutil.HostUtils, ...) *Service + func NewTestNodeService(mounter mount.Interface, hostUtil hostutil.HostUtils, fileXattrs FileXattrs, ...) *Service + func (n *Service) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error) + func (n *Service) NodeGetCapabilities(context.Context, *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error) + func (n *Service) NodeGetInfo(context.Context, *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error) + func (n *Service) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error) + func (n *Service) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error) + func (n *Service) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error) + func (n *Service) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error) + func (n *Service) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error) + type VolStats struct + Available int64 + Total int64 + Used int64 + type VolumeStats interface + GetVolumeStats func(string) (*VolStats, *VolStats, error)