()
| 159 | } |
| 160 | |
| 161 | func (ra *RemoveAdministrator) Validate() error { |
| 162 | // Let's enforce some rules. If we return an error, this operation will be |
| 163 | // considered invalid and will not be included in our data. |
| 164 | if len(ra.ToRemove) == 0 { |
| 165 | return fmt.Errorf("nothing to remove") |
| 166 | } |
| 167 | return ra.OpBase.Validate(ra, RemoveAdministratorOp) |
| 168 | } |
| 169 | |
| 170 | // Apply is the function that makes changes on the snapshot |
| 171 | func (ra *RemoveAdministrator) Apply(snapshot *Snapshot) { |