Documentation ¶
Overview ¶
Copyright 2019 NetApp, Inc. All Rights Reserved.
Index ¶
- type Plugin
- func (p *Plugin) Activate() error
- func (p *Plugin) Deactivate() error
- func (p *Plugin) GetName() string
- func (p *Plugin) GetSnapshotConfig(volumeName, snapshotName string) (*storage.SnapshotConfig, error)
- func (p *Plugin) GetVolumeConfig(name string, sizeBytes int64, parameters map[string]string, ...) (*storage.VolumeConfig, error)
- func (p *Plugin) RecordVolumeEvent(name, eventType, reason, message string)
- func (p *Plugin) SupportsFeature(feature helpers.Feature) bool
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewPlugin ¶
func NewPlugin(orchestrator core.Orchestrator) *Plugin
NewPlugin instantiates this plugin.
func (*Plugin) Deactivate ¶
Deactivate stops this Trident frontend.
func (*Plugin) GetSnapshotConfig ¶
func (p *Plugin) GetSnapshotConfig(volumeName, snapshotName string) (*storage.SnapshotConfig, error)
GetSnapshotConfig accepts the attributes of a snapshot being requested by the CSI provisioner and returns a SnapshotConfig structure as needed by Trident to create a new snapshot.
func (*Plugin) GetVolumeConfig ¶
func (p *Plugin) GetVolumeConfig( name string, sizeBytes int64, parameters map[string]string, protocol config.Protocol, accessModes []config.AccessMode, volumeMode config.VolumeMode, fsType string, ) (*storage.VolumeConfig, error)
GetVolumeConfig accepts the attributes of a volume being requested by the CSI provisioner, finds or creates/registers a matching storage class, and returns a VolumeConfig structure as needed by Trident to create a new volume.
func (*Plugin) RecordVolumeEvent ¶
RecordVolumeEvent accepts the name of a CSI volume and writes the specified event message to the debug log.
func (*Plugin) SupportsFeature ¶
SupportsFeature accepts a CSI feature and returns true if the feature exists and is supported.