Rename InsertMinion to CreateMinion.

This commit is contained in:
Deyuan Deng
2014-10-06 16:37:46 -04:00
parent 4a35325f29
commit c3d9197a4b
12 changed files with 15 additions and 16 deletions

View File

@@ -52,7 +52,7 @@ func (r *MinionRegistry) ListMinions(ctx api.Context) (*api.MinionList, error) {
return &r.Minions, r.Err
}
func (r *MinionRegistry) InsertMinion(ctx api.Context, minion *api.Minion) error {
func (r *MinionRegistry) CreateMinion(ctx api.Context, minion *api.Minion) error {
r.Lock()
defer r.Unlock()
r.Minion = minion.ID