// GetSlaveByID returns specific slave with given ID.
GetSlaveByID returns specific slave with given ID.
// GetSlaveByID returns specific slave with given ID .
func (c *Client) GetSlaveByID(ID string) (Slave, error) {
	slaves, err := c.ListSlaves()
	if err != nil {
		return Slave{}, err
	}
	for _, slave := range slaves {
		if slave.ID == ID {
			return slave, nil
		}
	}
	return Slave{}, fmt.Errorf("slave ID %s not found", ID)
}
func ( c * Client ) GetSlaveByID ( ID string ) ( Slave , error ) { slaves , err := c . ListSlaves ( ) if err != nil { return Slave { } , err } for _ , slave := range slaves { if slave . ID == ID { return slave , nil } } return Slave { } , fmt . Errorf ( " " , ID ) }
GetSlaveByID returns specific slave with given ID.
GetSlaveByID returns specific slave with given ID .