kubernetes: k8s.io/kubernetes/pkg/volume/csi/fake Index | Files

package fake

import "k8s.io/kubernetes/pkg/volume/csi/fake"

Index

Package Files

fake_client.go fake_closer.go

type CSIVolume Uses

type CSIVolume struct {
    VolumeHandle    string
    VolumeContext   map[string]string
    Path            string
    DeviceMountPath string
    FSType          string
    MountFlags      []string
}

type Closer Uses

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

func NewCloser Uses

func NewCloser(t *testing.T) *Closer

func (*Closer) Check Uses

func (c *Closer) Check() *Closer

func (*Closer) Close Uses

func (c *Closer) Close() error

type ControllerClient Uses

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

ControllerClient represents a CSI Controller client

func NewControllerClient Uses

func NewControllerClient() *ControllerClient

NewControllerClient returns a ControllerClient

func (*ControllerClient) ControllerGetCapabilities Uses

func (f *ControllerClient) ControllerGetCapabilities(ctx context.Context, in *csipb.ControllerGetCapabilitiesRequest, opts ...grpc.CallOption) (*csipb.ControllerGetCapabilitiesResponse, error)

ControllerGetCapabilities implements csi method

func (*ControllerClient) ControllerPublishVolume Uses

func (f *ControllerClient) ControllerPublishVolume(ctx context.Context, in *csipb.ControllerPublishVolumeRequest, opts ...grpc.CallOption) (*csipb.ControllerPublishVolumeResponse, error)

ControllerPublishVolume implements csi method

func (*ControllerClient) ControllerUnpublishVolume Uses

func (f *ControllerClient) ControllerUnpublishVolume(ctx context.Context, in *csipb.ControllerUnpublishVolumeRequest, opts ...grpc.CallOption) (*csipb.ControllerUnpublishVolumeResponse, error)

ControllerUnpublishVolume implements csi method

func (*ControllerClient) CreateVolume Uses

func (f *ControllerClient) CreateVolume(ctx context.Context, in *csipb.CreateVolumeRequest, opts ...grpc.CallOption) (*csipb.CreateVolumeResponse, error)

CreateVolume implements csi method

func (*ControllerClient) DeleteVolume Uses

func (f *ControllerClient) DeleteVolume(ctx context.Context, in *csipb.DeleteVolumeRequest, opts ...grpc.CallOption) (*csipb.DeleteVolumeResponse, error)

DeleteVolume implements csi method

func (*ControllerClient) GetCapacity Uses

func (f *ControllerClient) GetCapacity(ctx context.Context, in *csipb.GetCapacityRequest, opts ...grpc.CallOption) (*csipb.GetCapacityResponse, error)

GetCapacity implements csi method

func (*ControllerClient) ListVolumes Uses

func (f *ControllerClient) ListVolumes(ctx context.Context, in *csipb.ListVolumesRequest, opts ...grpc.CallOption) (*csipb.ListVolumesResponse, error)

ListVolumes implements csi method

func (*ControllerClient) SetNextCapabilities Uses

func (f *ControllerClient) SetNextCapabilities(caps []*csipb.ControllerServiceCapability)

SetNextCapabilities injects next expected capabilities

func (*ControllerClient) SetNextError Uses

func (f *ControllerClient) SetNextError(err error)

SetNextError injects next expected error

func (*ControllerClient) ValidateVolumeCapabilities Uses

func (f *ControllerClient) ValidateVolumeCapabilities(ctx context.Context, in *csipb.ValidateVolumeCapabilitiesRequest, opts ...grpc.CallOption) (*csipb.ValidateVolumeCapabilitiesResponse, error)

ValidateVolumeCapabilities implements csi method

type IdentityClient Uses

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

IdentityClient is a CSI identity client used for testing

func NewIdentityClient Uses

func NewIdentityClient() *IdentityClient

NewIdentityClient returns a new IdentityClient

func (*IdentityClient) GetPluginCapabilities Uses

func (f *IdentityClient) GetPluginCapabilities(ctx context.Context, in *csipb.GetPluginCapabilitiesRequest, opts ...grpc.CallOption) (*csipb.GetPluginCapabilitiesResponse, error)

GetPluginCapabilities implements csi method

func (*IdentityClient) GetPluginInfo Uses

func (f *IdentityClient) GetPluginInfo(ctx context.Context, in *csipb.GetPluginInfoRequest, opts ...grpc.CallOption) (*csipb.GetPluginInfoResponse, error)

GetPluginInfo returns plugin info

