driver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Copyright 2019 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionJSON added in v0.2.0

func GetVersionJSON() (string, error)

Types

type Driver

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

func NewDriver

func NewDriver(endpoint, efsUtilsCfgPath, efsUtilsStaticFilesPath string) *Driver

func (*Driver) GetPluginInfo

func (d *Driver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)

func (*Driver) NodeExpandVolume added in v0.2.0

func (*Driver) NodeGetCapabilities

func (*Driver) NodeGetInfo

func (d *Driver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

func (*Driver) NodeGetVolumeStats added in v0.2.0

func (*Driver) NodePublishVolume

func (*Driver) NodeStageVolume

func (*Driver) NodeUnpublishVolume

func (*Driver) NodeUnstageVolume

func (*Driver) Probe

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

func (*Driver) Run

func (d *Driver) Run() error

type Mounter added in v0.3.0

type Mounter interface {
	mount.Interface
	MakeDir(pathname string) error
	GetDeviceName(mountPath string) (string, int, error)
}

Mounter is an interface for mount operations

type NodeMounter added in v0.3.0

type NodeMounter struct {
	mount.Interface
}

func (*NodeMounter) GetDeviceName added in v0.3.0

func (m *NodeMounter) GetDeviceName(mountPath string) (string, int, error)

func (*NodeMounter) MakeDir added in v0.3.0

func (m *NodeMounter) MakeDir(pathname string) error

type VersionInfo added in v0.2.0

type VersionInfo struct {
	DriverVersion   string `json:"driverVersion"`
	GitCommit       string `json:"gitCommit"`
	BuildDate       string `json:"buildDate"`
	EfsClientSource string `json:"efsClientSource"`
	GoVersion       string `json:"goVersion"`
	Compiler        string `json:"compiler"`
	Platform        string `json:"platform"`
}

func GetVersion added in v0.2.0

func GetVersion() VersionInfo

type Watchdog added in v0.3.0

type Watchdog interface {
	// contains filtered or unexported methods
}

Watchdog defines the interface for process monitoring and supervising

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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