Documentation
¶
Index ¶
- Constants
- Variables
- func AddVolumesToRemoteSG(ctx context.Context, remoteSymID string, pmaxClient pmax.Pmax) (bool, error)
- func GetOrCreateMigrationEnvironment(ctx context.Context, localSymID, remoteSymID string, pmaxClient pmax.Pmax) (*types.MigrationEnv, error)
- func ListContains(a []string, x string) bool
- func ResetCache()
- func StorageGroupCommit(ctx context.Context, symID, action string, pmaxClient pmax.Pmax) (bool, error)
- func StorageGroupMigration(ctx context.Context, symID, remoteSymID, clusterPrefix string, ...) (bool, error)
Constants ¶
const ( // CsiNoSrpSGPrefix to be used as filter CsiNoSrpSGPrefix = "csi-no-srp-sg-" // CsiVolumePrefix to be used as filter CsiVolumePrefix = "csi-" // Synchronized to be used for migration state check Synchronized = "Synchronized" // HostLimits to be used in SG payload HostLimits = "hostLimits" )
Variables ¶
var CacheReset bool
CacheReset is flag for cache
var NodePairs map[string]string
NodePairs contains - 0002D (local): 00031 (remote)
var SGToRemoteVols map[string][]string
SGToRemoteVols contains - csi-ABC-local-sg : [00031, ...]
Functions ¶
func AddVolumesToRemoteSG ¶
func AddVolumesToRemoteSG(ctx context.Context, remoteSymID string, pmaxClient pmax.Pmax) (bool, error)
AddVolumesToRemoteSG adds remote volumes to default SRP SG on remote array
func GetOrCreateMigrationEnvironment ¶
func GetOrCreateMigrationEnvironment(ctx context.Context, localSymID, remoteSymID string, pmaxClient pmax.Pmax) (*types.MigrationEnv, error)
GetOrCreateMigrationEnvironment creates migration environment between array pair
func ListContains ¶
ListContains return true if x is found in a[]
func StorageGroupCommit ¶
func StorageGroupCommit(ctx context.Context, symID, action string, pmaxClient pmax.Pmax) (bool, error)
StorageGroupCommit does a "commit" on all the migration session SG Returns true if not sessions found, all migration completed
func StorageGroupMigration ¶
func StorageGroupMigration(ctx context.Context, symID, remoteSymID, clusterPrefix string, pmaxClient pmax.Pmax) (bool, error)
StorageGroupMigration creates migration session for "no-srp" masking view storage groups 1. Remove volumes from default SRP SG 2. Create migration session for no-srp SG 3. Create default SRP storage group on remote array, and maintain a list of volumes to be added.
Types ¶
This section is empty.