driver

package
v0.0.0-...-7e4a9ba Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 30 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

func GetVersionJSON() (string, error)

func ParseEndpoint

func ParseEndpoint(ep string) (string, string, error)

Types

type Config

type Config struct {
	// Region          string
	Filer string
}

Config holds values to configure the driver

type ControllerServer

type ControllerServer struct {
	Driver *SeaweedFsDriver
}

func NewControllerServer

func NewControllerServer(d *SeaweedFsDriver) *ControllerServer

func (*ControllerServer) ControllerExpandVolume

func (*ControllerServer) ControllerGetCapabilities

ControllerGetCapabilities implements the default GRPC callout. Default supports all capabilities

func (*ControllerServer) ControllerPublishVolume

func (*ControllerServer) CreateSnapshot

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteSnapshot

func (*ControllerServer) DeleteVolume

func (*ControllerServer) GetCapacity

func (*ControllerServer) ListSnapshots

func (*ControllerServer) ListVolumes

type IdentityServer

type IdentityServer struct {
	Driver *SeaweedFsDriver
}

func NewIdentityServer

func NewIdentityServer(d *SeaweedFsDriver) *IdentityServer

func (*IdentityServer) GetPluginCapabilities

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

type Mounter

type Mounter interface {
	Mount(target string) error
}

type NodeServer

type NodeServer struct {
	Driver *SeaweedFsDriver
	// contains filtered or unexported fields
}

func NewNodeServer

func NewNodeServer(n *SeaweedFsDriver) *NodeServer

func (*NodeServer) NodeExpandVolume

func (*NodeServer) NodeGetCapabilities

func (*NodeServer) NodeGetInfo

func (*NodeServer) NodeGetVolumeStats

func (*NodeServer) NodePublishVolume

func (*NodeServer) NodeStageVolume

func (*NodeServer) NodeUnpublishVolume

func (*NodeServer) NodeUnstageVolume

type NonBlockingGRPCServer

type NonBlockingGRPCServer interface {
	// Start services at the endpoint
	Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)
	// Waits for the service to stop
	Wait()
	// Stops the service gracefully
	Stop()
	// Stops the service forcefully
	ForceStop()
}

Defines Non blocking GRPC server interfaces

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

type SeaweedFsDriver

type SeaweedFsDriver struct {
	ConcurrentWriters int
	// contains filtered or unexported fields
}

func NewSeaweedFsDriver

func NewSeaweedFsDriver(filer, nodeID, endpoint string) *SeaweedFsDriver

func (*SeaweedFsDriver) AddControllerServiceCapabilities

func (n *SeaweedFsDriver) AddControllerServiceCapabilities(cl []csi.ControllerServiceCapability_RPC_Type)

func (*SeaweedFsDriver) AddVolumeCapabilityAccessModes

func (n *SeaweedFsDriver) AddVolumeCapabilityAccessModes(vc []csi.VolumeCapability_AccessMode_Mode) []*csi.VolumeCapability_AccessMode

func (*SeaweedFsDriver) AdjustedUrl

func (d *SeaweedFsDriver) AdjustedUrl(location *filer_pb.Location) string

func (*SeaweedFsDriver) Run

func (n *SeaweedFsDriver) Run()

func (*SeaweedFsDriver) ValidateControllerServiceRequest

func (d *SeaweedFsDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error

func (*SeaweedFsDriver) WithFilerClient

func (d *SeaweedFsDriver) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) error) error

type VersionInfo

type VersionInfo struct {
	DriverVersion string `json:"driverVersion"`
	GitCommit     string `json:"gitCommit"`
	BuildDate     string `json:"buildDate"`
	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