service

package
v0.0.0-...-777870b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name : CSI Driver name
	Name = "csi.truenas.ar2ro.io"
	// VendorVersion : CSI version
	VendorVersion = "1.0.0"
	// UnixSocketPrefix : CSI Driver unix prefix
	UnixSocketPrefix = "unix://"
)

Variables

View Source
var Manifest = map[string]string{
	"url": "https://github.com/arturoguerra/truenas-csi",
}

Manifest : CSI Driver manifest

Functions

This section is empty.

Types

type Params

type Params struct {
	Dataset     string `json:"dataset"`
	FSType      string `json:"fstype"`
	Compression string `json:"compression"`
}

Params Example: StorageClass Parameters on k8s

type PublishContext

type PublishContext struct {
	IQN    string `json:"iqn"`
	Portal string `json:"portal"`
	LunID  int    `json:"lunid"`
}
 PublishContext
	Full Iqn path
	portal address
	lun id iqn lun

type Service

type Service interface {
	csi.ControllerServer
	csi.IdentityServer
	csi.NodeServer
}

Service : combines all the CSI Driver spec

func New

func New(logger *logrus.Logger, tnapi truenasapi.Client) Service

New : returns a new instance of the csi driver

type VolumeContext

type VolumeContext struct {
	Name    string `json:"name"`
	Dataset string `json:"dataset"`
	FSType  string `json:"fstype"`
}
 VolumeContext
	Volume Name
	FSType

Jump to

Keyboard shortcuts

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