* *set one storage group *param *storageGroupId: string, storage group name (starts from root) *return *error: correctness of operation */
(storageGroupId string)
| 229 | *error: correctness of operation |
| 230 | */ |
| 231 | func (s *Session) SetStorageGroup(storageGroupId string) error { |
| 232 | r, err := s.client.SetStorageGroup(context.Background(), s.sessionId, storageGroupId) |
| 233 | if err != nil && r == nil { |
| 234 | if s.reconnect() { |
| 235 | r, err = s.client.SetStorageGroup(context.Background(), s.sessionId, storageGroupId) |
| 236 | } |
| 237 | } |
| 238 | if err != nil { |
| 239 | return err |
| 240 | } |
| 241 | return VerifySuccess(r) |
| 242 | } |
| 243 | |
| 244 | /* |
| 245 | *delete one storage group |
nothing calls this directly
no test coverage detected