()
| 122 | } |
| 123 | |
| 124 | func (aa *AddAdministrator) Validate() error { |
| 125 | // Let's enforce an arbitrary rule |
| 126 | if len(aa.ToAdd) == 0 { |
| 127 | return fmt.Errorf("nothing to add") |
| 128 | } |
| 129 | return aa.OpBase.Validate(aa, AddAdministratorOp) |
| 130 | } |
| 131 | |
| 132 | // Apply is the function that makes changes on the snapshot |
| 133 | func (aa *AddAdministrator) Apply(snapshot *Snapshot) { |