-
Notifications
You must be signed in to change notification settings - Fork 20
/
session.go
45 lines (37 loc) · 1.37 KB
/
session.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*******************************************************************************
* IBM Confidential
* OCO Source Materials
* IBM Cloud Container Service, 5737-D43
* (C) Copyright IBM Corp. 2018 All Rights Reserved.
* The source code for this program is not published or otherwise divested of
* its trade secrets, irrespective of what has been deposited with
* the U.S. Copyright Office.
******************************************************************************/
package softlayer_file
import (
"github.com/IBM/ibmcloud-storage-volume-lib/lib/provider"
"github.com/IBM/ibmcloud-storage-volume-lib/volume-providers/softlayer/common"
)
const (
// Softlayer storage provider
SoftLayer = provider.VolumeProvider("SOFTLAYER-FILE")
SoftLayerEndurance = provider.VolumeProviderType("SOFTLAYER_ENDURANCE")
SoftLayerPerformance = provider.VolumeProviderType("SOFTLAYER_PERFORMANCE")
VolumeTypeFile = provider.VolumeType("file")
)
// SLFileSession implements lib.Session
type SLFileSession struct {
common.SLSession
}
// Close at present does nothing
func (*SLFileSession) Close() {
// Do nothing for now
}
// GetProviderDisplayName returns the name of the SoftLayer provider
// DEPRECATED
func (sls *SLFileSession) GetProviderDisplayName() provider.VolumeProvider {
return SoftLayer
}
func (sls *SLFileSession) ProviderName() provider.VolumeProvider {
return SoftLayer
}