func (*IdentityClient) Probe Uses

func (f *IdentityClient) Probe(ctx context.Context, in *csipb.ProbeRequest, opts ...grpc.CallOption) (*csipb.ProbeResponse, error)

Probe implements csi method

func (*IdentityClient) SetNextError Uses

func (f *IdentityClient) SetNextError(err error)

SetNextError injects expected error

type NodeClient Uses

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

NodeClient returns CSI node client

func NewNodeClient Uses

func NewNodeClient(stageUnstageSet bool) *NodeClient

NewNodeClient returns fake node client

func NewNodeClientWithExpansion Uses

func NewNodeClientWithExpansion(stageUnstageSet bool, expansionSet bool) *NodeClient

func NewNodeClientWithVolumeStats Uses

func NewNodeClientWithVolumeStats(volumeStatsSet bool) *NodeClient

func (*NodeClient) AddNodeStagedVolume Uses

func (f *NodeClient) AddNodeStagedVolume(volID, deviceMountPath string, volumeContext map[string]string)

func (*NodeClient) GetNodePublishedVolumes Uses

func (f *NodeClient) GetNodePublishedVolumes() map[string]CSIVolume

GetNodePublishedVolumes returns node published volumes

func (*NodeClient) GetNodeStagedVolumes Uses

func (f *NodeClient) GetNodeStagedVolumes() map[string]CSIVolume

GetNodeStagedVolumes returns node staged volumes

func (*NodeClient) NodeExpandVolume Uses

func (f *NodeClient) NodeExpandVolume(ctx context.Context, req *csipb.NodeExpandVolumeRequest, opts ...grpc.CallOption) (*csipb.NodeExpandVolumeResponse, error)

NodeExpandVolume implements csi method

func (*NodeClient) NodeGetCapabilities Uses

func (f *NodeClient) NodeGetCapabilities(ctx context.Context, in *csipb.NodeGetCapabilitiesRequest, opts ...grpc.CallOption) (*csipb.NodeGetCapabilitiesResponse, error)

NodeGetCapabilities implements csi method

func (*NodeClient) NodeGetInfo Uses

func (f *NodeClient) NodeGetInfo(ctx context.Context, in *csipb.NodeGetInfoRequest, opts ...grpc.CallOption) (*csipb.NodeGetInfoResponse, error)

NodeGetId implements csi method

func (*NodeClient) NodeGetVolumeStats Uses

func (f *NodeClient) NodeGetVolumeStats(ctx context.Context, req *csipb.NodeGetVolumeStatsRequest, opts ...grpc.CallOption) (*csipb.NodeGetVolumeStatsResponse, error)

NodeGetVolumeStats implements csi method

func (*NodeClient) NodePublishVolume Uses

func (f *NodeClient) NodePublishVolume(ctx context.Context, req *csipb.NodePublishVolumeRequest, opts ...grpc.CallOption) (*csipb.NodePublishVolumeResponse, error)

NodePublishVolume implements CSI NodePublishVolume

func (*NodeClient) NodeStageVolume Uses

func (f *NodeClient) NodeStageVolume(ctx context.Context, req *csipb.NodeStageVolumeRequest, opts ...grpc.CallOption) (*csipb.NodeStageVolumeResponse, error)

NodeStagevolume implements csi method

func (*NodeClient) NodeUnpublishVolume Uses

func (f *NodeClient) NodeUnpublishVolume(ctx context.Context, req *csipb.NodeUnpublishVolumeRequest, opts ...grpc.CallOption) (*csipb.NodeUnpublishVolumeResponse, error)

NodeUnpublishVolume implements csi method

func (*NodeClient) NodeUnstageVolume Uses

func (f *NodeClient) NodeUnstageVolume(ctx context.Context, req *csipb.NodeUnstageVolumeRequest, opts ...grpc.CallOption) (*csipb.NodeUnstageVolumeResponse, error)

NodeUnstageVolume implements csi method

func (*NodeClient) SetNextError Uses

func (f *NodeClient) SetNextError(err error)

SetNextError injects next expected error

func (*NodeClient) SetNodeGetInfoResp Uses

func (f *NodeClient) SetNodeGetInfoResp(resp *csipb.NodeGetInfoResponse)

func (*NodeClient) SetNodeVolumeStatsResp Uses

func (f *NodeClient) SetNodeVolumeStatsResp(resp *csipb.NodeGetVolumeStatsResponse)

Package fake imports 6 packages (graph). Updated 2019-07-19. Refresh now. Tools for package owners.